Is there a way to send a user message to any of app's active dialogs?

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have an app that receives external HW-driven events, and I need to
pass that information along to any of a number of dialogs that may be
active when the event occurs (there can only be one active at any
given time). I thought some version of PostMessage would work, but I
can't get it to work. It does work if the dialog, on initializing,
passes back to the app its hWnd, and the app then uses that hWnd in
PostMessage. I can use that technique if I need to, but I'm hoping
there's a way for an app to post a message to an active dialog without
first knowing its hWnd. Sorry if this is obvious...

Mike

.



Relevant Pages

  • Re: Application LostFocus?
    ... Public Function GetActivehWnd() ... Dim hwnd As Long ... Dim hWndCurrent As Long ... non-zero number when the Access app containing this function has the focus ...
    (microsoft.public.access.modulesdaovba)
  • HtmlHelp schliesst meine App...
    ... ich habe ein Problem mit der Funktion "HtmlHelp". ... Wenn ich die CHM-Datei ein paar mal von meiner App aus öffne, ... HWND g_hWnd = NULL; ...
    (microsoft.public.de.vc)
  • Re: Choosing between different COM servers?
    ... By the way, what about HWND? ... Window Handles are quaranteed unique for all running processes. ... be your main app. ... PCDInstance pcdInst; ...
    (microsoft.public.vb.com)
  • Re: Sending WM_LBUTTONDBLCLK to a ListView control
    ... To simplify the troubleshooting I have built a simple .NET app with a label ... then to the ListView control in App A. Both ... public const UInt32 WM_MOUSEACTIVATE = 0x0021; ... public static extern IntPtr SendNotifyMessage(IntPtr hWnd, uint Msg, IntPtr ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Independent process other than .exe
    ... writes its hwnd value into the table it reads to look for jobs to do. ... Watcher should attempt to kill the process by using the hwnd value. ... There is a "worker" app. ...
    (microsoft.public.fox.programmer.exchange)