CMFCPropertyGridCtrl 使用简记
来源:互联网 发布:谷歌怎么优化 编辑:程序博客网 时间:2024/06/06 21:37
CMFCPropertyGridCtrl 使用简记
CMFCPropertyGridCtrl vc2008 新增加类使用方法:
创建:CMFCPropertyGridCtrl m_wndPropList ;
CRect rectDummy;
rectDummy.SetRectEmpty ();
if (!m_wndPropList .Create (WS_VISIBLE | WS_CHILD, rectDummy, this, 1))
{
TRACE0("Failed to create Properies Grid /n");
return -1; // fail to create
}
m_wndPropList.EnableHeaderCtrl (FALSE);//标头
m_wndPropList.EnableDescriptionArea ();//
m_wndPropList.SetVSDotNetLook ();//
增加项:
CMFCPropertyGridProperty* pMDITabsProp = new CMFCPropertyGridProperty (_T("Enable MDI Tabs"),
lpszMDITabsStyles [1],
_T("Enable or disable either the standard MDI Tabs feature, or MDI Tabbed Groups feature"),
idShowMDITabs);
pMDITabsProp->AddOption (_T ("None"));
pMDITabsProp->AddOption (_T ("MDI Tabs (Standard)"));
pMDITabsProp->AddOption (_T ("MDI Tabbed Groups"));
m_wndPropList.AddProperty (pMDITabsProp);
得到一项值:
CMFCPropertyGridProperty* m_pro = m_wndPropList ->GetProperty( int nIndex ) ;
CString str = m_pro ->GetValue();
回调方法:
afx_msg LRESULT OnPropertyChanged (WPARAM,LPARAM);
ON_REGISTERED_MESSAGE(AFX_WM_PROPERTY_CHANGED, OnPropertyChanged)
LRESULT CWorkspaceBar::OnPropertyChanged (WPARAM,LPARAM lParam)
{
CMFCPropertyGridProperty* pProp = (CMFCPropertyGridProperty*) lParam;
BOOL bResetMDIChild = FALSE;
switch ((int) pProp->GetData ())
{
case :pProp->GetValue(); break ;
}
}
http://qzone.qq.com/blog/4666942-1230445980
创建:CMFCPropertyGridCtrl m_wndPropList ;
CRect rectDummy;
rectDummy.SetRectEmpty ();
if (!m_wndPropList .Create (WS_VISIBLE | WS_CHILD, rectDummy, this, 1))
{
TRACE0("Failed to create Properies Grid /n");
return -1; // fail to create
}
m_wndPropList.EnableHeaderCtrl (FALSE);//标头
m_wndPropList.EnableDescriptionArea ();//
m_wndPropList.SetVSDotNetLook ();//
增加项:
CMFCPropertyGridProperty* pMDITabsProp = new CMFCPropertyGridProperty (_T("Enable MDI Tabs"),
lpszMDITabsStyles [1],
_T("Enable or disable either the standard MDI Tabs feature, or MDI Tabbed Groups feature"),
idShowMDITabs);
pMDITabsProp->AddOption (_T ("None"));
pMDITabsProp->AddOption (_T ("MDI Tabs (Standard)"));
pMDITabsProp->AddOption (_T ("MDI Tabbed Groups"));
m_wndPropList.AddProperty (pMDITabsProp);
得到一项值:
CMFCPropertyGridProperty* m_pro = m_wndPropList ->GetProperty( int nIndex ) ;
CString str = m_pro ->GetValue();
回调方法:
afx_msg LRESULT OnPropertyChanged (WPARAM,LPARAM);
ON_REGISTERED_MESSAGE(AFX_WM_PROPERTY_CHANGED, OnPropertyChanged)
LRESULT CWorkspaceBar::OnPropertyChanged (WPARAM,LPARAM lParam)
{
CMFCPropertyGridProperty* pProp = (CMFCPropertyGridProperty*) lParam;
BOOL bResetMDIChild = FALSE;
switch ((int) pProp->GetData ())
{
case :pProp->GetValue(); break ;
}
}
http://qzone.qq.com/blog/4666942-1230445980
- CMFCPropertyGridCtrl 使用简记
- CMFCPropertyGridCtrl 使用简记
- CMFCPropertyGridCtrl 使用简记
- CMFCPropertyGridCtrl的使用
- CMFCPropertyGridCtrl
- CMFCPropertyGridCtrl
- 使用CMFCPropertyGridCtrl及CMFCPropertyGridProperty控件的心得体会
- 属性窗口开发--CMFCPropertyGridCtrl的使用
- sql 游标使用简记
- 编译宏使用简记
- TortoiseSVN使用简记
- maven简单使用简记
- Java Applet使用简记
- git 使用简记
- signaltap使用简记
- git使用简记
- setProjectionMap@SQLiteQueryBuilder使用简记
- Gradle使用简记
- jQuery如何调用ASP.NET的WebService
- 关山月(李白)
- “键”无虚发(——谈数据库在面向对象设计中键的应用)(下)
- Linux下Makefile的automake生成全攻略
- 软件行业的迷思
- CMFCPropertyGridCtrl 使用简记
- 弱校联赛师大第一场 1002 SecKill
- 一个艰难的决定。。。搬家了~
- 综合应用友情链接管理
- SID # 和NID #(系统识别码和网络识别码)
- 结构体用于map,set时要重载运算符<
- Visual Studio技巧之打造拥有自己标识的代码模板
- linux下的Makefile的自动生成
- java 写的日历控件