Marquee Progess Bar
-
Create your progress bar with PBS_MARQUEE[^] style. You can start and stop the animation, and control its speed using PBM_SETMARQUEE[^] message. :)
-
In win32
//Set Marquee Style to Progress Bar
SetWindowLongPtr(hwndProgressBar, GWL_STYLE, PBS_MARQUEE);
//Turn On Marque
SendMessage(hwndProgressBar, PBM_SETMARQUEE, (WPARAM)TRUE, (LPARAM)100/*interval*/);Marquee style needs additional requirements. If it doesn't work, try additional resource manifests. Build Requirements for Windows Vista Common Controls Manifest Resources
-
In win32
//Set Marquee Style to Progress Bar
SetWindowLongPtr(hwndProgressBar, GWL_STYLE, PBS_MARQUEE);
//Turn On Marque
SendMessage(hwndProgressBar, PBM_SETMARQUEE, (WPARAM)TRUE, (LPARAM)100/*interval*/);Marquee style needs additional requirements. If it doesn't work, try additional resource manifests. Build Requirements for Windows Vista Common Controls Manifest Resources
I am getting compilation error: C2065: 'PBS_MARQUEE' : undeclared identifier I written the code the InitDialog() HWND hwndProgress=GetDlgItem(m_hwnd,IDC_PROGRESS1); SetWindowLongPtr(hwndProgress, GWL_STYLE, PBS_MARQUEE); My application is win32. Please suggest??
-
I am getting compilation error: C2065: 'PBS_MARQUEE' : undeclared identifier I written the code the InitDialog() HWND hwndProgress=GetDlgItem(m_hwnd,IDC_PROGRESS1); SetWindowLongPtr(hwndProgress, GWL_STYLE, PBS_MARQUEE); My application is win32. Please suggest??
Check your SDK version and the value asigned to the WINVER symbol. May be the definition of that constant is disabled by a old WINVER number
2 bugs found. > recompile ... 65534 bugs found. :doh:
-
Check your SDK version and the value asigned to the WINVER symbol. May be the definition of that constant is disabled by a old WINVER number
2 bugs found. > recompile ... 65534 bugs found. :doh:
as emilo told, you can see those values in CommCtrl.h as
#if (_WIN32_WINNT >= 0x0501)
#define PBS_MARQUEE 0x08
#endif // _WIN32_WINNT >= 0x0501#if (_WIN32_WINNT >= 0x0501)
#define PBM_SETMARQUEE (WM_USER+10)
#endif // _WIN32_WINNT >= 0x0501so check your source code (probably in targetver.h) for #define _WIN32_WINNT and check the value. Also, you can try defining those values manually in your code as
#define PBS_MARQUEE 0x08
#define PBM_SETMARQUEE (WM_USER+10):thumbsup:
-
as emilo told, you can see those values in CommCtrl.h as
#if (_WIN32_WINNT >= 0x0501)
#define PBS_MARQUEE 0x08
#endif // _WIN32_WINNT >= 0x0501#if (_WIN32_WINNT >= 0x0501)
#define PBM_SETMARQUEE (WM_USER+10)
#endif // _WIN32_WINNT >= 0x0501so check your source code (probably in targetver.h) for #define _WIN32_WINNT and check the value. Also, you can try defining those values manually in your code as
#define PBS_MARQUEE 0x08
#define PBM_SETMARQUEE (WM_USER+10):thumbsup:
err... this should be said to the OP not to myself
2 bugs found. > recompile ... 65534 bugs found. :doh:
-
err... this should be said to the OP not to myself
2 bugs found. > recompile ... 65534 bugs found. :doh: