While capturing the WM_ACTIVATE message, I am getting the LPARAM parameter of the message handler as NULL if the windows are in the different threads. So after some reading and searching I found that for this kind of situation one should use WM_ACTIVATEAPP. But my problem is that WM_ACTIVATEAPP is not supported for WINCE. I want to know some alternative so that if activation happens and windows affected are in the different threads I can get handle of other window in current window class..
Asked
Active
Viewed 254 times
0
-
You're looking at the wrong problem. You shouldn't have Windows in different threads - they should *all* be in the primary UI thread where the message pump is running. – ctacke Jan 02 '12 at 14:16
-
The both threads are UI threads.. – Manish Jan 02 '12 at 15:52
-
How can you have multiple UI Threads? Are you talking about two separate processes? – ctacke Jan 02 '12 at 18:48
-
Actually you can have - see CWinThread on MSDN – marcinj Jan 02 '12 at 19:26
-
If you create 2 seprate windows in two different threads both will become GUI thread. Isn't it..?? – Manish Jan 03 '12 at 04:49