but hey.. that someone I have mention has solved my problem.
I just give him the hole code.. well in poor words i didn't register the MDI child window at the WM_CREATE.. and ofc. the window can't show up.. but the problem was that the compiler didn't gave me any errors .. that was the real problem so.. i just forgot to put this ..
SetUpMDIChildWindowClass(GetModuleHandleA(NULL)
here
<pre>case WM_CREATE:
{
CLIENTCREATESTRUCT ccs;
ccs.hWindowMenu = GetSubMenu(GetMenu(hwnd), 2);
ccs.idFirstChild = ID_MDI_FIRSTCHILD;
hMDIClientWindow = CreateWindowEx(WS_EX_CLIENTEDGE, "mdiclient", NULL,
WS_VISIBLE | WS_CHILD | WS_CLIPCHILDREN | WS_VSCROLL | WS_HSCROLL,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
hwnd, (HMENU)IDC_MAIN_MDI, GetModuleHandle(NULL), (LPVOID)&ccs);
if (hMDIClientWindow == NULL)
{
MessageBox(hwnd, "Could not create MDI client !", "Error", MB_ICONERROR | MB_OK);
}
HWND hStatus;
int statwidths[] = { 140, 300, -1 };
hStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL,
WS_VISIBLE | WS_CHILD | SBARS_SIZEGRIP,
0, 0, 0, 0, hwnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);
SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths) / sizeof(int), (LPARAM)statwidths);
SendMessage(hStatus, SB_SETTEXT, 0, (LPARAM)" Author: Me");
SendMessage(hStatus, SB_SETTEXT, 1, (LPARAM)" - MDI2 - ");
SendMessage(hStatus, SB_SETTEXT, 2, (LPARAM)" May 2020");
SetUpMDIChildWindowClass(GetModuleHandleA(NULL));
}
However thanks everyone ... cheers