我构建的一个窗体 对象在主窗体初始化的时候new出来。 如果关闭的话我只是发送一个WM_COLSE消息,但是不删除窗体的对象那么下次我接着创建出窗体,会不会有什么问题因为需要周期性的打开这个窗体。
解决方案 »
- 请问怎样美化任务栏xp,mfc里有处理任务栏的api函数吗?原来的任务栏也就一蓝条,看腻了
- 计算字符串频次/MFC库
- OnMeasureItem与MeasureItem的区别是什么?
- MFC中Ondraw怎么在一个屏幕中画多幅bmp位图?
- 遍历注册表的奇怪问题-夜不眠求救命
- 请各位帮我看一下,一个网络连接的问题~~!
- 如何重载CSplitterWnd类,实现分割栏上有铵钮的功能?
- 我用VC编写的服务程序,为什么我的服务程序没法设断点?
- 关于给Adobe Acrobat Reader 加插件的问题,高分求救!
- 怎样把一个对话框中的一个列表内容弄到另一个列表中?
- ■■■怎样得到复制状态下的系统的鼠标图标
- VS2010 格式化代码的快捷键是什么?看了别的贴, 还是不明白
When you implement a modeless dialog box, always override the OnCancel member function and call DestroyWindow from within it. Don't call the base class CDialog::OnCancel, because it calls EndDialog, which will make the dialog box invisible but will not destroy it. You should also override PostNcDestroy for modeless dialog boxes in order to delete this, since modeless dialog boxes are usually allocated with new. Modal dialog boxes are usually constructed on the frame and do not need PostNcDestroy cleanup.