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.

30 lines
914 B

  1. //---------------------------------------------------------------------------
  2. // Sample.h - dialog for sampling the active theme
  3. //---------------------------------------------------------------------------
  4. #pragma once
  5. #include "resource.h"
  6. //---------------------------------------------------------------------------
  7. class CSample : public CDialogImpl<CSample>
  8. {
  9. public:
  10. CSample();
  11. BEGIN_MSG_MAP(CSample)
  12. COMMAND_HANDLER(IDC_MSGBOXBUTTON, BN_CLICKED, OnMsgBox)
  13. COMMAND_HANDLER(IDC_EDITTHEME, BN_CLICKED, OnEditTheme)
  14. MESSAGE_HANDLER(WM_CLOSE, OnClose);
  15. END_MSG_MAP()
  16. enum {IDD = THEME_SAMPLE};
  17. protected:
  18. //---- helpers ----
  19. LRESULT OnMsgBox(UINT, UINT, HWND, BOOL&);
  20. LRESULT OnEditTheme(UINT, UINT, HWND, BOOL&);
  21. LRESULT OnClose(UINT, WPARAM, LPARAM, BOOL&);
  22. };
  23. //---------------------------------------------------------------------------