Questions tagged [window-messages]
79 questions
0
votes
3 answers
ESP error when sending window messages between threads
I have an Observer class and a Subscriber class.
For testing purposes, the observer creates a thread that generates fake messages and calls CServerCommandObserver::NotifySubscribers(), which looks like this:
void…

foraidt
- 5,519
- 5
- 52
- 80
0
votes
1 answer
NSE: After minimizing and restoring a window I get 'WM_WINDOWPOSCHANGING' but not 'WM_WINDOWPOSCHANGED'
If I minimize my shell extension folder, and then try to restore it via click in the taskbar, I get an error beep and nothing is done.
Using Microsoft Spy++, I reviewed the events of attempting to restore the folder and got the following:
<00001>…

Mugen
- 8,301
- 10
- 62
- 140
0
votes
0 answers
Position window relative to another window after moving
We're developing an WPF application, that opens under some circumstances an additional window, that should always be docked to the parent (main) window. We're currently hooking the main application and using the window messages:
private void…

ElGaucho
- 408
- 2
- 14
0
votes
1 answer
How to intercept a window message in a shell extension
I have a shell extension that needs to reload its configuration when a specific window message (custom message registered with RegisterWindowMessage) is broadcasted by another application.
I tried several approaches to intercept the…

Thomas Levesque
- 286,951
- 70
- 623
- 758
0
votes
2 answers
Determine Dialog Minimization from within a control
Is there any way to determine a minimization of a Dialog from within a control which is on the dialog?
I'm using the window message ON_WM_SIZE which should be called with the Type SIZE_MINIMIZED when the dialog gets…

Vinz
- 3,030
- 4
- 31
- 52
0
votes
1 answer
Unable to receive / capture Windows Messages
I'm fairly new to MFC and the Message handling context.
I've a DLL Consumer application, which has a CFrameWndEx derived class,CMainFrame. Now this calls a DLL, which puts a CDialog etc. into this MainFrame window.
I wish to receive certain messages…

user1173240
- 1,455
- 2
- 23
- 50
0
votes
1 answer
Problems (delays) with window messages on Windows (C++)
There is a problem in my application. After a long system downtime or sleep window messages come with a delay of a few seconds! Once the window receives this message all further message proceed normally again.
I created a method invoked manually and…
0
votes
0 answers
Windows messages in child window
I have a container window (CFrameWnd) that contains child windows, if I set the spy++ on a child window in some cases I do not see any message passing. Why? what 's the system that regulates messages between windows? I checked that all windows are…

lupok
- 1,025
- 11
- 15
0
votes
2 answers
Is it possible to tell Scintilla to ignore certain keystrokes and pass them to the parent window?
I would like Scintilla to ignore certain key combinations like, Ctrl+Enter or Ctrl+D, and to notify the parent window when they are entered. I read through the documentation and could not figure out how to do this. Is this possible?

Lawrence Barsanti
- 31,929
- 10
- 46
- 68
0
votes
1 answer
Call of BroadcastSystemMessage never finish
I'm calling BroadcastSystemMessage method from User32.dll. On one PC (Windows8 Pro) the method is called, but the call never finishes. Application is waiting, but the result (nor exception) is never returned. I tried it on several Windows8 computers…

TcKs
- 25,849
- 11
- 66
- 104
0
votes
1 answer
Detect fullscreen mode switch without manual checking every second
I have a topmost window. I need it be the topmost over any other topmost window but not cover any fullscreen window:
particularly: {Windows Media Player, Youtube flash player, RDP}
There is a solution with continuous checks:
every YYY milliseconds…

Andrei Anufreiv
- 9
- 2
0
votes
1 answer
TVN_SELCHANGING Message in c#
I’m trying to catch TVN_SELCHANGING message from a TreeView. I know there is also the BeforeSelect event but I’d like to understand why I’m not able to catch the message…
I’ve read on msdn the TVN_SELCHANG(ED)(ING) LParam is a pointer to a…

VincentC
- 245
- 4
- 14
0
votes
1 answer
Sync mouseclicks between controls
I’ve got a TableLayoutPanel and a Treeview and I would like to sync the mouseclicks with each other.
The reason for this is that I want to be able to select something in my TableLayoutPanel and then it should also select something in the…

VincentC
- 245
- 4
- 14
0
votes
2 answers
WPF form and Windows messaging for Modal Dialogs
I have a simple WPF form with a textbox and button and on lost focus it simply simply shows a message box.
My code looks like this
private void TextBox_LostFocus(object sender, RoutedEventArgs e)
{
Debug.WriteLine("Lost Focus 1");
…

Ankit
- 653
- 2
- 8
- 18
0
votes
1 answer
How to intercept Sendmessage API
I need to intercept SendMessage API to prevent someone getting text from a particular window by sending WM_GETTEXT . so please suggest me how to do this

user1746087
- 11
- 2