Rich Edit Sample

richedit


Compiling

To compile the example:

Running

After launching the program, a window will be displayed as shown above. The program is a simple text editor which allows you to load and save files; select fonts and colors; and print files. The operations are accessible through the menu bar and/or the tool bar.

Under the Hood

Both the menu items and the tool bar buttons are handled by on_menu_command which has been redefined in MAIN_WINDOW.

Four of the standard dialogs provided by WEL are used to receive input from the user.

This sample contains the following classes:

See Also
WEL_RICH_EDIT
WEL_PRINT_DIALOG
WEL_SAVE_FILE_DIALOG
WEL_OPEN_FILE_DIALOG
WEL_CHOOSE_COLOR_DIALOG
WEL_CHOOSE_FONT_DIALOG