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.

87 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. usrppgp.h
  5. Abstract:
  6. User property page (products) implementation.
  7. Author:
  8. Don Ryan (donryan) 05-Feb-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _USRPPGP_H_
  14. #define _USRPPGP_H_
  15. class CUserPropertyPageProducts : public CPropertyPage
  16. {
  17. DECLARE_DYNCREATE(CUserPropertyPageProducts)
  18. private:
  19. CUser* m_pUser;
  20. DWORD* m_pUpdateHint;
  21. BOOL m_bProductProperties;
  22. BOOL m_bAreCtrlsInitialized;
  23. public:
  24. CUserPropertyPageProducts();
  25. ~CUserPropertyPageProducts();
  26. void InitPage(CUser* pUser, DWORD* pUpdateHint, BOOL bProductProperties = TRUE);
  27. void AbortPageIfNecessary();
  28. void AbortPage();
  29. void InitCtrls();
  30. BOOL RefreshCtrls();
  31. void ViewProductProperties();
  32. //{{AFX_DATA(CUserPropertyPageProducts)
  33. enum { IDD = IDD_PP_USER_PRODUCTS };
  34. CButton m_upgBtn;
  35. CButton m_delBtn;
  36. CListCtrl m_productList;
  37. BOOL m_bUseBackOffice;
  38. //}}AFX_DATA
  39. //{{AFX_VIRTUAL(CUserPropertyPageProducts)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX);
  42. virtual BOOL OnSetActive();
  43. virtual BOOL OnKillActive();
  44. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  45. //}}AFX_VIRTUAL
  46. protected:
  47. //{{AFX_MSG(CUserPropertyPageProducts)
  48. virtual BOOL OnInitDialog();
  49. afx_msg void OnDelete();
  50. afx_msg void OnBackOfficeUpgrade();
  51. afx_msg void OnDblClkProducts(NMHDR* pNMHDR, LRESULT* pResult);
  52. afx_msg void OnReturnProducts(NMHDR* pNMHDR, LRESULT* pResult);
  53. afx_msg void OnSetFocusProducts(NMHDR* pNMHDR, LRESULT* pResult);
  54. afx_msg void OnKillFocusProducts(NMHDR* pNMHDR, LRESULT* pResult);
  55. afx_msg void OnColumnClickProducts(NMHDR* pNMHDR, LRESULT* pResult);
  56. afx_msg void OnGetDispInfoProducts(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnDestroy();
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. };
  61. int CALLBACK CompareUserProducts(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
  62. #endif // _USRPPGP_H_