Remember how the wizard created wrapper classes to enable easy access to the control? Now we will create a member variable m_fg of type CvsFlexGrid. This variable will be attached to the control on the form, and it will allow us to read and set the object's properties, trap events, and so on.
Return to the VC++ workspace window and select the Resources pane. Open the main dialog (called IDD_OUTLINEC_DIALOG) by double-clicking on it.
Now hold down the CTRL key and double-click on the VSFlexGrid control. You will see a dialog prompting you to enter a variable name. Type m_fg and click OK. The Wizard will create the variable and initialize it for you.