Ok, Im having trouble creating my MDI form. Everywhere I search on the net, it has something to do with a mennu item, but what i wanna do is the user click a button, and another window comes up. So anyways on this site, it had this in the WM_CREATE of the MainWndProc()
I'm wondering what to do about ccs.hWindowMenu, and also where we create the window, (HMENU)IDC_MAIN_MDI. Right now Ive tried to add everything I could to my form, but when I click the button nothing happens, and also, when the window loads, its like part of it didnt load, i mean i can see through it or something, I dont know if you know what i mean. and if i move everything around the controls leave imprints of itself on parts of the form. Anyways, i hope someone can help.
ccs.hWindowMenu = GetSubMenu(GetMenu(hwnd), 2);
ccs.idFirstChild = ID_MDI_FIRSTCHILD;
g_hMDIClient = CreateWindowEx(WS_EX_CLIENTEDGE, "mdiclient", NULL,
WS_CHILD | WS_CLIPCHILDREN | WS_VSCROLL | WS_HSCROLL | WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
hwnd, (HMENU)IDC_MAIN_MDI, GetModuleHandle(NULL), (LPVOID)&ccs);