Source code of Windows XP (NT5)
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.

32 lines
789 B

  1. /*****************************************************************************************************************
  2. FILENAME: ESButton.h
  3. COPYRIGHT 2001 Microsoft Corporation and Executive Software International, Inc.
  4. */
  5. #ifndef _ESBUTTON_H_
  6. #define _ESBUTTON_H_
  7. class ESButton
  8. {
  9. private:
  10. HWND m_hwndButton;
  11. public:
  12. ESButton(HWND hwndParent, UINT ButtonId, HINSTANCE hInstance);
  13. ~ESButton();
  14. BOOL ShowButton(int cmdShow);
  15. BOOL PositionButton(RECT* prcPos);
  16. BOOL SetText(TCHAR* szNewText);
  17. BOOL LoadString(HINSTANCE hInstance, UINT labelResourceID);
  18. BOOL SetFont(HFONT hNewFont);
  19. BOOL EnableButton(BOOL bEnable);
  20. BOOL ShowWindow(UINT showState);
  21. BOOL IsButtonEnabled(void);
  22. HWND GetWindowHandle(void) {return m_hwndButton;};
  23. };
  24. #endif