Wednesday, December 19, 2007

How to change the Font size

How to change the Font size

To change the Font size

Step a: Adding the Group box in the dialog box

Step b: Adding the Radio button in the dialog box checked in General tab

Step c: Attaching a variable to the Radio Buttons

Step d: View>Class Wizard

Step e: Member Variables Class name: CFontDlg Control ID: IDC_RADIO1

Step f: Click ’Add Variables’ button

Step g: Initializing the Radio Buttons

Step h: View>Class Wizard

Step i: Message Maps Class name: CFontDlg Object ID:CFontDlg Message: WM_INITDIALOG

Step j: Click ‘Edit Code’ button

Step k: View>Class Wizard

Step l: Message Maps Class name: CFontDlg Object ID: IDC_RADIO1 Message:BN_CLICKED

Step m: Click ‘Add Function’ and Click ‘Edit Code’

No comments: