请问如何将一个最小化的对话框恢复为原有大小?
有一个对话框程序,在运行时将它最小化,过一段时间后希望能自动恢复原有大小,要如何实现???
有一个对话框程序,在运行时将它最小化,过一段时间后希望能自动恢复原有大小,要如何实现???
解决方案 »
- 年终了,讨论下年终奖 --==--- 顺便来点图片你懂的
- 向对话框的列表中插入数据出错
- 如何让一个Dialog运行30秒自动关闭
- 有倒计时的MessageBox ?
- ::setcursor()很弱的问题
- 提问:ATL写DLL及调用问题 :)
- 一个关于createprocess和gina的问题
- 我使用SHFileOperation删除文件夹,为什么在win2000下好用,而在win98下出错"无法删除文件:文件系统错误(1026)"
- 谁知道象dreamver或word这样的图文编辑的实现方式或思路?另用纯C怎样在窗口中分桢?
- 寻找正在学习Socket API网络编程的网友,共同进步.
- 在服务器上运行regsvr32 hello.dll时,出错。。。
- spin控件增加和减少的方向正好相反,要怎么调?
ShowWindow(SW_RESTORE);
SW_HIDE Hides the window and activates another window.
SW_MAXIMIZE Maximizes the specified window.
SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order.
SW_RESTORE Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
SW_SHOW Activates the window and displays it in its current size and position.
SW_SHOWDEFAULT Sets the show state based on the SW_ value specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application.
SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window.
在对应的消息里让他恢复,最多就是判断一下
如果不是最小化状态就恢复,否则不做操作