Using findwindow and findwindowex function, are unable to get the message prompt box handle,
Use GetForegroundWindow get just the outer handle to the parent program,
Getactivewindow get handle is null,
So how to control the pop-up message box simulation window click on the message to close the message window,
With handle to check tools can see message window is additional one thread
CodePudding user response:
Is findwindow and findwindowex, can't catch it is no use must be right,CodePudding user response:
It is recommended to use Spy4WinUnder Win10 if it won't, so we have to use Spy++
CodePudding user response:
Must be to use FindWindow (), FindWindowEx () to find,When the window pops up, use SPY++ first take a look at it's window information (title, the name of the class, etc.), hierarchical relationships,
And then you can consider how to "positioning" in it,
CodePudding user response:
In general, if it is a "window", be sure only need to use FindWindow () to go,Only need to find "contained within a window of the window" (controls, MIDI child Windows, etc.), only need to use FindWindowEx (),