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.

76 lines
2.2 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 2000
  4. *
  5. * TITLE: PPATTACH.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 10/26/2000
  12. *
  13. * DESCRIPTION:
  14. *
  15. *******************************************************************************/
  16. #ifndef __PPATTACH_H_INCLUDED
  17. #define __PPATTACH_H_INCLUDED
  18. #include <windows.h>
  19. #include <atlbase.h>
  20. #include "attach.h"
  21. class CAttachmentCommonPropertyPage
  22. {
  23. private:
  24. HWND m_hWnd;
  25. //
  26. // We need to get this from CScannerPropPageExt *m_pScannerPropPageExt;
  27. //
  28. CComPtr<IWiaItem> m_pWiaItem;
  29. HICON m_hDefAttachmentIcon;
  30. CSimpleString m_strDefaultUnknownDescription;
  31. CSimpleString m_strEmptyDescriptionMask;
  32. CSimpleString m_strDefUnknownExtension;
  33. private:
  34. //
  35. // No implementation
  36. //
  37. CAttachmentCommonPropertyPage(void);
  38. CAttachmentCommonPropertyPage( const CAttachmentCommonPropertyPage & );
  39. CAttachmentCommonPropertyPage &operator=( const CAttachmentCommonPropertyPage & );
  40. private:
  41. CAttachmentCommonPropertyPage( HWND hWnd );
  42. LRESULT OnCommand( WPARAM, LPARAM );
  43. LRESULT OnNotify( WPARAM, LPARAM );
  44. LRESULT OnInitDialog( WPARAM, LPARAM );
  45. LRESULT OnApply( WPARAM, LPARAM );
  46. LRESULT OnKillActive( WPARAM, LPARAM );
  47. LRESULT OnSetActive( WPARAM, LPARAM );
  48. LRESULT OnHelp( WPARAM, LPARAM );
  49. LRESULT OnContextMenu( WPARAM, LPARAM );
  50. LRESULT OnListDeleteItem( WPARAM, LPARAM );
  51. LRESULT OnListItemChanged( WPARAM, LPARAM );
  52. LRESULT OnListDblClk( WPARAM, LPARAM );
  53. bool IsPlaySupported( const GUID &guidFormat );
  54. void UpdateControls(void);
  55. void Initialize(void);
  56. void AddAnnotation( HWND hwndList, const CAnnotation &Annotation );
  57. void PlayItem( int nIndex );
  58. int GetCurrentSelection(void);
  59. CAnnotation *GetAttachment( int nIndex );
  60. void OnPlay( WPARAM, LPARAM );
  61. public:
  62. ~CAttachmentCommonPropertyPage(void);
  63. static INT_PTR CALLBACK DialogProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  64. };
  65. #endif //__PPSCAN_H_INCLUDED