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.

47 lines
1.3 KiB

  1. #ifndef UNPAGE_H
  2. #define UNPAGE_H
  3. class CUsernamePageBase
  4. {
  5. protected:
  6. CUsernamePageBase(CUserInfo* pUserInfo): m_pUserInfo(pUserInfo) {}
  7. protected:
  8. // Message handlers
  9. BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
  10. protected:
  11. // Data
  12. CUserInfo* m_pUserInfo;
  13. };
  14. class CUsernameWizardPage: public CPropertyPage, public CUsernamePageBase
  15. {
  16. public:
  17. CUsernameWizardPage(CUserInfo* pUserInfo): CUsernamePageBase(pUserInfo) {}
  18. protected:
  19. // Message handlers
  20. virtual INT_PTR DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  21. BOOL OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh);
  22. BOOL OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  23. private:
  24. // Functions
  25. void SetWizardButtons(HWND hwnd, HWND hwndPropSheet);
  26. };
  27. class CUsernamePropertyPage: public CPropertyPage, public CUsernamePageBase
  28. {
  29. public:
  30. CUsernamePropertyPage(CUserInfo* pUserInfo): CUsernamePageBase(pUserInfo) {}
  31. protected:
  32. // Message handlers
  33. virtual INT_PTR DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  34. BOOL OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh);
  35. BOOL OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  36. };
  37. #endif //!UNPAGE_H