WM SETWINDOWPARAMS
This message occurs when an application sets or changes the window parameters.
- in Button Controls
Occurs when an application sets or changes the button control window procedure window parameters.
- in Entry Fields
This message occurs when an application sets or changes the entry field control window parameters.
- in Frame Controls
This message occurs when an application sets or changes the frame control window parameters.
- in List Boxes
This message occurs when an application sets or changes the list box control window parameters.
- in Menu Controls
This message occurs when an application sets or changes the menu control window procedure parameters.
- in Multiline Entry Fields
This message occurs when an application sets or changes the entry field control window parameters.
- in Scroll Bars
This message occurs when an application sets or changes the scroll bar control window parameters.
- in Slider Controls
For the cause of this message, see WM_SETWINDOWPARAMS.
- in Static Controls
This message occurs when an application sets or changes the static control window procedure window parameters.
- in Title Bar Controls
This message occurs when an application sets or changes the title bar control window procedure window parameters.
- in Value Set Controls
For the cause of this message, see WM_SETWINDOWPARAMS.
Syntax
param1 PWNDPARAMS pwndparams; /* Window parameter structure. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
in Circular Slider Controls
param1 PWNDPARAMS pwndparams /* Pointer to a WNDPARAMS window parameter structure. */ param2 ULONG ulReserved /* Reserved value, should be 0. */
in Slider Controls
param1 PWNDPARAMS pwndparams /* Pointer to a WNDPARAMS window parameter structure. */ param2 ULONG ulReserved /* Reserved value, should be 0. */
in Value Set Controls
param1 PWNDPARAMS wndparams /* Pointer to a WNDPARAMS structure. */ param2 ULONG ulReserved /* Reserved value, should be 0. */
Parameters
- pwndparams (PWNDPARAMS) - input
- Pointer to a window parameter structure; see WNDPARAMS. The valid values of fsStatus are WPM_TEXT and WPM_CTLDATA.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
in Circular Slider Controls
- pwndparams (PWNDPARAMS) - input
- Pointer to a WNDPARAMS window parameter structure.
- This structure contains:
- status (ULONG): Window parameter selection.
- Identifies the window parameters that are to be set. The valid value for the slider control is:
- WPM_TEXT: Window text.
- The flags in the status field are cleared as each item is processed.
- If the call is successful, the status field is 0. If any item has not been processed, the flag for that item remains set.
- Identifies the window parameters that are to be set. The valid value for the slider control is:
- length (ULONG): Length of the window text.
- text (PSZ): Window text.
- presparamslength (ULONG): Length of presentation parameters.
- presparams (PVOID): Presentation parameters.
- ctldatalength (ULONG): Length of window class-specific data.
- ctldata (PVOID): Window class-specific data.
- status (ULONG): Window parameter selection.
- ulReserved (ULONG)
- Reserved value, should be 0.
in Slider Controls
- pwndparams (PWNDPARAMS) - input
- Pointer to a WNDPARAMS window parameter structure.
- This structure contains:
- status (USHORT): Window parameter selection.
- Identifies the window parameters that are to be set or queried. The valid value for the slider control is:
- WPM_CTLDATA: Window control data.
- The flags in the status field are cleared as each item is processed.
- If the call is successful, the status field is 0. If any item has not been processed, the flag for that item is still set.
- Identifies the window parameters that are to be set or queried. The valid value for the slider control is:
- length (USHORT): Length of the window text.
- text (PSZ): Window text.
- presparamslength (USHORT): Length of presentation parameters.
- presparams (PVOID): Presentation parameters.
- ctldatalength (USHORT): Length of window class-specific data.
- ctldata (PVOID): Window class-specific data.
- status (USHORT): Window parameter selection.
- ulReserved (ULONG)
- Reserved value, should be 0.
in Value Set Controls
- wndparams (PWNDPARAMS)
- Pointer to a WNDPARAMS structure.
- For a value set, the valid value of the fsStatus field is WPM_CTLDATA.
- ulReserved (ULONG)
- Reserved value, should be 0.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Successful operation
- FALSE: Error occurred
Remarks
If this message is sent to a window of another process, the information in, or identified by, pwndparams must be in memory shared by both processes.
in Button Controls
The button control window procedure responds to this message by passing it to the default window procedure.
in Circular Slider Controls
If this message is sent to a slider window of another process, the information in, or identified by, the value of the pwndparams field must be in memory shared by both processes.
in Entry Fields
The entry field control window procedure responds to this message by setting the window parameters indicated by the fsStatus parameter of the WNDPARAMS data structure, identified by the pwndparams parameter.
in Frame Controls
The frame control window procedure sets the appropriate window parameters in accordance with pwndparams and sets rc to TRUE if the operation is successful, otherwise to FALSE.
The window text of a frame control is set by sending this message to its FID_TITLEBAR.
in List Boxes
The list box control window procedure responds to this message by passing it to the default window procedure.
in Menu Controls
The menu control window procedure responds to this message by passing it to the default window procedure.
in Multiline Entry Fields
The multi-line entry field control window procedure responds to this message by setting the window parameters indicated by the fsStatus parameter of the WNDPARAMS data structure, identified by the pwndparams parameter.
If the MLE text is to be set by this message, it is assumed to be in CF_TEXT format (see MLM_FORMAT) and all existing text is deleted before the new text is inserted. Note that a Control Data structure can be associated with the window parameters, in which case any field in that structure can cause a change to the MLE.
in Scroll Bars
The scroll bar control window procedure responds to this message by setting the window parameters indicated by the fsStatus parameter of the WNDPARAMS data structure identified by the pwndparams parameter.
in Slider Controls
If this message is sent to a slider window of another process, the information in, or identified by, the value of the pwndparams field must be in memory shared by both processes.
in Static Controls
The static control window procedure responds to this message by passing it to the default window procedure.
in Value Set Controls
If this message is sent to a value set window of another process, the information in, or identified by, the wndparams parameter must be in memory shared by both processes.
Default Processing
The default window procedure takes no action on this message, other than to set rc to FALSE.
in Button Controls
The default window procedure takes no action on this message, other than to set rc to FALSE.
in Entry Fields
The default window procedure takes no action on this message, other than to set rc to FALSE.
in List Boxes
The default window procedure takes no action on this message, other than to set result to FALSE.
in Menu Controls
The default window procedure takes no action on this message, other than to set rc to FALSE.
in Multiline Entry Fields
The default window procedure takes no action on this message, other than to set rc to FALSE.
in Title Bar Controls
The title bar control window procedure sets the appropriate window parameters in accordance with pwndparams and sets rc to TRUE if the operation is successful, otherwise to FALSE.
in Scroll Bars
The default window procedure takes no action on this message, other than to set rc to FALSE.
in Static Controls
The default window procedure takes no action on this message, other than to set rc to FALSE.
Related Messages
- WM_SETWINDOWPARAMS (in Button Controls)
- WM_SETWINDOWPARAMS (in Entry Fields)
- WM_SETWINDOWPARAMS (in Frame Controls)
- WM_SETWINDOWPARAMS (in List Boxes)
- WM_SETWINDOWPARAMS (in Menu Controls)
- WM_SETWINDOWPARAMS (in Multiline Entry Fields)
- WM_SETWINDOWPARAMS (in Scroll Bars)
- WM_SETWINDOWPARAMS (in Static Controls)
- WM_SETWINDOWPARAMS (in Title Bar Controls)