CodePudding user response:
Listening to the click event to do the corresponding processingCodePudding user response:
Write a listen for an eventCodePudding user response:
The basicAdd a press number 1 class count variable, class constructor in initializing the variable
2 add button ON_BNCLICKED events, increase the count in the OnBnclickedXXXX, and output information
CodePudding user response:
Handle button click event, and then you use a variable count, SetWindowText set the textCodePudding user response:
A soy sauce!!!!! Methods have given aboveCodePudding user response:
Add a member variable int nBtnClickedCount, initialized to 0Join in the OnBnclickedXXXX
nBtnClickedCount++