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.

69 lines
2.0 KiB

  1. //
  2. // Copyright 2001 - Microsoft Corporation
  3. //
  4. //
  5. // Created By:
  6. // Geoff Pease (GPease) 23-JAN-2001
  7. //
  8. // Maintained By:
  9. // Geoff Pease (GPease) 23-JAN-2001
  10. //
  11. #pragma once
  12. class
  13. CSimpleDlg
  14. : public IUnknown
  15. {
  16. private: // data
  17. ULONG _cRef; // reference counter
  18. HWND _hwndParent; // parent window of dialog
  19. HWND _hdlg; // dialog handle
  20. BOOL _fMultipleSources:1; // TRUE if there were multiple sources.
  21. BOOL _fNoProperties:1; // TRUE if none of the properties for simple mode were found.
  22. private: // methods
  23. explicit CSimpleDlg( void );
  24. ~CSimpleDlg( void );
  25. HRESULT
  26. Init( HWND hwndParentIn, BOOL fMultipleIn );
  27. HRESULT
  28. PersistProperties( void );
  29. HRESULT
  30. PersistControlInProperty( UINT uCtlIdIn );
  31. HRESULT
  32. DoHelp( HWND hwndIn, int iXIn, int iYIn, UINT uCommandIn );
  33. // Message Handlers
  34. static INT_PTR CALLBACK
  35. DlgProc( HWND hDlgIn, UINT uMsgIn, WPARAM wParam, LPARAM lParam );
  36. LRESULT
  37. OnInitDialog( void );
  38. LRESULT
  39. OnCommand( WORD wCodeIn, WORD wCtlIn, LPARAM lParam );
  40. LRESULT
  41. OnNotify( int iCtlIdIn, LPNMHDR pnmhIn );
  42. LRESULT
  43. OnDestroy( void );
  44. LRESULT
  45. OnHelp( LPHELPINFO pHelpInfoIn );
  46. LRESULT
  47. OnContextMenu( HWND hwndIn, int iXIn, int iYIn );
  48. public: // methods
  49. static HRESULT
  50. CreateInstance( CSimpleDlg ** pSimDlgOut, HWND hwndParentIn, BOOL fMultipleIn );
  51. HRESULT
  52. Show( void );
  53. HRESULT
  54. Hide( void );
  55. HRESULT
  56. PopulateProperties( CPropertyCache * ppcIn, DWORD dwDocTypeIn, BOOL fMultipleIn );
  57. // IUnknown
  58. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  59. STDMETHOD_( ULONG, AddRef )( void );
  60. STDMETHOD_( ULONG, Release )( void );
  61. };