Home > Software engineering >  VC MFC based on dialog box
VC MFC based on dialog box

Time:10-01

How to through the radio button to limit the use of certain buttons





Hexadecimal choose different, 8 and 9 show different keys, solving, and concrete steps

CodePudding user response:

GelDlgItem (ID) - & gt; SetWindowText ()

CodePudding user response:

GetDlgItem (ID) - & gt; The EnableWindow (FALSE);

CodePudding user response:

In radio button click event to control button, SetWindowText can set different text, EnableWindow can control can make

CodePudding user response:

How to write a few EnableWindow to control it is originally wanted to build an array to save button dynamically created paintings you configuration is also very trouble

CodePudding user response:

Right, 3/f,

CodePudding user response:

Set the display and does not display the can,,

CodePudding user response:

Will all the keys associated with the corresponding CButtonX (x is 0,... )
In the event of an option
ButtonX. EnableWindow (FALSE);
ButtonX. EnableWindow (TRUE);

To control button is enabled

CodePudding user response:

The simple and crude on the second floor

CodePudding user response:

Can use GetDlgItem (ID) - & gt; The EnableWindow (FALSE); ah
  • Related