ENEE408G Fall 2003 (Update 09/23/2003)
Mobile Computing and Pocket PC Programming
36
(3) Initialize the Slider, Edit Box, and List Box: Right click the Slider button and
click “ClassWizard”. Click the “Member Variables” tap.
Double click IDC_SLIDER_FRAME_INDEX on the Control IDs Box. An Add
Member Variable dialog box will show up.
Type “m_Slider_Frame_Index” in the Member variable name edit box,. Choose
“Control” in the Category list box and “CSliderCtrl” in the Variable type list box.
Likewise, for the List Box, double click IDC_LIST_RATE in the Control IDs edit
box. Type “m_List_Rate” in the Member variable name edit box. Choose
“Control” in the Category list box and “CListBox” in the Variable type list box.
For the Edit Box, double click IDC_EDIT_FRAME in the Control IDs edit box.
Type “m_Edit_Frame” in the Member variable name edit box. Choose “Value”
on the Category list box and “CString” in Variable type list box. For the Static,
double click IDC_STATIC_showBITMAP in the Control IDs edit box. Type
“m_showBITMAP” in the Member variable name edit box. Choose “Control” on
the Category list box and “CStatic” in Variable type list box.
(4) Set Messages and Member Functions
Kommentare zu diesen Handbüchern