win12.hlp (Table of Contents; Topic list)
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.
WinSetWindowUShort (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINWINDOWMGR
 
BOOL WinSetWindowUShort(hwnd, index, us)
HWND hwnd;      /* handle of the window              */
SHORT index;    /* index into reserved memory        */
USHORT us;      /* value to place in reserved memory */
 
The WinSetWindowUShort function places an unsigned short integer into the
reserved memory of a window.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwnd       Identifies the window whose reserved memory is to be changed.
 
index      Specifies the zero-based index of the USHORT value to set. Valid
           values are in the range zero through the number of bytes of
           window data (for example, a value of 8 would be an index to the
           fifth short integer), or any of the following QWS values:
 
           Value     Meaning
           ─────────────────────────────────────────────────────────────────
           QWS_ID    Index of the window identifier (as passed by the
                     WinCreateWindow function).
 
           QWS_USER  Index of an unsigned short value present in windows of
                     the following preregistered window classes:
 
                          WC_BUTTON
                          WC_DIALOG
                          WC_ENTRYFIELD
                          WC_FRAME
                          WC_LISTBOX
                          WC_MENU
                          WC_SCROLLBAR
                          WC_STATIC
 
           This value can be used to set application-specific data in
           controls.
 
us         Specifies the unsigned short integer to place in the window's
           reserved memory.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinCreateWindow, WinQueryWindowUShort, WinRegisterClass, WinSetWindowULong