ok.........the title explains it all.....on a menu command, i can't get a widnow to display...heres the code:
mainprog.cpp (section):
Code:
case WM_COMMAND:
switch(LOWORD(wParam))
{
case ID_EXIT:
if(MessageBox (NULL, "Are you sure you want to close the program?\nAll un-saved data will be lost." , "Exiting...", 0 + MB_YESNO + MB_DEFBUTTON2 + MB_ICONQUESTION)==IDYES)
{
PostQuitMessage( 0 );
}
break;
case ID_LVLEDIT:
BOOL LvlEdit(HWND hWnd, HWND level_edit, HINSTANCE hInstance );
break;
return 0;
}
the window create function is in the 'ID_LVLEDIT' case...heres the function code:
windowcall.h:
Code:
BOOL LvlEdit(HWND hWnd, HWND level_edit, HINSTANCE hInstance )
{
level_edit = CreateWindow(
"LVLEDIT", "Level Editor",
WS_CHILD | WS_CAPTION | WS_VISIBLE,
200, 0, 592, 516,
hWnd, NULL, hInstance, NULL );
}
thanks ahead of time
-psychopath