windows-nt/Source/XPSP1/NT/shell/comctl32/v6/ccontrol.h
2020-09-26 16:20:57 +08:00

27 lines
814 B
C++

class CControl
{
protected:
//Function Memebers
virtual LRESULT v_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void _OnPaint(HDC hdc);
virtual ~CControl() {};
virtual void v_OnNCPaint() {};
virtual void v_OnPaint(HDC hdc) = 0;
virtual LRESULT v_OnCreate() = 0;
virtual void v_OnSize(int x, int y) = 0;
virtual LRESULT v_OnCommand(WPARAM wParam, LPARAM lParam) { return 0;};
virtual LRESULT v_OnNotify(WPARAM wParam, LPARAM lParam) { return 0;};
virtual DWORD v_OnStyleChanged(WPARAM wParam, LPARAM lParam);
virtual BOOL v_OnNCCalcSize(WPARAM wParam, LPARAM lParam, LRESULT* plres);
virtual LPCTSTR GetThemeClass() { return TEXT(""); }
//Data Members
CCONTROLINFO ci; // common control header info
HTHEME _hTheme;
};