home | |||
links |
|
||
developer's mag main page article part 1 part 2 part 3 part 4 part 5 |
3 - Separate Sources, Common ClassBy '#include'ing the form header file eg_2.h in the source file extra.cpp, we can add the bodies of these other functions. In this way, the code can be maintained separately, you can re-export the form code at any time, and the program will continue to compile.This extra.cpp source file also contains the GUI_Main() startup function, giving us a place to add the extra initialization code: static CWindow1 *f_mainWindow; //--------------------------------------------------------Right after the form is created (and the objects are set up in their default state), the Initialize() function is called, allowing additional set up. In particular, this is where we tweak the checkbox, text edit, and rectangle objects: void CWindow1::Initialize(void) Previous Section Next Section |
||
Copyright © 2001-2006 ebmDevMag.com - Legal Notice |