GetWindowDisplaySetting
- Updated2023-02-21
- 1 minute(s) read
GetWindowDisplaySetting
void GetWindowDisplaySetting (int *visible, int *zoomState);
Purpose
Indicates how the user of your application wants the initial application window to display. The values that GetWindowDisplaySetting returns reflect the display options the user sets for the program in Microsoft Windows shells, such as Windows Explorer.
(Linux) This function is not supported.
Example Code
If you want to honor the user's display options, put the following code where you display your initial panel:
int showWindow, zoomState;
GetWindowDisplaySetting (&showWindow, &zoomState);
/* Load panel or create panel. */
if (showWindow){
SetPanelAttribute (panel, ATTR_WINDOW_ZOOM, zoomState);
SetPanelAttribute (panel, ATTR_VISIBLE, 1);
}
Parameters
Output | ||
Name | Type | Description |
visible | int | Indicates whether the user wanted the initial panel to appear when your application starts. 0 = hide window 1 = display window |
zoomState | int | If the visible parameter is set to 1, this parameter specifies how the user wants the initial panel to appear. ATTR_NO_ZOOM = normal display ATTR_MINIMIZE ATTR_MAXIMIZE |
Return Value
None.
Additional Information
Library: Utility Library
Include file: utility.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later