still can't get it to work =/
iv'e switched the project to VC++ now, and have removed the menu.....here is the code that should display the window....everything compiles perfectly, but nothing happens when the button is pressed:
Code:
case WM_COMMAND:
switch(LOWORD(wParam))
{
WORD wID = LOWORD(wParam);
WORD wNotify = HIWORD(wParam);
if (lParam)
switch (wID) // Controls
{
case 10:
LvlEdit(hWnd, level_edit, button, GetModuleHandle(0));
if (!LvlEdit(hWnd, level_edit, button, GetModuleHandle(0)))
{
MessageBox(NULL, "LvlEdit() failed! Commiting suicide...", "Error", MB_OK | MB_ICONERROR);
DestroyWindow(hWnd);
}
break;
}
return 0;
}
-psychopath
--EDIT--
this may be pointless, but here is the code for the button itself:
Code:
HWND button;
button = CreateWindow("BUTTON", "Sprites", WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON, 16, 40, 64, 24, menu_box,(HMENU) 10, (HINSTANCE) GetWindowLong(hWnd, GWL_HINSTANCE), NULL);