Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WinSetPresParam (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINSYS
BOOL WinSetPresParam(hwnd, id, cbParam, pbParam)
HWND hwnd; /* window handle */
ULONG id; /* presentation parameter */
ULONG cbParam; /* presentation-parameter size */
PVOID pbParam; /* pointer to presentation parameter */
The WinSetPresParam function sets a presentation parameter.
Parameter Description
────────────────────────────────────────────────────────────────────────────
hwnd Identifies the window that contains the presentation parameters
to set.
id Identifies the presentation parameter to set. For a list of
presentation parameters, see the ◄Presentation parameters►
topic.
cbParam Specifies the length (in bytes) of the buffer pointed to by the
pbParam parameter.
pbParam Points to the buffer that contains the presentation parameter.
Return Value
The return value is TRUE if the function is successful or FALSE if an error
occurs.
Comments
When a presentation parameter is set, a WM_PRESPARAMCHANGED message is sent
to all windows owned by the window calling the WinSetPresParam function.
See Also
WinQueryPresParam, WinRemovePresParam
♦