HELPWININFO
The HELPWININFO
structure contains the size and position of either a primary or a secondary
Help window. An application can set this information by calling the WinHelp
function with the HELP_SETWINPOS value.
typedef struct {
// hwi
int wStructSize;
int x;
int y;
int dx;
int dy;
int wMax;
TCHAR
rgchMember[2];
} HELPWININFO;
Members
wStructSize
Specifies the
structure size, in bytes.
x
Specifies the
x-coordinate of the upper-left corner of the window, in screen coordinates.
y
Specifies the
y-coordinate of the upper-left corner of the window, in screen coordinates.
dx
Specifies the
window width, in pixels.
dy
Specifies the
window height, in pixels.
wMax
Specifies how
to show the window. This member must be one of the following values:
Value |
Action |
SW_HIDE |
Hides the
window and passes activation to another window. |
SW_MINIMIZE |
Minimizes
the specified window and activates the top-level window in the Z order. |
SW_RESTORE |
Same as
SW_SHOWNORMAL. |
SW_SHOW |
Activates a
window and displays it in its current size and position. |
SW_SHOWMAXIMIZED |
Activates
the window and displays it as a maximized window. |
SW_SHOWMINIMIZED |
Activates
the window and displays it as an icon. |
SW_SHOWMINNOACTIVE |
Displays
the window as an icon. The window that is currently active remains active. |
SW_SHOWNA |
Displays
the window in its current state. The window that is currently active remains
active. |
SW_SHOWNOACTIVATE |
Displays a
window in its most recent size and position. The window that is currently
active remains active. |
SW_SHOWNORMAL |
Activates
and displays the window. Whether the window is minimized or maximized,
Windows restores it to its original size and position. |
rgchMember
Specifies the
name of the window.
Remarks
Windows Help
divides the display into 1024 units in both the x- and y-directions. To create
a secondary window that fills the upper-left quadrant of the display, for
example, an application would specify zero for the x and y
members and 512 for the dx and dy members.
See Also