mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
735 B
23 lines
735 B
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
|
|
};
|
|
|