ShrinkingPropSheet.h
上传用户:ledjyj
上传日期:2019-03-13
资源大小:36k
文件大小:1k
源码类别:

工具条

开发平台:

Visual C++

  1. #pragma once
  2. /*
  3. Code based on:
  4. Free size and extended styles in CPropertySheets
  5. By Antonio Tejada Lacaci 
  6. How to use extended styles and make Property Sheets any size.  
  7. From CodeProject
  8. */
  9. // The exact definition for this struct can be found at
  10. // MSDN's DLGTEMPLATEEX help topic
  11. typedef struct {
  12.       WORD   dlgVer;
  13.       WORD   signature;
  14.       DWORD  helpID;
  15.       DWORD  exStyle;
  16.       DWORD  style; 
  17.       WORD   cDlgItems;
  18.       short  x;
  19.       short  y;    
  20.       short  cx;
  21.       short  cy;
  22.       // The structure has more fields but are variable length
  23. } DLGTEMPLATEEX; 
  24. // CShrinkingPropSheet
  25. class CShrinkingPropSheet : public CPropertySheet
  26. {
  27. DECLARE_DYNAMIC(CShrinkingPropSheet)
  28. public:
  29. CShrinkingPropSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  30. CShrinkingPropSheet(LPCTSTR pszCaption="", CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  31. virtual ~CShrinkingPropSheet();
  32. protected:
  33. DECLARE_MESSAGE_MAP()
  34. public:
  35. virtual BOOL OnInitDialog();
  36. };