Operating System-Windows [3i Infotech Placement]: Sample Questions 3 - 3 of 3

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 3

Question

MCQ▾

Which of the following API is used to hide a window?

Choices

Choice (4)

a.

Show Window

b.

Set Window Placement

c.

Move Window

d.

Enable Window

Answer

a.

Explanation

  • ShowWindow shows a window in a certain manner.
  • Example, the function can minimize, maximize, or restore a given window.
  • The function returns if the window had been hidden before the call, or a non-zero value if it had been visible.

Syntax

BOOL WINAPI ShowWindow (

_In_ HWND hWnd,

_In_ int nCmdShow

) ;

Parameters:

  • hwnd:
    • type: HWND
    • A handle to the window.
  • nCmdShow [int]
    • Type: int
    • Controls how the window is to be shown.
    • This parameter is ignored the first time

Developed by: