Questions tagged [windows-messages]

Questions about various messages in a Windows system.

Windows is an event driven operating system basically only responding to messages.

Message-identifier values are used as follows:

  • The system reserves message-identifier values in the range 0x0000 through 0x03FF (the value of WM_USER – 1) for system-defined messages. Applications cannot use these values for private messages.

  • Values in the range 0x0400 (the value of WM_USER) through 0x7FFF are available for message identifiers for private window classes.

  • If your application is marked version 4.0, you can use message-identifier values in the range 0x8000 (WM_APP) through 0xBFFF for private messages.

  • The system returns a message identifier in the range 0xC000 through 0xFFFF when an application calls the RegisterWindowMessage function to register a message. The message identifier returned by this function is guaranteed to be unique throughout the system. Use of this function prevents conflicts that can arise if other applications use the same message identifier for different purposes.

312 questions
0
votes
1 answer

C# Windows (touch -> click/focus) messages between Form and Controls (WM_xxx)

I have a 3rd party open-source control (not important which one really, but its CefSharp's Chromium Web browser [v 43]). Initially, there was a problem where if a form menu was open when you clicked inside the control, the menu was not dismissing…
user1830285
  • 578
  • 8
  • 24
0
votes
1 answer

Debugging Windows Services while starting

How can I debug an windows service when it is starting? I have an windows service that is falling to start and I add all the logs that I could but something is happening behind the scenes (between the installed service and Windows) that I cannot see…
Icaro
  • 14,585
  • 6
  • 60
  • 75
0
votes
1 answer

Accessing and inheriting Windows Message for other Windows Message in Delphi

I am using WMSysCommand messages to modify Caption bar button ( Maximize / Minimize ) behaivor and recent update requiered to use WMNCHitTest, but I do not want to split these two related messages in multiplie procedures because of lengthy code. Can…
HX_unbanned
  • 583
  • 1
  • 15
  • 51
0
votes
1 answer

Which WM is sent where TAB key or Enter key is pressed?

I need the WM that is sent when TAB or Enter key is pressed. Inspecting this list ( I don't know if this is the complete list of WM ) : http://www.pinvoke.net/default.aspx/Constants/WM.html I have tried several WM like : WM_CHAR WM_KEYDOWN But none…
alex
  • 694
  • 3
  • 15
  • 35
0
votes
1 answer

How to eat MDIChild Minimize messages

I have some code which intercepts and eats WM_ExitSizeMove messages because I want to prevent users from maximizing MDIChild forms. I would also like to prevent them from minimizing MDIChild forms too but I can't figure out which message to…
Andy Groom
  • 619
  • 1
  • 7
  • 15
0
votes
1 answer

Intercept the closing message of a window opened with ShellExecuteEx

I have an annoying program that don't save his position when closed. I've made a small console program that open it and move the window to another position, now i want to save the position when the program close, how i can intercept the closing…
k0tt
  • 76
  • 1
  • 7
0
votes
0 answers

How to catch EVERY windows setfocus message

I want my delphi application to be able to know which control currently has keyboard focus, system wide (in different processes). To achieve this, I use a global CBT hook to get all of the setfocus messages. Every focus change triggers my…
Airogat
  • 199
  • 1
  • 1
  • 10
0
votes
1 answer

Sending Starting Parameters to VSTO

I want to invoke Word App from my application, I have also created VSTO application to be hosted inside the word. I want to send starting parameters to the VSTO. I want to show the side pane only if the it was invoked from my other application and…
0
votes
1 answer

Signal event on Window's notification

I am implementing a Reactor design pattern, using a single thread, for asynchronous operations using Windows Events Mechanism. I faced a problem while trying to combine my reactor to support Windows Notifications (WM_CLOSE, WM_CREATE,…
CodeNinja
  • 291
  • 5
  • 19
0
votes
1 answer

Delphi - replace control WindowProc and dispatch the message

Starting from Way of getting control handle from TMessage question, I've created my own implementation in order to replace the Windowproc with my own one, in order to make some processing when mouse left button is pressed. TOverrideMessage =…
RBA
  • 12,337
  • 16
  • 79
  • 126
0
votes
0 answers

Capture WM_PASTE outside application

I'm trying to capture the WM_PASTE message if I paste from the clipboard to an application outside my own, but it never fires. Is there any way to do this or am I stuck with using a keyboard hook? Relevant Code: //--dllImport …
WolfyD
  • 865
  • 3
  • 14
  • 29
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

Windows Message Not Fired on HTHELP Button

I have a VCL form that is set for bsDialog with biHelp enabled ("?" icon in application bar). I am following this example: http://delphi.about.com/od/adptips2006/qt/custom_bihelp.htm However I cannot get the WMNCLBUTTONDOWN Windows Message to appear…
ikathegreat
  • 2,311
  • 9
  • 49
  • 80
0
votes
1 answer

c++ MFC and handling windows Messages

What code is needed in the message map for Windows messages? The code calling the function: SendMessage(GRID_WM_UPDATECELL,(WPARAM)1,(LPARAM)&sDisp); The function: LRESULT CNJAGridCtrl::OnUpdateCell(WPARAM wParam, LPARAM lParam) { }
Jak
  • 471
  • 5
  • 20
0
votes
2 answers

WM_PAINT not send when using WS_EX_COMPOSITE

I'm working in a legacy application using MFC. We have a mechanism to enable/disable controls depending on some business logic. This mechanism is implemented in the CView-derived class. The way it works is all the views in the application derived…
Javier De Pedro
  • 2,219
  • 4
  • 32
  • 49