我在属性页中进行一些设置,希望在没有设置完成以前,按确定按钮不退出。在CPropertySheet和CPropertyPage中都没有可用的信息。希望高手赐教!谢谢
解决方案 »
- 呵呵,有个ListView问题求教高手来解决。!
- 显示bitmap 然后拉伸了下窗口就会出现这样的错误呢?希望高手指点!
- 在自己的工程里用过7-zip.dll库的朋友帮下忙。
- 主线程控制子线程的运行,用PostThreadMessage和用WaitForSingleObject等待事件的方式哪种效率更好?还有ResumeThread()
- 请问,当A窗口在另一个B窗口上面移动时,B窗口上面的按边缘会染上A窗口的颜色,怎么样解决?
- 想和大家一起研究开发一个安装程序
- SendArp( )效率问题
- 大家随便聊,我给分(1)
- 在WIN中如何实现消息机制?
- 还是桌面问题,请指教,谢谢。
- 大家帮忙分析如下代码如何出错(VC+ODBC)
- 简单问题:读出本程序虚拟内存中0x00400000的值
// Accept the new color selection and dismiss the CPropertySheet
// dialog. The view's object will be painted with the new selected
// color. CColorPage is a CPropertyPage-derived class.
void CColorPage::OnOK()
{
// Store the new selected color to a member variable of
// document class. m_Color is a member varible of CColorPage
// and it stores the new selected color. doc->m_Color is
// the color saved in the document class and it is the color
// used by the view class.
CFrameWnd* frame = (CFrameWnd*) AfxGetMainWnd();
CPSheetDoc* doc = (CPSheetDoc*) frame->GetActiveDocument();
doc->m_Color = m_Color; // Tell the view to paint with the new selected color.
CView* view = frame->GetActiveView();
view->Invalidate();
CPropertyPage::OnOK();
}// The default MFC implementation of OnApply() would call OnOK().
BOOL CColorPage::OnApply()
{
return CPropertyPage::OnApply();
}
GetDlgItem(IDOK)->ShowWindow(SW_HIDE )