Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Grid User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

8.4 DbQuery - Step 3

8.4.1 Add a New Frame Class

  1. Select Class View from the View menu.

  2. Right click on the root node (DbQuery) and select Add, then Class.

  3. Select MFC in the left tree, and MFC Class from the right list box.

  4. In the MFC Add Class Wizard, enter CRecordStatusMDIChildWnd for the Name.

  5. In the MFC Add Class Wizard, specify CMDIChildWnd for the Base class.

  6. Click Finish to generate the class files.

  7. Right click CRecordStatusMDIChildWnd in Class view, and select Properties.

  8. Click on overrides and select OnCreateClient in the list.

  9. Pull down the combobox and select <Add> OnCreateClient in the Messages dropdown.

  10. Change OnCreateClient() as follows:

  11. Open RecordStatusMDIChildWnd.h and insert the following into the attributes section of the class:

  12. Save and close RecordStatusMDIChildWnd.h and RecordStatusMDIChildWnd.cpp.

8.4.2 Change the DbQuery View to the New Frame Class

  1. Open DbQuery.cpp.

  2. Add

    after

  3. Search for:

    and replace it with:

8.4.3 Compile and Run DbQuery - Step 3

Now, you can compile the application and run it.

  1. Compile the application and run it.

  2. Note the record number at the bottom of the window.

    Figure 107: DbQuery-Step 3 in action

Congratulations on completing the DdQuery tutorial. For more information try these other tutorials:



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.