Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
93 views

I have a WINAPI application and I want the user to be able to resize the window with the Right Mouse Button. Calling SendMessage(hwnd, WM_SYSCOMMAND, SC_SIZE + WMSZ_BOTTOMRIGHT, 0); in a ...
Avtem's user avatar
  • 105
1 vote
1 answer
106 views

This is a follow-up to my previous question. How to handle button held down in WinAPI? I managed to get the button to update counter continuously while the button is depressed, based on the comments I ...
machine_1's user avatar
  • 4,464
0 votes
1 answer
228 views

I am trying to understand python's capability to use Windows Messages with pywin32 library. For this I have created 2 scripts that are supposed to run parralel to each other. One is a client that is ...
ajax's user avatar
  • 13
1 vote
0 answers
124 views

After reading a lot on this, I came to conclusion that these 3 are essentially the same things of processing custom messages: Using BEGIN_MESSAGE_MAP macro: #define WM_CUSTOM_MESSAGE WM_APP + 12345 ...
Coder12345's user avatar
  • 3,803
0 votes
0 answers
148 views

So I setup windows hook for EVENT_SYSTEM_FOREGROUND event then in order to receive events from windows there must be message loop in the same thread, this requires setting up a window or using ...
dalvi's user avatar
  • 57
0 votes
1 answer
108 views

This is a code designed to roughly estimate the time it takes from the moment of asking the Windows OS to queue a message into a window's queue, till the window's thread is actually given CPU time. ...
Physician's user avatar
  • 483
0 votes
1 answer
64 views

I use C++ Builder and I pass messages to window which are handled in WndProc to update user interface. Something like: struct TWmGuiUpdatedStruct { int id1; int id2; }; ...
Coder12345's user avatar
  • 3,803
3 votes
0 answers
353 views

I'm trying to require a user to confirm a Windows shutdown while my program is performing critical tasks. In order to do this, I want to listen for a WM_QUERYENDSESSION message (in a seperate thread ...
MrSchildkr's user avatar
0 votes
1 answer
303 views

I have user-friendliness in mind, so I'd like to intercept the position of each form I'm opening, to store and retrieve each time the same form is opened again. Because I plan to port this for MAC, I ...
Sergio Bonfiglio's user avatar
-1 votes
2 answers
129 views

According to https://learn.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-nmlistview lParam is of Type: LPARAM and is a Application-defined value of the item. This member is undefined for ...
Peter Nimmo's user avatar
  • 1,135
0 votes
0 answers
28 views

Create an application with two forms, where the main form is created automatically, and the second form is created as needed. I've defined a custom message to pass a certain parameter from the ...
yonni's user avatar
  • 352
2 votes
2 answers
1k views

I am developing a console program and I have planned to add a tray icon for it. But it seems that only Win32 GUI program can do something caused by messages. (WndProc()) My message checking loop code ...
Yuchen Ren's user avatar
0 votes
0 answers
102 views

In development of GUI automation service, our team faces with the problem that we can not handle WM_LBUTTONUP message correct. The goal is to intercept WM_LBUTTONUP, disable active window, do our job ...
user avatar
0 votes
1 answer
4k views

I got a WM_COMMAND in a button event by Spy++, It looks like: <000116> 001B0A02 S WM_NOTIFY idCtrl:133978 pnmh:0019F9A0 <000117> 001B0A02 R WM_NOTIFY <000118> 001B0A02 S WM_COMMAND ...
Lain's user avatar
  • 13
0 votes
1 answer
311 views

I have a hooked dll with WH_CALLWNDPROC from a x86 program (MSVS 2017). The code goes as follows: extern "C" __declspec(dllexport) LRESULT SysMessageProc(int nCode, WPARAM wParam, LPARAM ...
user avatar
0 votes
1 answer
1k views

I'm attempting to create a "dark mode" theme for my Windows app, and I'm experiencing some inconsistencies with overriding the OnNcPaint() function. Please pardon the giant red box. I'm only ...
Skewjo's user avatar
  • 429
2 votes
1 answer
319 views

The WinAPI associates its messages, such as WM_GETTEXT, with ints, such as 13. Each message seems to have its own code. Unfortunately, this list of codes is incomplete. For example, it lacks the code ...
Asker's user avatar
  • 1,783
0 votes
1 answer
182 views

I am filtering keyboard messages delivered to a specific win32 application by hooking GetMessage/PeekMessage, it works fine except for context menu. For example, when i right click blank area in ...
herb's user avatar
  • 169
0 votes
0 answers
244 views

I have a dialog with no controls derived from CDialogEx. I receive OnKeyDown() messages but never receive a OnChar() ? I even tried overriding PreTranslateMessage() and just returning 0 when ...
df234987's user avatar
  • 563
1 vote
1 answer
267 views

I'm having an issue with my Windows application where upon closing it from the taskbar or via hotkey it will occasionally hang. I'm wondering how to gracefully exit the following program: LRESULT ...
Nux's user avatar
  • 41
1 vote
1 answer
447 views

I have application with the TWebBrowser component on the main form. I need to emulate clicks in the TWebBrowser window and I use Windows messages for that. I send WM_MOUSEMOVE, WM_SETCURSOR, ...
Vlad__1's user avatar
  • 17
0 votes
0 answers
157 views

I am using TFrames to split different parts of a form (visual elements and code) into different units. For example, if my form is an invoice, I have Frame#1 showing the client, invoice date and total ...
JC Boggio's user avatar
  • 417
1 vote
0 answers
457 views

I was reading this answer to a question about how to schedule a TIMERPROC to run immediately. I was interested in this as I need to run a method immediately after the caller has finished executing its ...
Greedo's user avatar
  • 5,625
1 vote
1 answer
2k views

My goal is to disable some tool-tip-like thing in window of another process. My thoughts are to block WM_MOUSEMOVE if the coordinates of mouse movement is in certain rectangle of the window. I can ...
rattler's user avatar
  • 389
0 votes
1 answer
246 views

I've been processing all the numerous individual WM_MOVE, WM_SIZING, and WM_SIZE messages for a multiple-GUI/window application, but I've just learned of the WM_EXITSIZEMOVE message and would like to ...
Amby131's user avatar
  • 81

1
2 3 4 5
7