Questions tagged [window-messages]
79 questions
1
vote
1 answer
C++ Builder XE, Passing and handling user-defined messages
I am trying to learn how to pass and handle messages in a VCL forms app.
I've been digging the internet for some time and found this
Suppose I have a progress bar I want to update using messages (btw if there's any other better way, I am eager to…

Gear54rus
- 207
- 4
- 12
1
vote
1 answer
WM_REFLECT_NOTIFY vs WM_NOTIFY
The documentation for WM_NOTIFY is easy enough to find, however I'm finding a fair amount of sample code and articles that refer to WM_REFLECT_NOTIFY, for which I can't find any documentation.
What is WM_REFLECT_NOTIFY, where can I find the…

Justin
- 84,773
- 49
- 224
- 367
0
votes
0 answers
Can I identify the same RawInput message sent to two different windows?
This question is part of a long story about trying to get input messages, WM_INPUT, from outside of the main window for an application.
The reason is that the main loop's frequency is lower than the desired frequencies for input processing. I don't…

Physician
- 483
- 2
- 7
0
votes
1 answer
How to catch WM_MBUTTONDOWN in CTreeControl
I have a window with CTreeControl. I am able to catch WM_MBUTTONDOWN event in area of window (ON_WM_MBUTTONDOWN macro), but not in area of CTreeControl.
Is some way to catch this event for CTreeControl?
Thanks.

Michal Hadraba
- 347
- 1
- 11
0
votes
1 answer
window message not received using python win32api
I am using win32 packages to send messages to a window. I manage to get the handle and apparently the message is sent as I get return value 0 from send code. however it has no action in the window, and spyxx does not see the message on the specified…

User18108529
- 1
- 2
0
votes
2 answers
Creating ComboBox in Win32 not working properly
I am creating a Win32 ComboBox for the first time. And I have a problem here.
When calling CreateWindow for the ComboBox, it calls the WndProc callback function again with the WM_CREATE message, so what happens is the ComboBox makes a child…

KIM CHANGJUN
- 99
- 11
0
votes
0 answers
Send keyboard strokes to an RemoteApp application within an Remote Desktop session with Winforms C#
I want to send keyboard keys to an RemoteApp application. I am using C# with the Windows API.
The code example works when I am using Windows 10 Desktop with an RemoteApp application. The application appears in the foreground and the shortcut code…

ObelixNL
- 1
- 1
0
votes
1 answer
How to set up a WM_KEYDOWN message interceptor in console application?
I'm working on a console game engine, and for it I'd like to make some control interface.
For it I chose approach of making a hidden window, which reads keys being pressed, then pushes them into a queue (this thing i'll implement separately) and…

Ilya Pakhmutov
- 159
- 11
0
votes
1 answer
How to capture WM_MINIMIZE for another application?
I am currently looking for a solution in C# how to capture window-messages like WM_MINIMIZE for another application for which I do not have any source code, for example Notepad. My goal is to prevent a user or the system from minimizing a certain…

Erik
- 2,316
- 9
- 36
- 58
0
votes
2 answers
WM_MSO_BROADCASTCHANGE value
What's the value for WM_MSO_BROADCASTCHANGE, and how would I figure it out for myself next time?

Josh
- 173
- 3
- 7
0
votes
1 answer
How to know if someone else handled OnContextMenu
I have a CWnd derived class that has a WM_CONTEXTMENU handler (OnContextMenu), which has my default context menu. This class is being used at several places in my application.
Some of the places where it's being used also handle the…

decasteljau
- 7,655
- 10
- 41
- 58
0
votes
1 answer
AccessViolationException when changing lParam(Resize Rectangle)
I am currently creating a WPF Window which preserves its aspect ratio when resized.
My first idea was to handle the WM_SIZE Message and set the Size there, but this produced annoying flickering.
So I tried to change the lParam of WM_Size which…

Error404
- 719
- 9
- 30
0
votes
1 answer
How to disable mouse wheel event in another application(WM_MOUSEWHEEL) using Handler
I am able to close another application window (calculator) from my application by using the following code:
hwnd = FindWindow(null, "Calculator");SendMessage(hwnd,WM_CLOSE,0,IntPtr.Zero);
But I want to disable the mouse wheel in the same…

ChanduRaj
- 161
- 1
- 16
0
votes
1 answer
VK_LEFT/VK_RIGHT not handled by application?
i'm using PostMessage to send windows message(s) to an application.
Now, this code works fine when sending any key except ARROW keys (VK_RIGHT or VK_LEFT).
procedure SendKey(key: Variant);
var
lParam: integer;
scancode: integer;
begin
if…
user1803300
0
votes
2 answers
Receive Keyboard Events with Window Messages in a WPF-Window (HwndSource.AddHook)
I have a Window with a TextBox. The cursor is inside the TextBox. If I press a key, then I receive a message in WndProc (for KeyUp and KeyDown). But if I set e.Handled = true in the KeyUp and KeyDown events, then I don't receive any key…

Jotrius
- 647
- 4
- 19