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.

73 lines
1.9 KiB

  1. // AMapCtl.h : Declaration of the CAccountMapperCtrl OLE control class.
  2. /////////////////////////////////////////////////////////////////////////////
  3. // CAccountMapperCtrl : See AMapCtl.cpp for implementation.
  4. class CAccountMapperCtrl : public COleControl
  5. {
  6. DECLARE_DYNCREATE(CAccountMapperCtrl)
  7. // Constructor
  8. public:
  9. CAccountMapperCtrl();
  10. // Overrides
  11. // Drawing function
  12. virtual void OnDraw(
  13. CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  14. // Persistence
  15. virtual void DoPropExchange(CPropExchange* pPX);
  16. // Reset control state
  17. virtual void OnResetState();
  18. // Implementation
  19. protected:
  20. // run the mapping dialog - the whole purpose of this control!
  21. void RunMappingDialog();
  22. ~CAccountMapperCtrl();
  23. DECLARE_OLECREATE_EX(CAccountMapperCtrl) // Class factory and guid
  24. DECLARE_OLETYPELIB(CAccountMapperCtrl) // GetTypeInfo
  25. DECLARE_PROPPAGEIDS(CAccountMapperCtrl) // Property page IDs
  26. DECLARE_OLECTLTYPE(CAccountMapperCtrl) // Type name and misc status
  27. // Subclassed control support
  28. BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. BOOL IsSubclassedControl();
  30. LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam);
  31. // Message maps
  32. //{{AFX_MSG(CAccountMapperCtrl)
  33. // NOTE - ClassWizard will add and remove member functions here.
  34. // DO NOT EDIT what you see in these blocks of generated code !
  35. //}}AFX_MSG
  36. DECLARE_MESSAGE_MAP()
  37. // Dispatch maps
  38. //{{AFX_DISPATCH(CAccountMapperCtrl)
  39. afx_msg void ShowMappingDialog();
  40. //}}AFX_DISPATCH
  41. DECLARE_DISPATCH_MAP()
  42. // Event maps
  43. //{{AFX_EVENT(CAccountMapperCtrl)
  44. void FireClick()
  45. {FireEvent(DISPID_CLICK,EVENT_PARAM(VTS_NONE));}
  46. //}}AFX_EVENT
  47. DECLARE_EVENT_MAP()
  48. // Dispatch and event IDs
  49. public:
  50. enum {
  51. //{{AFX_DISP_ID(CAccountMapperCtrl)
  52. dispidShowMappingDialog = 1L,
  53. //}}AFX_DISP_ID
  54. };
  55. private:
  56. BOOL fInitialized;
  57. };