|
-
May 25th, 2001, 04:01 AM
#1
Thread Starter
Hyperactive Member
Slider Control Problems.
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.
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!!
-
May 25th, 2001, 05:39 AM
#2
Thread Starter
Hyperactive Member
nevermind
nevermind, i got it. stupid me, i forgot to include
#include <CommCtrl.h>
hehe oops.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|