Home > Software engineering >  C related issues
C related issues

Time:09-26

how to implement in a form, click a button, and then press this button to display in the form of the corresponding output after information and press this button to the number of times?

CodePudding user response:

Listening to the click event to do the corresponding processing

CodePudding user response:

Write a listen for an event

CodePudding user response:

The basic
Add 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 text

CodePudding user response:

A soy sauce!!!!! Methods have given above

CodePudding user response:

Add a member variable int nBtnClickedCount, initialized to 0
Join in the OnBnclickedXXXX
nBtnClickedCount++
  • Related