I just want to write a simple program which detects when a new window pops-up, and work out/report where the window is located.
What is the easiest way to detect a new window?
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
//for(!stop) - loop until stopped, maybe with button?
typedef struct coOrd { LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
You could always try one of the C or C++ forums
forum116
forum205
forum207
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
This is (relatively) straightforward, and just requires a CBT hook. We have previously used these in examples on repurposing Input Boxes. So a keyword search of the forum against "CBT hook input box" should find some info to set you on an apprpriate path
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.