Leaked source code of windows server 2003
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.

26 lines
840 B

  1. class CControl
  2. {
  3. protected:
  4. //Function Memebers
  5. virtual LRESULT v_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  6. void _OnPaint(HDC hdc);
  7. virtual ~CControl() {};
  8. virtual void v_OnNCPaint() {};
  9. virtual void v_OnPaint(HDC hdc) = 0;
  10. virtual LRESULT v_OnCreate() = 0;
  11. virtual void v_OnSize(int x, int y) = 0;
  12. virtual LRESULT v_OnCommand(WPARAM wParam, LPARAM lParam) { return 0;};
  13. virtual LRESULT v_OnNotify(WPARAM wParam, LPARAM lParam) { return 0;};
  14. virtual DWORD v_OnStyleChanged(WPARAM wParam, LPARAM lParam);
  15. virtual BOOL v_OnNCCalcSize(WPARAM wParam, LPARAM lParam, LRESULT* plres);
  16. virtual LPCTSTR GetThemeClass() { return TEXT(""); }
  17. //Data Members
  18. CCONTROLINFO ci; // common control header info
  19. HTHEME _hTheme;
  20. };