Quote:
quote:Originally posted by Ankur_Verma
Right click on the Slider control in your dialog
box and select Add Variable. name the variable and click finish. this is a CSliderCtrl type
variable thats added to your dialog class as a
member variable.
Access any method you wanna access through this
variable
|
When I right click on the slider bar it will only let me select "Add Class". I'm only selected a win32 project not an MFC, so i don't know if this is causing any problems. I've tried to turn the dialog into a class but it does nothing. It only generates a resource.h file with the folowing
Code:
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Chp2Ex11.rc
//
#define IDD_DIALOG1 101
#define IDC_SLIDER1 1001
#define IDC_RED 1001
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1002
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
Then if i try "IDC_RED:: " to access the 'SetRange' function it isn't available in the intellisense options. I expect that the dialog needs to be made into a class but it just won't let me do it. The thing is I don't want to make an MFC project because there is a lot of excess code that I don't want to use. Any idea where I'm going wrong?
Cheers
DRB2k2