windows-nt/Source/XPSP1/NT/shell/comctl32/v5/ccontrol.h

24 lines
735 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
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);
//Data Members
CONTROLINFO ci; // common control header info
};