MFC Controls

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

 The syntax of the EDITTEXT resource looks like this:

EDITTEXT [Control Id], [X Pos], [Y Pos], [Width], [Height], [Style Options]

 The syntax to declare a button is shown below:

[DEF]PUSHBUTTON [Caption], [Control Id], [X Pos], [Y Pos], [Width], [Height], [Style Options]

 The syntax of the CHECKBOX control is shown below:

[AUTO]CHECKBOX [Caption], [Control Id], [X Pos], [Y Pos], [Width], [Height], [Style Options]

 The syntax of our radio button is exactly the same as the CHECKBOX and AUTOCHECKBOX
controls:

[AUTO]RADIOBUTTON [Caption], [Control Id], [X Pos], [Y Pos], [Width], [Height], [Style Options]

 The CTEXT control acts like a label, and is primarily used for display purposes only. The CTEXT
control has the following syntax:

CTEXT [Caption], [Control Id], [X Pos], [Y Pos], [Width], [Height], [Style Options]

 The syntax for a list box control is shown below:

LISTBOX [Control Id], [X Pos], [Y Pos], [Width], [Height], [Style Options]

 We add a group box to our resource file with the following syntax:

GROUPBOX [Caption], [Control Id], [X Pos], [Y Pos], [Width], [Height], [Style Options]

You might also like