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

5.2 EditDlg

View the EditDlg sample for insight on how to use SECEditCtrl in a dialog. The code in CEditDlgDlg::OnInitDialog() shows how to attach the SECEditCtrl to an edit control on a dialog template. It also demonstrates printing from a dialog.

Follow these steps to implement:

  1. Add SECEditCtrlPrinter.cpp and .h into your project.

  2. Add #include "afxprint.rc" to your resource includes.

  3. Add #include "SECEditCtrlPrinter.h" to the .cpp file that will do the printing.

  4. Add code to print your SECEditCtrl's contents:


    These same steps may be used to print an SECEditCtrl from a CFormView.

Figure 14: EditDlg Sample



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.