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...
....WinProc() //frame window proc...
char szBuf; // to hold activated child window name.
in message handler,
// get the active child window handle
hwndChild = (HWND)SendMessage (hwndClient, MDIGETACTIVE, 0, 0);
//get the active child window title name
//display the title name
And how can I get the active child window name only by clicking the child window, not from submenu item??
I want to get the active Child window's title name when I simply click one child window,