Archived

This topic is now archived and is closed to further replies.

Problem with Push Button

This topic is 5814 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites