Strange, very strange.
I'm using CDialog to process messages form CMenu.
CDialog does not enter modal state.
CDialog constructor have Create() and
CDialog destructor have CWnd::DestroyWindow();
I'm using following code to dispatch message to CDialog:
MSG msg;
GetMessage(&msg);
DispatchMessage(&msg);
Now, if CDialog is visible code runs ok.
If CDialog is NOT visible code stops at GetMessage() and hungs ???
Why? What to do? I dont want CDialog to be visible.
I could try somehting like this:
dlgPM.ShowWindow(SW_SHOW);
GetMessage(&msg, dlgPM.m_hWnd, 0, 0);
dlgPM.ShowWindow(SW_HIDE);
but it blinks on screen and I dont want that either.
Thanks for help, Rajko.