does anyone know how to add a progress bar to a status bar?
I have searched the forums but i couldnt find anything
Printable View
does anyone know how to add a progress bar to a status bar?
I have searched the forums but i couldnt find anything
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
i think that is just a progress bar, i need to know how to embed a progress bar into a status bar, thanks anyway
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
hmm i need it to be in C/C++