id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
go_runtime/googlevignette_9_0.txt |  Mar 18, 2011 at 12:04am UTC | |
go_runtime/nfwinuserpeekmessage_54_0.txt | | Process paint messages. | |
go_runtime/googlevignette_100_0.txt | int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nCmdShow)
{
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for the windowclass */ | |
go_runtime/win_35_0.txt | * [ Effective Go ](https://go.dev/doc/effective_go)
* [ Go User Manual ](https://go.dev/doc/)
* [ Standard library ](https://pkg.go.dev/std)
* [ Release Notes ](https://go.dev/doc/devel/release) | |
go_runtime/go_runtime_57_0.txt | #### type [ StackRecord
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=801) ¶
type StackRecord struct {
Stack0 [32][uintptr](/builtin#uintptr) // stack trace for this record; ends at first 0 entry
}
A StackRecord describes a single execution stack.
| |
go_runtime/win_111_0.txt | [ View all Source files ](https://github.com/golang-
design/hotkey/tree/v0.4.1/internal/win) | |
go_runtime/googlevignette_41_0.txt | And peekmessage does not freeze the application and lets it process background
stuff :) | |
go_runtime/showthreadphp635431R_23_0.txt | {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
{VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}
Reply With QuoteReply With Quote
Quick Navigation API Top
« Previous Thread | Next Thread »
HomeVBForumsVisual BasicAPI[RE... | |
go_runtime/googlevignette_58_0.txt | Last edited on Mar 18, 2011 at 1:00am UTC | |
go_runtime/showthreadphp635431R_14_0.txt | Edited:
You had a couple of questions. Here's something for your second questions
Try it. Replace MOD_CONTROL with zero and see if the hotkey was registered and works. If not, then the answer is no. Read the API documentation I linked for you to see other key combinations. Also, put some more thinking into this. Just t... | |
go_runtime/googlevignette_55_0.txt | Then our application will close almost instantly because PeekMessage will
return 0 when there's no messages, and there isn't always messages. So we add
the outer while loop to keep us in the application. | |
go_runtime/nfwinuserpeekmessage_70_0.txt | To retrieve input messages before posted messages, use the _wMsgFilterMin_ and
_wMsgFilterMax_ parameters. | |
go_runtime/win_34_0.txt | _ _ Docs | |
go_runtime/showthreadphp635431R_15_0.txt | Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted | |
go_runtime/go_runtime_43_0.txt | #### func (*Func) [ Entry
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/symtab.go;l=691) ¶
func (f *Func) Entry() [uintptr](/builtin#uintptr)
Entry returns the entry address of the function.
| |
go_runtime/nfwinuserpeekmessage_112_0.txt | * Light
* Dark
* High contrast | |
go_runtime/win_3_0.txt | * Why Go 
* [ Case Studies ](https://go.dev/solutions#case-studies) | |
go_runtime/nfwinuserpeekmessage_3_0.txt | [ Download Microsoft Edge ](https://go.microsoft.com/fwlink/p/?LinkID=2092881
) [ More info about Internet Explorer and Microsoft Edge
](https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-
edge) | |
go_runtime/win_134_0.txt | Okay | |
go_runtime/googlevignette_62_0.txt |  Mar 18, 2011 at 1:00am UTC | |
go_runtime/win_44_0.txt | [ Version: v0.4.1 ](?tab=versions) | |
go_runtime/go_runtime_37_0.txt | #### type [ Frame
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/symtab.go;l=27) ¶
added in go1.7
type Frame struct {
// PC is the program counter for the location in this frame.
// For a frame that calls another frame, this will be the
// program counter of a call instructi... | |
go_runtime/googlevignette_93_0.txt | [ **WriteGreatCode** (73) ](/user/WriteGreatCode/) | |
go_runtime/nfwinuserpeekmessage_110_0.txt | [ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices
](https://aka.ms/yourcaliforniaprivacychoices) | |
go_runtime/win_92_0.txt | func PostQuitMessage(exitCode [int](/builtin#int)) | |
go_runtime/googlevignette_125_0.txt | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | |
go_runtime/nfwinuserpeekmessage_68_0.txt | During this call, the system dispatches ( [ DispatchMessage ](/en-
us/windows/win32/api/winuser/nf-winuser-dispatchmessage) ) pending, nonqueued
messages, that is, messages sent to windows owned by the calling thread using
the [ SendMessage ](/en-us/windows/desktop/api/winuser/nf-winuser-sendmessage)
, [ SendMessageCal... | |
go_runtime/googlevignette_61_0.txt | Thanks :) | |
go_runtime/googlevignette_127_0.txt | // Return the exit code to the system. | |
go_runtime/googlevignette_142_0.txt |
1
2
3
4
5 | |
go_runtime/googlevignette_149_0.txt | **TpOreily** wrote:
---
For this: | |
go_runtime/win_30_0.txt | * Why Go _ _ | |
go_runtime/nfwinuserpeekmessage_12_0.txt | ## In this article | |
go_runtime/nfwinuserpeekmessage_67_0.txt | Note that **PeekMessage** always retrieves [ WM_QUIT ](/en-
us/windows/desktop/winmsg/wm-quit) messages, no matter which values you
specify for _wMsgFilterMin_ and _wMsgFilterMax_ . | |
go_runtime/googlevignette_118_0.txt | 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.
**msdn** wrote:
---
If the function retrieves a message other than WM_QUIT, the return value is
nonze... | |
go_runtime/go_runtime_9_0.txt | #### func [ GOMAXPROCS
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/debug.go;l=16) ¶
func GOMAXPROCS(n [int](/builtin#int)) [int](/builtin#int)
GOMAXPROCS sets the maximum number of CPUs that can be executing
simultaneously and returns the previous setting. It defaults to the value of
ru... | |
go_runtime/googlevignette_15_0.txt | [ **WriteGreatCode** (73) ](/user/WriteGreatCode/) | |
go_runtime/nfwinuserpeekmessage_2_0.txt | Upgrade to Microsoft Edge to take advantage of the latest features, security
updates, and technical support. | |
go_runtime/nfwinuserpeekmessage_17_0.txt | ` [out] lpMsg ` | |
go_runtime/googlevignette_94_0.txt | hanst99, that loop wouldn't work, here's some code of a program that uses that
type of loop and it instantly closes: | |
go_runtime/googlevignette_122_0.txt |  Mar 18, 2011 at 3:03pm UTC | |
go_runtime/googlevignette_5_0.txt | * [ **Beginners** ](/forum/beginner/)
* [ **Windows Programming** ](/forum/windows/)
* [ **UNIX/Linux Programming** ](/forum/unices/)
* [ **General C++ Programming** ](/forum/general/)
* [ **Lounge** ](/forum/lounge/)
* [ **Jobs** ](/forum/jobs/) | |
go_runtime/googlevignette_25_0.txt | ---|--- | |
go_runtime/go_runtime_50_0.txt | #### type [ MemStats
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mstats.go;l=52) ¶
type MemStats struct {
// Alloc is bytes of allocated heap objects.
//
// This is the same as HeapAlloc (see below).
Alloc [uint64](/builtin#uint64)
// TotalAlloc is cumu... | |
go_runtime/nfwinuserpeekmessage_78_0.txt | The winuser.h header defines PeekMessage as an alias which automatically
selects the ANSI or Unicode version of this function based on the definition
of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral
alias with code that not encoding-neutral can lead to mismatches that result
in compilation or ... | |
go_runtime/nfwinuserpeekmessage_53_0.txt | (QS_PAINT << 16) | |
go_runtime/win_32_0.txt | * [ Case Studies ](https://go.dev/solutions#case-studies)
* [ Use Cases ](https://go.dev/solutions#use-cases)
* [ Security Policy ](https://go.dev/security/policy/) | |
go_runtime/win_10_0.txt | Tips for writing clear, performant, and idiomatic Go code | |
go_runtime/nfwinuserpeekmessage_108_0.txt | ## Additional resources | |
go_runtime/googlevignette_24_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);
}
} | |
go_runtime/go_runtime_48_0.txt | #### func (*MemProfileRecord) [ InUseObjects
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=849) ¶
func (r *MemProfileRecord) InUseObjects() [int64](/builtin#int64)
InUseObjects returns the number of objects in use (AllocObjects -
FreeObjects).
| |
go_runtime/showthreadphp635431R_4_0.txt | Join Date
Dec 2010
Posts
12
Resolved [RESOLVED] RegisterHotkey API
Hello, im kinda stuck with this code: | |
go_runtime/win_64_0.txt | * [ Learn more about best practices ](/about#best-practices) | |
go_runtime/win_131_0.txt | **?** | : This menu
---|---
**/** | : Search site
**f** or **F** | : Jump to
**y** or **Y** | : Canonical URL | |
go_runtime/nfwinuserpeekmessage_72_0.txt | If a top-level window stops responding to messages for more than several
seconds, the system considers the window to be not responding and replaces it
with a ghost window that has the same z-order, location, size, and visual
attributes. This allows the user to move it, resize it, or even close the
application. However,... | |
go_runtime/win_115_0.txt | [ Why Go ](https://go.dev/solutions) [ Use Cases
](https://go.dev/solutions#use-cases) [ Case Studies
](https://go.dev/solutions#case-studies) | |
go_runtime/win_51_0.txt | Opens a new window with list of imports. | |
go_runtime/showthreadphp635431R_16_0.txt | Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
Read the HitchHiker's Guide to Getting Help on the Forums.
Here is the list of TAGs you can use to format your posts
Here are VB6 Help Files online | |
go_runtime/win_1_0.txt | Skip to Main Content | |
go_runtime/googlevignette_135_0.txt | [ **WriteGreatCode** (73) ](/user/WriteGreatCode/) | |
go_runtime/win_41_0.txt | [  ](https://go.dev/) | |
go_runtime/go_runtime_36_0.txt | #### type [ Error
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/error.go;l=10) ¶
type Error interface {
[error](/builtin#error)
// RuntimeError is a no-op function but
// serves to distinguish types that are run time
// errors from ordinary errors: a type is a
... | |
go_runtime/nfwinuserpeekmessage_29_0.txt | ` [in] wMsgFilterMax ` | |
go_runtime/googlevignette_99_0.txt | /* Make the class name into a global variable */
char szClassName[ ] = "CodeBlocksWindowsApp"; | |
go_runtime/go_runtime_27_0.txt | #### func [ SetMutexProfileFraction
](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/mprof.go;l=778) ¶
added in go1.8
func SetMutexProfileFraction(rate [int](/builtin#int)) [int](/builtin#int)
SetMutexProfileFraction controls the fraction of mutex contention events that
are reported in the ... | |
go_runtime/win_88_0.txt | func PeekMessage(msg *MSG, hWnd [uintptr](/builtin#uintptr), msgFilterMin, msgFilterMax [uint32](/builtin#uint32)) [bool](/builtin#bool) | |
go_runtime/googlevignette_123_0.txt | closed account ( _[ z05DSL3A ](/user/closed_account_z05DSL3A/) _ ) | |
go_runtime/googlevignette_19_0.txt | Now you can't use PeekMessage like you would GetMessage, here's a code example
for both: | |
go_runtime/googlevignette_38_0.txt | [ **TpOreilly** (307) ](/user/TpOreilly/) | |
go_runtime/googlevignette_98_0.txt | /* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); | |
go_runtime/showthreadphp635431R_28_0.txt | All times are GMT -5. The time now is 03:48 PM.
| |
go_runtime/nfwinuserpeekmessage_1_0.txt | This browser is no longer supported. | |
go_runtime/googlevignette_82_0.txt |  Mar 18, 2011 at 2:13am UTC | |
go_runtime/win_90_0.txt | [ https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-
peekmessagea ](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-
winuser-peekmessagea) | |
go_runtime/win_109_0.txt | [ https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-msg
](https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-msg) | |
go_runtime/showthreadphp635431R_6_0.txt | Private Type POINTAPI
x As Long
y As Long
End Type | |
go_runtime/win_6_0.txt | Stories about how and why companies use Go | |
go_runtime/win_117_0.txt | [ Packages ](https://pkg.go.dev) [ Standard Library ](/std) [ Sub-repositories
](/golang.org/x) [ About Go Packages ](https://pkg.go.dev/about) | |
go_runtime/nfwinuserpeekmessage_60_0.txt | | Process all sent messages. | |
go_runtime/showthreadphp635431R_27_0.txt | Site Logo
Terms of Service | About Us | Privacy Notice | Contact Us | Advertise | California - Do Not Sell My Info
Copyright 2024 TechnologyAdvice. All Rights Reserved.
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compens... | |
go_runtime/googlevignette_85_0.txt | 1
2
3
4
5
6
7
8
9
10
11
12
13 | |
go_runtime/googlevignette_1_0.txt | * [ TUTORIALS ](/doc/)
* [ REFERENCE ](/reference/)
* [ ARTICLES ](/articles/)
* [ FORUM ](/forum/) | |
go_runtime/googlevignette_141_0.txt | For this: | |
go_runtime/nfwinuserpeekmessage_32_0.txt | If _wMsgFilterMin_ and _wMsgFilterMax_ are both zero, **PeekMessage** returns
all available messages (that is, no range filtering is performed). | |
go_runtime/win_129_0.txt | ## Keyboard shortcuts | |
go_runtime/googlevignette_129_0.txt | ---|--- | |
go_runtime/win_123_0.txt | *  | |
go_runtime/nfwinuserpeekmessage_41_0.txt | 0x0001 | |
go_runtime/googlevignette_133_0.txt | ---|--- | |
go_runtime/googlevignette_139_0.txt |  Mar 19, 2011 at 3:02am UTC | |
go_runtime/showthreadphp635431R_18_0.txt | Join Date
Dec 2010
Posts
12
Re: RegisterHotkey API
Thanks LaVolpe, its working now and thanks for the extra tips . Choosed to press ctrl+home, because like u said use home to get on top of the page, anyways > thanks again.
Reply With QuoteReply With Quote Dec 14th, 2010, 12:20 PM#4
LaVolpe LaVolpe is offline
VB-aholic... | |
go_runtime/nfwinuserpeekmessage_47_0.txt | By default, all message types are processed. To specify that only certain
message should be processed, specify one or more of the following values. | |
go_runtime/nfwinuserpeekmessage_92_0.txt | ## Feedback | |
go_runtime/googlevignette_134_0.txt |  Mar 18, 2011 at 8:30pm UTC | |
go_runtime/googlevignette_121_0.txt | Last edited on Mar 18, 2011 at 1:41pm UTC | |
go_runtime/win_24_0.txt | The Go project's official blog. | |
go_runtime/googlevignette_108_0.txt |
/* This function is called by the Windows function DispatchMessage() */ | |
go_runtime/googlevignette_92_0.txt |  Mar 18, 2011 at 3:37am UTC | |
go_runtime/win_56_0.txt | *  Valid [ go.mod ](https://github.com/golang-design/hotkey/tree/v0.4.1/go.mod) file  | |
go_runtime/nfwinuserpeekmessage_56_0.txt | ((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.