Problem with Push Button

Started by
-1 comments, last by Caramon 22 years, 3 months ago
I have a win32 program which makes the screen 800*600.If you press F1F2F3 It displays different ellipses at the screen and when you hit escape it quits. There is also a button which is supposed to do nothing at the moment but when i click it and try F1 F2 F3 or ESC nothing happens Those keys are no longer avaliable Here is the code:
      
case WM_CREATE:
QuitButton = CreateWindow("Button","Quit",WS_CHILD |
WS_VISIBLE  | BS_PUSHBUTTON, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT,CW_USEDEFAULT, hwnd, (HMENU)QUIT_BUTTON,
((LPCREATESTRUCT)lparam)->hInstance, NULL);
MoveWindow(QuitButton,320,25,100,25,false);
return 0;

case WM_COMMAND:

if(HIWORD(wparam) == BN_CLICKED)
{
			
     if(LOWORD(wparam) == QUIT_BUTTON) 
	{
		//ChangeDisplaySettings(NULL, 0);

		//PostQuitMessage(0);

					
	}
}
return 0;
      
What should i do now? I'll meet you in the next life,where we can be together. Edited by - caramon on January 12, 2002 11:41:29 AM Edited by - caramon on January 12, 2002 1:41:06 PM
----------------------I'll meet you in the next life,where we can be together.

This topic is closed to new replies.

Advertisement