I am working with a mdi workspace. Usually in other programs like if you maximize a window there is the 3 buttons for the parent window like maximize, minimize and close then there is a smaller one for the child window that is maximized. My mdi client doesnt do that, is there like a special style I have to specify or something? Thanks.
edit
Here is my MDI proc:
Here is mdi window:Code:LRESULT CALLBACK MainMDIProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) { case WM_DESTROY: PostQuitMessage(0); break; /* case WM_SIZE: HWND temp, riched; temp = GetFocus(); if(temp != hwndtreeparent){ riched = FindWindowEx(temp, NULL, RICHEDIT_CLASS, NULL); GetClientRect(temp, &rc); MoveWindow(riched, 20, 0, rc.right-30, rc.bottom-30, FALSE); break; } GetClientRect(hwndtreeparent, &rc); MoveWindow(hwndtreeview, 10, 10, rc.right - 20, rc.bottom - 20, FALSE); break;*/ case WM_CLOSE: HWND temp2; temp2 = GetFocus(); if(temp2 == hwndtreeparent){ ShowWindow(hwndtreeparent, SW_HIDE); break; } ShowWindow(temp2, SW_HIDE); // DestroyWindow(temp2); break; default: return DefMDIChildProc(hwnd, message, wParam, lParam); } return 0; }
Code:hwndmdi = CreateWindowEx(0, "mdiclient", 0, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 10, 10, rc.right - 20, rc.bottom - 20, hwnd, 0, gInstance, &ccs);



LinkBack URL
About LinkBacks


