Home > Software engineering >  Use MFC to write 2048, add the control problem
Use MFC to write 2048, add the control problem

Time:10-11

Game algorithm written, can run, want to play games on the dialog box to add a button to start, but found that adding controls the game is not running, just add a static text game also don't run,,,,
MFC small white, is where I set wrong

CodePudding user response:

The button to clear the first to write program

CodePudding user response:

Learn to debug, see settled on which of the statements,

CodePudding user response:

Because, you display need to refresh the interface of the game, but was covered by the button interface, keyboard messages can start again, in the message processing function,

CodePudding user response:

Kao to directly source from other place? Can not run too abstract, how can not run is specific

CodePudding user response:

Add a button, it is only changed the rc file, or add to the control response processing, or how, you this let a person touched not pure mind

CodePudding user response:

Want to do is start button, in the client area can be a interface directly, an area in the interface response to
Non-client area directly add button and add the click the response

CodePudding user response:

The Debug your debugged and see where call failure or a mistake?
  • Related