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.

65 lines
1.4 KiB

  1. /****************************************************************************
  2. *
  3. * FILE: UPropDlg.h
  4. *
  5. * CREATED: Chris Pirich (ChrisPi) 6-18-96
  6. *
  7. ****************************************************************************/
  8. #ifndef _UPROPDLG_H_
  9. #define _UPROPDLG_H_
  10. // 2 pages
  11. #define PSP_MAX 2
  12. struct UPROPDLGENTRY
  13. {
  14. UINT uProperty;
  15. LPTSTR pszValue;
  16. };
  17. typedef UPROPDLGENTRY* PUPROPDLGENTRY;
  18. class CUserPropertiesDlg
  19. {
  20. protected:
  21. HWND m_hwndParent;
  22. HWND m_hwnd;
  23. PUPROPDLGENTRY m_pUPDE;
  24. int m_nProperties;
  25. LPTSTR m_pszName;
  26. UINT m_uIcon;
  27. HICON m_hIcon;
  28. PCCERT_CONTEXT m_pCert;
  29. BOOL OnPropertiesMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  30. BOOL OnCredentialsMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  31. BOOL OnInitPropertiesDialog();
  32. BOOL OnInitCredentialsDialog();
  33. // Handlers:
  34. BOOL OnOk();
  35. public:
  36. // Methods:
  37. CUserPropertiesDlg( HWND hwndParent,
  38. UINT uIcon);
  39. ~CUserPropertiesDlg() { ::DestroyIcon(m_hIcon); };
  40. INT_PTR DoModal(PUPROPDLGENTRY pUPDE,
  41. int nProperties,
  42. LPTSTR pszName,
  43. PCCERT_CONTEXT pCert);
  44. static INT_PTR CALLBACK UserPropertiesDlgProc( HWND hDlg,
  45. UINT uMsg,
  46. WPARAM wParam,
  47. LPARAM lParam);
  48. static INT_PTR CALLBACK UserCredentialsDlgProc( HWND hDlg,
  49. UINT uMsg,
  50. WPARAM wParam,
  51. LPARAM lParam);
  52. };
  53. #endif // _UPROPDLG_H_
  54.