6 #ifndef _INC_cWndProgressText_H
7 #define _INC_cWndProgressText_H
20 class GRAYLIB_LINK cWndProgressText :
public cWndProgressCtrl,
public cWindowHook
27 typedef cWndProgressCtrl SUPER_t;
32 cWndFont m_VerticalFont;
50 void OnPaint(HDC hDC);
54 LRESULT OnSetRange(WPARAM, LPARAM lparamRange);
55 LRESULT OnSetPos(WPARAM nNewPos, LPARAM);
56 LRESULT OnOffsetPos(WPARAM nIncrement, LPARAM);
57 LRESULT OnSetStep(WPARAM nStepInc, LPARAM);
58 LRESULT OnStepIt(WPARAM, LPARAM);
59 LRESULT OnSetRange32(WPARAM nLowLim, LPARAM nHighLim);
60 LRESULT OnGetRange(WPARAM bWhichLimit, LPARAM pPBRange);
61 LRESULT OnGetPos(WPARAM, LPARAM);
62 LRESULT OnSetBarColor(WPARAM, LPARAM crBar);
63 LRESULT OnSetBarBkColor(WPARAM, LPARAM crBarBk);
66 void CreateVerticalFont();
68 virtual LRESULT HookWindowProc(
WINMSG_t message, WPARAM wParam, LPARAM lParam);
74 bool AttachHwnd( HWND hWnd );
75 void SetTextPercent(
const GChar_t* pszText,
int iPercent=-1 );
88 bool SetShowPercent(
bool bShow);
89 DWORD AlignText(DWORD dwAlignment = DT_CENTER);
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
UINT WINMSG_t
Supplement _WIN32 "windows.h".
Definition: WinTypes.h:111
UINT32 COLORREF
ABGR (high to low bits)
Definition: cVariantData.h:21
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26