AAG
May 25th, 2001, 04:01 AM
I'm having trouble with the slider control in MSVC++. I am trying to get the pos of the slider control with the following code.
int nPos;
nPos = SendDlgItemMessage(hwnd, IDC_SLIDER, TBM_GETPOS, 0, 0);
I keep getting this error when i compile:
error C2065 : 'TBM_GETPOS' : undeclared identifier
I've searched for TBM_GETPOS in my help files, and even on MSDN, it says to simply include windows.h which i already have included. DUHH
does anybody know what the problem is ? please help. i also get some errors sometimes about a certain library being excluded because of "/OPT: REF" what does this mean? sometimes it says that winmm.dll will be excluded because of "/OPT: REF" and sometimes it doesn't. why ? please HELP, i'm stressin!!
int nPos;
nPos = SendDlgItemMessage(hwnd, IDC_SLIDER, TBM_GETPOS, 0, 0);
I keep getting this error when i compile:
error C2065 : 'TBM_GETPOS' : undeclared identifier
I've searched for TBM_GETPOS in my help files, and even on MSDN, it says to simply include windows.h which i already have included. DUHH
does anybody know what the problem is ? please help. i also get some errors sometimes about a certain library being excluded because of "/OPT: REF" what does this mean? sometimes it says that winmm.dll will be excluded because of "/OPT: REF" and sometimes it doesn't. why ? please HELP, i'm stressin!!