CPropertySheet procSheet("对话框");
procSheet.Create();
procSheet.ShowWindow(SW_SHOW);
Create中的默认参数第二个是风格,默认的话有四个标签,但都不起作用 ,这是为什么?
如果procSheet.DoModal();的话,默认的按扭都有效果。
如何在非模态对话框中设置自定义的按钮?和对应消息处理
procSheet.Create();
procSheet.ShowWindow(SW_SHOW);
Create中的默认参数第二个是风格,默认的话有四个标签,但都不起作用 ,这是为什么?
如果procSheet.DoModal();的话,默认的按扭都有效果。
如何在非模态对话框中设置自定义的按钮?和对应消息处理
解决方案 »
- MFC下gdal显示图像问题
- 国庆散分
- 商业软件的界面开发 大部分都是ATL吗?
- 高分求教:CWindowImpl继承产生的Edit控件为什么不接收中文?
- 如何点击右键显示自己定义的菜单?
- 关于ClistBox的问题,特别急
- fetal error
- opencv程序
- 那天我读一本书,其中“JAVA程序不能执行写盘和访问串行端口的任务”,请问串行端口是指什么?
- 请问各位朋友:在武汉,哪里能买到《Visual C++技术内幕》(第四版)?
- Expression: _CrtIsValidHeapPointer(pUserData)错误
- 有事没事都进来看看SetWindowsHookEx与中文输入的问题,请大家帮帮忙!!!
void AddPage( CPropertyPage *pPage );要加入页.
When you add a property page using AddPage, the CPropertySheet is the parent of the CPropertyPage. To gain access to the property sheet from the property page, call CWnd::GetParent. 大意是property page可以通过GetParent得到其父窗口
具体代码如下:
BOOL CFindDlg::OnCommand(WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
if(HIWORD(wParam) == BN_CLICKED)
{
switch(LOWORD(wParam))
{
case ID_APPLY_NOW: // Apply
PressButton(PSBTN_APPLYNOW);
return TRUE;
case IDCANCEL:
PressButton(PSBTN_CANCEL);
DestroyWindow();
return TRUE;
case ID_WIZFINISH:
PressButton(PSBTN_FINISH);
DestroyWindow();
return TRUE;
case IDHELP:
PressButton (PSBTN_HELP);
return TRUE;
}
}
return CPropertySheet::OnCommand(wParam, lParam);
}
个人网站
博客
本人花了6个月的拙作<<深入浅出——Visual C++入门、进阶与应用实例 >>