I have a program which consists of two windows (hWnd, and picturewind). I would like to write code which takes an action every time a person clicks inside of the second window (picturewind) but not when the person clicks in the first window (hWnd). Can anyone tell me how I am to determine when the second window has been clicked in, as apposed to the first?
How do I determine which window has been clicked in? (Note: I'm aware of the function GetActiveWindow, but I don't know how to use it properly to achieve the above result)
I'm using win32/C++, thanks.