does anyone know how to add a progress bar to a status bar?
I have searched the forums but i couldnt find anything
This is a discussion on Progress Bar in Status Bar :: No MFC within the Windows Programming forums, part of the Platform Specific Boards category; does anyone know how to add a progress bar to a status bar? I have searched the forums but i ...
does anyone know how to add a progress bar to a status bar?
I have searched the forums but i couldnt find anything
"There are three kinds of people in the world...
Those that can count and those that can't."
I found this in some source code. It might help.
- SeanCode:/*------------------------------------------------------------------------ Module: PROGRESSBAR.H Author: Daniel Guerrero Miralles Project: TreeSize State: zero Creation Date: 26/10/98 Description: Interface to progress bar common control. Resembles the CProgressCtrl in MFC. Don't forget to call "InitCommonControls()". ------------------------------------------------------------------------*/ #include <windows.h> #include <commctrl.h> #ifndef _PROGRESSBAR_H_ #define _PROGRESSBAR_H_ /* --- Macros --- */ #define ProgressBar_SetRange(hwnd,nLower,nUpper) ((void)SendMessage(hwnd,PBM_SETRANGE,(WPARAM)0,MAKELPARAM(nLower,nUpper))) #define ProgressBar_SetPos(hwnd,nPos) ((int)SendMessage(hwnd,PBM_SETPOS,(WPARAM)nPos,(LPARAM)0)) #define ProgressBar_OffsetPos(hwnd,nIncrement) ((int)SendMessage(hwnd,PBM_DELTAPOS,(WPARAM)nIncrement,(LPARAM)0)) #define ProgressBar_SetStep(hwnd,nStep) ((int)SendMessage(hwnd,PBM_SETSTEP,(WPARAM)nStep,(LPARAM)0)) #define ProgressBar_StepIt(hwnd) ((int)SendMessage(hwnd,PBM_STEPIT,(WPARAM)0,(LPARAM)0)) #define ProgressBar_Create(hwParent,hInst,nChidId,cx,cy,cw,ch) ((HWND)CreateWindow(PROGRESS_CLASS\ ,(LPSTR)NULL,WS_CHILD|WS_VISIBLE,cx,cy,cw,ch,hwParent,(HMENU)nChildId,hInst,NULL)) #define ProgressBar_Destroy(hwnd) ((void)DestroyWindow(hwnd)) /* --- Functions --- */ #endif
If cities were built like software is built, the first woodpecker to come along would level civilization.
Black Frog Studios
i think that is just a progress bar, i need to know how to embed a progress bar into a status bar, thanks anyway
"There are three kinds of people in the world...
Those that can count and those that can't."
Here is a link to msdn when I searched for a progress bar in a status bar. This might work.
http://msdn.microsoft.com/library/de...cmthSysCmd.asp
- Sean
If cities were built like software is built, the first woodpecker to come along would level civilization.
Black Frog Studios
hmm i need it to be in C/C++
"There are three kinds of people in the world...
Those that can count and those that can't."