Jump to content

WM QUERYWINDOWPARAMS

From EDM2
Revision as of 03:40, 19 April 2025 by Martini (talk | contribs) (Created page with "This message occurs when an application queries the window parameters. ;in Button Controls Occurs when an application queries the button control window procedure window parameters. ;in Entry Fields This message occurs when an application queries the entry field control window parameters. ==Syntax== <pre> param1 PWNDPARAMS pwndparams; Window parameter structure.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ===in Circular Sl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message occurs when an application queries the window parameters.

in Button Controls

Occurs when an application queries the button control window procedure window parameters.

in Entry Fields

This message occurs when an application queries the entry field control window parameters.


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. */

Parameters

pwndparams (PWNDPARAMS) - input/output
This points to a WNDPARAMS structure. The valid values of fsStatus are WPM_CCHTEXT, WPM_TEXT, WPM_CBCTLDATA, and WPM_CTLDATA. The flags in fsStatus are cleared as each item is processed. If the call is successful, fsStatus is 0. If any item has not been processed, the flag for that item is still set.
ulReserved (ULONG) - input
Reserved value, should be 0.

in Circular Slider Controls

pwndparams (PWNDPARAMS) - input/output
Pointer to a WNDPARAMS window parameter structure. This structure contains:
status (ULONG) - Window parameter selection. Identifies the window parameters that are to be queried. Valid values for the slider control are
WPM_TEXT: Window text.
WPM_CCHTEXT: Window text length.
The flags in the status field are unchanged by this processing.
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.
ulReserved (ULONG) - Reserved value, should be 0.


Returns

rc (BOOL) - returns
Success indicator.
TRUE: Successful completion
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

The slider control window procedure responds to this message by returning the information in the buffer provided. 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 returning the window parameters indicated by the fsStatus parameter of the WNDPARAMS data structure identified by the pwndparams parameter.


Default Processing

The default window procedure sets the cchText, cbPresParams, and cbCtlData parameters of the WNDPARAMS data structure identified by the pwndparams to 0, and sets rc to FALSE.


Related Messages

  • WM_QUERYWINDOWPARAMS (in Button Controls)
  • WM_QUERYWINDOWPARAMS (in Entry Fields)
  • WM_QUERYWINDOWPARAMS (in Frame Controls)
  • WM_QUERYWINDOWPARAMS (in List Boxes)
  • WM_QUERYWINDOWPARAMS (in Menu Controls)
  • WM_QUERYWINDOWPARAMS (in Multiline Entry Fields)
  • WM_QUERYWINDOWPARAMS (in Scroll Bars)
  • WM_QUERYWINDOWPARAMS (in Static Controls)
  • WM_QUERYWINDOWPARAMS (in Title Bars)