Results 1 to 2 of 2

Thread: Slider Control Problems.

  1. #1

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    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!!

  2. #2

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    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
  •  



Click Here to Expand Forum to Full Width