CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    2

    Marquee Progressbar

    I looked on MSDN and added the "PBS_MARQUEE" style to my progressbar and then tried to sent the message "PBM_SETMARQUEE" to start it. I get an error saying:
    error C2065: 'PBS_MARQUEE' : undeclared identifier
    error C2065: 'PBM_SETMARQUEE' : undeclared identifier

    I have commctrl.h included and I linked to ComCtl32.dll. I also have visual styles enabled. When I add definitions for PBS_MARQUEE and PBM_SETMARQUEE it gives me an error saying it cannot open ComCtl32.dll.

    How is this supposed to work?
    (I'm using windows xp professional sp2)
    and I'm using ComCtl32.dll version 6.

    Thank you!
    Last edited by bnosam; September 15th, 2007 at 07:01 PM.

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Marquee Progressbar

    Those definitions are conditionally compiled in like below. If you need them, your _WIN32_WINNT value ( which indicates the minimum platform version your application will support ), should be greater than or equal to 0x0501
    Code:
    #if (_WIN32_WINNT >= 0x0501)
    #define PBS_MARQUEE             0x08
    #define PBM_SETMARQUEE          (WM_USER+10)
    #endif      // _WIN32_WINNT >= 0x0501
    Check out your stdafx.h to see what _WIN32_WINNT is defined at.

    Now, what I don't understand is this:
    When I add definitions for PBS_MARQUEE and PBM_SETMARQUEE it gives me an error saying it cannot open ComCtl32.dll.
    You say that it cannot compile. I am curious, how it could even ask for a dll when your component is not even executable !!

  3. #3
    Join Date
    Sep 2007
    Posts
    2

    Re: Marquee Progressbar

    I managed to get it working now. Thanks very much for you response, it led me in the correct direction.

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

Featured