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.

60 lines
1.3 KiB

  1. #if !defined(AFX_CTRLWND_H__FB3BEA3B_8EC5_11D2_BD40_0000F87A3912__INCLUDED_)
  2. #define AFX_CTRLWND_H__FB3BEA3B_8EC5_11D2_BD40_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // CtrlWnd.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCtrlWnd window
  10. class CCtrlWnd : public CWnd
  11. {
  12. DECLARE_DYNCREATE(CCtrlWnd)
  13. // Construction
  14. public:
  15. CCtrlWnd();
  16. // Attributes
  17. public:
  18. protected:
  19. CWnd m_wndControl;
  20. // Operations
  21. public:
  22. BOOL CreateControl(LPCTSTR lpszControlID);
  23. CWnd* GetControl();
  24. LPUNKNOWN GetControlIUnknown();
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CCtrlWnd)
  28. protected:
  29. virtual void PostNcDestroy();
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. virtual ~CCtrlWnd();
  34. // Generated message map functions
  35. protected:
  36. //{{AFX_MSG(CCtrlWnd)
  37. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  38. afx_msg void OnPaint();
  39. afx_msg void OnSize(UINT nType, int cx, int cy);
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. };
  43. /////////////////////////////////////////////////////////////////////////////
  44. //{{AFX_INSERT_LOCATION}}
  45. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  46. #endif // !defined(AFX_CTRLWND_H__FB3BEA3B_8EC5_11D2_BD40_0000F87A3912__INCLUDED_)