Wednesday, December 19, 2007

How to display the words in the dialog box

How to display the words in the dialog box

To display the words in the dialog box

Step a: Make the MFCAppWizard(exe)

Step b: Make the push button and edit box into the dialog box

Step c: Attaching a Variable the edit box

Step d: View>Class Wizard

Step e: Member Variables tab Class name:CfontDlg Control ID:IDC_EDIT

Step f: Click ‘Add Variable’ Button Member Variable name: m_Data Category: Value Variable types: CString

Step g: Click ‘OK’ button

Step h: Attaching Code to the EN_CHANGE Event

Step i: View>Class Wizard

Step j: Message Maps Class name: CfontDlg Object ID: IDC_EDIT1 Message:EN_CHANGE

Step k: Click ‘Add Function’ button and Click ‘Edit Code’ button

Step l: Enter Code

Step m: attaching code to the WM_PAINT

Step n View>Class Wizard

Step o: Message Maps Class name: CFontDlg Object ID: CFontDlg Message: WM_PAINT

Step p: Click ‘Edit Code’ button

Enter the Code

No comments: