SendMessage function
Have to cast SendMessage function as (HWND)for the program to compile. But the software freezes.
Also when debugging VS2013 complains
+ hActiveWnd 0x00500454 {unused=??? } HWND__ *
1 2 3 4 5 6
|
void pass(WPARAM wParam,LPARAM lParam)
{
HWND hActiveWnd;
hActiveWnd=(HWND)SendMessage(hMDIWnd,WM_MDIGETACTIVE,0,0L);
if(IsWindow(hActiveWnd)) SendMessage(hActiveWnd,WM_COMMAND,wParam,lParam);
}
|
What is hMDIWnd?
Main Windows handle.
Topic archived. No new replies allowed.