Hi:
I have a problem like this:
In MDI, there are several Child windows, they are opened when frame window created...
it pops up the message only when I click the submenu item, but it always give the previous active child window title name... I don't how to solve that...Code:....WinProc() //frame window proc... char szBuf[20]; // to hold activated child window name. HWND hwndChild; in message handler, switch (mMsg) { ....... default: // get the active child window handle hwndChild = (HWND)SendMessage (hwndClient, MDIGETACTIVE, 0, 0); //get the active child window title name GetW indowText(hwndChild,szBuf,20); //display the title name MessageBox(0,szBuf,"window title",MB_OK);
And how can I get the active child window name only by clicking the child window, not from submenu item??
Thanks
I want to get the active Child window's title name when I simply click one child window,



LinkBack URL
About LinkBacks



