请问如何将一个最小化的对话框恢复为原有大小?
有一个对话框程序,在运行时将它最小化,过一段时间后希望能自动恢复原有大小,要如何实现???

解决方案 »

  1.   

    不会看帮助吗?用ShowWindow函数
    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. 
      

  2.   

    能不能settimer,时间间隔就是你想要的
    在对应的消息里让他恢复,最多就是判断一下
    如果不是最小化状态就恢复,否则不做操作
      

  3.   

    谢谢,用showwindow函数解决了。