id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
go_runtime/win_11_0.txt | * [ Go User Manual ](https://go.dev/doc/) | |
go_runtime/nfwinuserpeekmessage_21_0.txt | Type: **HWND** | |
go_runtime/googlevignette_73_0.txt | In my program i have: | |
go_runtime/win_19_0.txt | * [ Meetups _ _ ](https://www.meetup.com/pro/go) | |
go_runtime/googlevignette_77_0.txt | TranslateMessage(&msg);
DispatchMessage(&msg); | |
go_runtime/win_25_0.txt | * [ Go project ](https://go.dev/help) | |
go_runtime/win_17_0.txt | * [ Packages ](/)
* Community 
* [ Recorded Talks ](https://go.dev/talks/) | |
go_runtime/googlevignette_65_0.txt |  Mar 18, 2011 at 1:02am UTC | |
go_runtime/win_79_0.txt | This section is empty. | |
go_runtime/win_108_0.txt | MSG contains message information from a thread's message queue. | |
go_runtime/win_49_0.txt | Opens a new window with license information. | |
go_runtime/win_70_0.txt | * Documentation
* Index
* Constants
* Variables
* Functions
* GetAsyncKeyState(keycode)
* GetMessage(msg, hWnd, msgFilterMin, msgFilterMax)
* PeekMessage(msg, hWnd, msgFilterMin, msgFilterMax)
* PostQuitMessage(exitCode)
* RegisterHotKey(hwnd, id, mod, k)
* SendMessage(hwnd, msg, wParam, lParam)
* UnregisterHotKey(hwnd... | |
go_runtime/go_runtime_26_0.txt | #### func [ SetFinalizer
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mfinal.go;l=410) ¶
func SetFinalizer(obj [any](/builtin#any), finalizer [any](/builtin#any))
SetFinalizer sets the finalizer associated with obj to the provided finalizer
function. When the garbage collector finds an u... | |
go_runtime/googlevignette_138_0.txt | Last edited on Mar 18, 2011 at 8:30pm UTC | |
go_runtime/googlevignette_50_0.txt | ---|--- | |
go_runtime/win_2_0.txt | 
 | |
go_runtime/nfwinuserpeekmessage_39_0.txt | | Messages are not removed from the queue after processing by **PeekMessage**
. | |
go_runtime/win_12_0.txt | A complete introduction to building software with Go | |
go_runtime/go_runtime_1_0.txt | ### Variables ¶
[ View Source
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=830)
var MemProfileRate [int](/builtin#int) = 512 * 1024
MemProfileRate controls the fraction of memory allocations that are recorded
and reported in the memory profile. The profiler aims to sample an... | |
go_runtime/win_53_0.txt | Opens a new window with list of known importers. | |
go_runtime/go_runtime_23_0.txt | #### func [ SetBlockProfileRate
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=470) ¶
added in go1.1
func SetBlockProfileRate(rate [int](/builtin#int))
SetBlockProfileRate controls the fraction of goroutine blocking events that
are reported in the blocking profile. The profiler... | |
go_runtime/win_81_0.txt | #### func [ GetAsyncKeyState ](https://github.com/golang-
design/hotkey/blob/v0.4.1/internal/win/hotkey.go#L119) ¶ added in v0.3.0 | |
go_runtime/go_runtime_61_4.txt | go/go/+/go1.22.1:src/runtime/utf8.go "utf8.go")
* [ vdso_elf64.go ](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/vdso_elf64.go "vdso_elf64.go")
* [ vdso_linux.go ](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/vdso_linux.go "vdso_linux.go")
* [ vdso_linux_amd64.go ](https://cs.opensource.... | |
go_runtime/googlevignette_144_0.txt | {
}
else | |
go_runtime/win_31_0.txt | _ _ Why Go | |
go_runtime/googlevignette_74_0.txt |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | |
go_runtime/nfwinuserpeekmessage_65_0.txt | ## Remarks | |
go_runtime/googlevignette_110_0.txt | return 0;
} | |
go_runtime/go_runtime_60_0.txt | #### func (*TypeAssertionError) [ Error
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/error.go;l=30) ¶
func (e *TypeAssertionError) Error() [string](/builtin#string)
| |
go_runtime/win_73_0.txt | [ Rendered for ](/about#build-context) windows/amd64 | |
go_runtime/win_4_0.txt | Common problems companies solve with Go | |
go_runtime/go_runtime_58_0.txt | #### func (*StackRecord) [ Stack
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=807) ¶
func (r *StackRecord) Stack() [][uintptr](/builtin#uintptr)
Stack returns the stack trace associated with the record, a prefix of
r.Stack0.
| |
go_runtime/win_112_0.txt | * [ hotkey.go ](https://github.com/golang-design/hotkey/blob/v0.4.1/internal/win/hotkey.go "hotkey.go") | |
go_runtime/nfwinuserpeekmessage_33_0.txt | ` [in] wRemoveMsg ` | |
go_runtime/nfwinuserpeekmessage_51_0.txt | | Process mouse and keyboard messages. | |
go_runtime/showthreadphp635431R_8_0.txt | Private bCancel As BooleanPrivate | |
go_runtime/nfwinuserpeekmessage_76_0.txt | For an example, see [ Examining a Message Queue ](/en-
us/windows/desktop/winmsg/using-messages-and-message-queues) . | |
go_runtime/googlevignette_76_0.txt | if (msg.message == WM_QUIT)
{
break;
} | |
go_runtime/win_22_0.txt | Learn and network with Go developers from around the world | |
go_runtime/nfwinuserpeekmessage_111_0.txt | Theme | |
go_runtime/googlevignette_71_0.txt |  Mar 18, 2011 at 2:03am UTC | |
go_runtime/googlevignette_29_0.txt |  Mar 18, 2011 at 12:36am UTC | |
go_runtime/win_133_0.txt | go.dev uses cookies from Google to deliver and enhance the quality of its
services and to analyze traffic. [ Learn more.
](https://policies.google.com/technologies/cookies) | |
go_runtime/win_38_0.txt | * [ Recorded Talks ](https://go.dev/talks/)
* [ Meetups _ _ ](https://www.meetup.com/pro/go)
* [ Conferences _ _ ](https://github.com/golang/go/wiki/Conferences)
* [ Go blog ](https://go.dev/blog)
* [ Go project ](https://go... | |
go_runtime/googlevignette_33_0.txt | //PeekMessage loop example
while (WM_QUIT != uMsg.message)
{
while (PeekMessage (&uMsg, NULL, 0, 0, PM_REMOVE) > 0) //Or use an if statement
{
TranslateMessage (&uMsg);
DispatchMessage (&uMsg);
}
//Here is were all the "animation that isn't used when the user does something" code will go.
} | |
go_runtime/go_runtime_61_3.txt | ps://cs.opensource.google/go/go/+/go1.22.1:src/runtime/security_linux.go "security_linux.go")
* [ security_unix.go ](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/security_unix.go "security_unix.go")
* [ select.go ](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/select.go "select.go")
* [ s... | |
go_runtime/googlevignette_8_0.txt | GetMessage/PeekMessage | |
go_runtime/googlevignette_114_0.txt |
Sorry if I made it seem like WM_QUIT = program exits instantly. I meant to say
is more like what hanst99 said: And no, WM_QUIT doesn't automatically quit
your program, it tells you that you should quit the program.
--- | |
go_runtime/win_89_0.txt | PeekMessage dispatches incoming sent messages, checks the thread message queue
for a posted message, and retrieves the message (if any exist). | |
go_runtime/nfwinuserpeekmessage_50_0.txt | (QS_INPUT << 16) | |
go_runtime/win_102_0.txt | #### func [ UnregisterHotKey ](https://github.com/golang-
design/hotkey/blob/v0.4.1/internal/win/hotkey.go#L40) ¶ | |
go_runtime/nfwinuserpeekmessage_27_0.txt | The value of the first message in the range of messages to be examined. Use
**WM_KEYFIRST** (0x0100) to specify the first keyboard message or
**WM_MOUSEFIRST** (0x0200) to specify the first mouse message. | |
go_runtime/googlevignette_113_0.txt | If the program has already received WM_QUIT will the GameEnd() actually get
called? Because when WM_QUIT is received isnt the program immediately closed?
--- | |
go_runtime/go_runtime_61_5.txt | o.dev/conduct)
[ Connect ](https://www.twitter.com/golang) [ Twitter
](https://www.twitter.com/golang) [ GitHub ](https://github.com/golang) [
Slack ](https://invite.slack.golangbridge.org/) [ r/golang
](https://reddit.com/r/golang) [ Meetup ](https://www.meetup.com/pro/go) [
Golang Weekly ](https://golangweekly.com/)... | |
go_runtime/googlevignette_70_0.txt | [ **TpOreilly** (307) ](/user/TpOreilly/) | |
go_runtime/nfwinuserpeekmessage_94_0.txt | Yes No | |
go_runtime/googlevignette_154_0.txt | The function after this else statement would be carried out if PeekMessage
returned a FALSE value wouldnt it. Does PeekMessage return a FALSE value if no
messages are available? | |
go_runtime/win_47_0.txt | This package is not in the latest version of its module. | |
go_runtime/nfwinuserpeekmessage_6_0.txt | Table of contents Read in English Save Add to Plan [ Edit
](https://github.com/MicrosoftDocs/sdk-api/blob/docs/sdk-api-
src/content/winuser/nf-winuser-peekmessagea.md "Edit This Document") Print | |
go_runtime/nfwinuserpeekmessage_101_0.txt | [ View all page feedback ](https://github.com//issues) | |
go_runtime/win_118_0.txt | [ About ](https://go.dev/project) [ Download ](https://go.dev/dl/) [ Blog
](https://go.dev/blog) [ Issue Tracker ](https://github.com/golang/go/issues)
[ Release Notes ](https://go.dev/doc/devel/release.html) [ Brand Guidelines
](https://blog.golang.org/go-brand) [ Code of Conduct
](https://go.dev/conduct) | |
go_runtime/showthreadphp635431R_25_0.txt | Contact Us VB Forums Top | |
go_runtime/win_28_0.txt | [ 
](https://groups.google.com/g/golang-nuts) [
 ](https://github.com/golang) [
 ](https://twitter.com/golang) [
 ](https://www.reddit.com/r/gol... | |
go_runtime/googlevignette_91_0.txt | And you can skip the second if, because PeekMessage returns 0 anyways when the
message is WM_QUIT. And no, WM_QUIT doesn't automatically quit your program,
it tells you that you should quit the program. | |
go_runtime/googlevignette_150_0.txt | 1
2
3
4
5 | |
go_runtime/nfwinuserpeekmessage_66_0.txt | **PeekMessage** retrieves messages associated with the window identified by
the _hWnd_ parameter or any of its children as specified by the [ IsChild
](/en-us/windows/desktop/api/winuser/nf-winuser-ischild) function, and within
the range of message values given by the _wMsgFilterMin_ and _wMsgFilterMax_
parameters. Not... | |
go_runtime/go_runtime_11_0.txt | #### func [ Goexit
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/panic.go;l=614) ¶
func Goexit()
Goexit terminates the goroutine that calls it. No other goroutine is affected.
Goexit runs all deferred calls before terminating the goroutine. Because
Goexit is not a panic, any recover calls... | |
go_runtime/nfwinuserpeekmessage_87_0.txt | **Other Resources** | |
go_runtime/showthreadphp635431R_1_0.txt | Password | |
go_runtime/nfwinuserpeekmessage_71_0.txt | The **PeekMessage** function normally does not remove [ WM_PAINT ](/en-
us/windows/desktop/gdi/wm-paint) messages from the queue. **WM_PAINT**
messages remain in the queue until they are processed. However, if a
**WM_PAINT** message has a **NULL** update region, **PeekMessage** does remove
it from the queue. | |
go_runtime/go_runtime_44_0.txt | #### func (*Func) [ FileLine
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/symtab.go;l=704) ¶
func (f *Func) FileLine(pc [uintptr](/builtin#uintptr)) (file [string](/builtin#string), line [int](/builtin#int))
FileLine returns the file name and line number of the source code
corresponding ... | |
go_runtime/win_58_0.txt | *  Redistributable license  | |
go_runtime/googlevignette_57_0.txt | 2\.
After GetMessage reads the message it will remove that message from the
message queue. PeekMessage has another parameter to allow us to use messages
another way (I'm not sure what ways, google will tell you) I'm guessing.
PM_REMOVE will just tell PeekMessage to remove any messages it finds from the
message queue, j... | |
go_runtime/nfwinuserpeekmessage_77_0.txt | Note | |
go_runtime/googlevignette_136_0.txt | **hanst99** wrote:
---
The loop is not working because I meant to write GetMessage instead of
PeekMessage. If you do that it works just fine, and you can skip one if. And
if a compiler behaved differently with the same API it would be buggy. | |
go_runtime/win_113_0.txt | Click to show internal directories. | |
go_runtime/win_127_0.txt |  | |
go_runtime/showthreadphp635431R_26_0.txt |
Click Here to Expand Forum to Full Width | |
go_runtime/go_runtime_34_0.txt | ### Types ¶
| |
go_runtime/googlevignette_86_0.txt | while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) | |
go_runtime/googlevignette_158_0.txt | [ Home page ](/) | [ Privacy policy ](/privacy.do)
© cplusplus.com, 2000-2024 - All rights reserved - _v3.3.3_
[ Spotted an error? contact us
](/contact.do?referrer=cplusplus.com%2Fforum%2Fbeginner%2F38860%2F) | |
go_runtime/googlevignette_90_0.txt | instead ? | |
go_runtime/win_76_0.txt | ### Constants ¶ | |
go_runtime/win_96_0.txt | func RegisterHotKey(hwnd, id [uintptr](/builtin#uintptr), mod [uintptr](/builtin#uintptr), k [uintptr](/builtin#uintptr)) ([bool](/builtin#bool), [error](/builtin#error)) | |
go_runtime/googlevignette_84_0.txt | Shouldn't this be: | |
go_runtime/nfwinuserpeekmessage_73_0.txt | ### DPI Virtualization | |
go_runtime/nfwinuserpeekmessage_35_0.txt | Specifies how messages are to be handled. This parameter can be one or more of
the following values. | |
go_runtime/win_125_0.txt | [  ](https://google.com) | |
go_runtime/go_runtime_32_0.txt | #### func [ UnlockOSThread
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/proc.go;l=5241) ¶
func UnlockOSThread()
UnlockOSThread undoes an earlier call to LockOSThread. If this drops the
number of active LockOSThread calls on the calling goroutine to zero, it
unwires the calling goroutine ... | |
go_runtime/go_runtime_0_0.txt | ### Constants ¶
[ View Source
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/compiler.go;l=12)
const Compiler = "gc"
Compiler is the name of the compiler toolchain that built the running binary.
Known toolchains are:
gc Also known as cmd/compile.
gccgo The gccgo... | |
go_runtime/win_54_0.txt | Main Versions Licenses Imports Imported By | |
go_runtime/googlevignette_104_0.txt | /* The class is registered, let's create the program*/
hwnd = CreateWindowEx (
0, /* Extended possibilites for variation */
szClassName, /* Classname */
"Code::Blocks Template Windows App", /* Title Text */
WS_OVERLAPPEDWINDOW, /* default window */
CW_USEDEFAULT, /* Windows decides... | |
go_runtime/nfwinuserpeekmessage_28_0.txt | If _wMsgFilterMin_ and _wMsgFilterMax_ are both zero, **PeekMessage** returns
all available messages (that is, no range filtering is performed). | |
go_runtime/nfwinuserpeekmessage_34_0.txt | Type: **UINT** | |
go_runtime/googlevignette_140_0.txt | [ **TpOreilly** (307) ](/user/TpOreilly/) | |
go_runtime/nfwinuserpeekmessage_18_0.txt | Type: **LPMSG** | |
go_runtime/go_runtime_19_0.txt | #### func [ NumCgoCall
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/debug.go;l=47) ¶
func NumCgoCall() [int64](/builtin#int64)
NumCgoCall returns the number of cgo calls made by the current process.
| |
go_runtime/win_124_0.txt | Shortcuts Modal | |
go_runtime/go_runtime_16_0.txt | #### func [ MemProfile
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=885) ¶
func MemProfile(p []MemProfileRecord, inuseZero [bool](/builtin#bool)) (n [int](/builtin#int), ok [bool](/builtin#bool))
MemProfile returns a profile of memory allocated and freed per allocation
site.
... | |
go_runtime/nfwinuserpeekmessage_55_0.txt | **PM_QS_POSTMESSAGE** |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.