hello,
can anybody tell me how to create a handler for MDIClient control in vc++ win32, i mean a handler like LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) which handles hWnd window Drawing, painting, destroying and etc... here is the code how i create the mdiclient control
code:
HWND ChildWindowCreation(HWND hWnd, HINSTANCE hInst){
hwndClient = CreateWindow (TEXT ("MDICLIENT"), NULL, WS_CHILD |WS_BORDER|
WS_CLIPCHILDREN | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL, 0, 0,
0, 0, hWnd, (HMENU) 1, hInst,
(PSTR)&clientcreate) ;
if(!hwndClient){
MessageBox(NULL, "Program did not made the stuff ready for you", "Error", MB_OK|MB_ICONERROR);
}
return hwndClient;
}
and then i call the function in hWnd(parent window) in WM_create which creates it perfectly. so i wanted to have a handler for it either. can anybody tell me how.
Thanks in advance.