1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using POSTMSG to minimize/restore a window

Discussion in 'T&T - Miscellaneous' started by ron, Jul 28, 2009.

  1. ron

    ron

    Joined:
    Aug 19, 2008
    Messages:
    130
    Likes Received:
    0
    Because I came here looking for how to do this, and just in case I need to know again someday :D.

    Reference:
    #define SC_MINIMIZE 0xF020 /* 61472 */
    #define SC_RESTORE 0xF120 /* 61728 */

    #define WM_SYSCOMMAND 0x0112 /* 274 */

    Command line:
    <c:\> POSTMSG "*Notepad*" 274 61472

    <c:\> POSTMSG "*Notepad*" 274 61728</c:\></c:\>
     

Share This Page