.. highlightlang:: us .. index:: DocShow .. _docshow: DocShow ======= .. us.tag DocShow ENGLISH DocSet :ref:`DocShow` shows or hides a document window. .. function:: bool = DocShow(hDoc, nCmdShow) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hDoc Identifies the document. .. uparam:: nCmdShow *nCmdShow* specifies how the document window is to be shown: .. list-table:: :header-rows: 1 * - Value - Meaning * - SW_HIDE - Hides the window and passes activation to another window. * - SW_SHOW - Activates the window and displays it in its current size and position. * - SW_SHOWNORMAL - Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. * - SW_MAXIMIZE - Activates the window and displays it as a maximized window. * - SW_MINIMIZE - Minimizes the window and activates the top-level window. * - SW_SHOWNOACTIVATE - Displays the window as minimized (iconic) window. The window that is currently active remains active. * - SW_RESTORE - Same as SW_SHOWNORMAL. .. seealso:: :ref:`overview-documents`, :ref:`DocCreate` :sub:`id-1083123`