uscmd (USHORT)

      Command value.

      The frame control takes the action described on these uscmd values:

      SC_SIZE

        Sends a WM_TRACKFRAME (in Frame Controls) to the frame window.
      SC_MOVE
        Sends a WM_TRACKFRAME (in Frame Controls) to the frame window.
      SC_MINIMIZE
        If a control with the identifier FID_MINMAX is present, minimizes the frame window; otherwise nothing is done.
      SC_MAXIMIZE
        If a control with the identifier FID_MINMAX is present, maximizes the frame window; otherwise nothing is done.

        When a window is moved or sized in the normal way at least one border should remain on the screen. When a window is maximized and the maximum size is as large as the screen, all borders should be positioned just outside the screen.

      SC_RESTORE
        If a control with the identifier FID_MINMAX is present, restores a maximized or minimized frame window to its previous size and position; otherwise nothing is done.
      SC_NEXT
        Cycles the active window status to the next main window.
      SC_APPMENU
        Sends a MM_STARTMENUMODE message to the control with the identifier FID_MENU.
      SC_SYSMENU
        Sends a MM_STARTMENUMODE message to the control with the identifier FID_SYSMENU.
      SC_CLOSE
        If Close is not enabled in the system menu, this message is ignored. Otherwise the frame posts a WM_CLOSE message to the client if it exists or to itself, if not.
      SC_NEXTFRAME
        The next frame window that is a child of the desktop window is activated.
      SC_NEXTWINDOW
        The next window with the same owner window is activated.
      SC_TASKMANAGER
        The Task List is activated.
      SC_HELPEXTENDED
        The frame manager sends HM_EXT_HELP to the associated Help Manager Object Window. If there is no such associated window, the original message is sent to the client.
      SC_HELPKEYS
        The frame manager sends HM_KEYS_HELP to the associated Help Manager Object Window. If there is no such associated window, the original message is sent to the client.
      SC_HELPINDEX
        The frame manager sends HM_HELP_INDEX to the associated Help Manager Object Window. If there is no such associated window, the original message is sent to the client.
      SC_HIDE
        Sets the visibility state of the frame window to off causing it to appear hidden or invisible.


      [Back] [Next]