The SetProp function adds a new entry or changes an existing entry in the property list of the specified window. The function adds a new entry to the list if the specified character string does not exist already in the list. The new entry contains the string and the handle. Otherwise, the function replaces the string’s current handle with the specified handle.
BOOL SetProp(
HWND hWnd, |
// handle of window |
LPCTSTR lpString, |
// atom or address of string |
HANDLE hData |
// handle of data |
); |
If the data handle and string are added to the property list, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Before destroying a window (that is, before processing the WM_DESTROY message), an application must remove all entries it has added to the property list. The application must use the RemoveProp function to remove the entries.
EnumProps, EnumPropsEx, GetProp, GlobalAddAtom, RemoveProp
file: /Techref/os/win/api/win32/func/src/f81_4.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/14 17:44,
18.118.121.114:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/os/win/api/win32/func/src/f81_4.htm"> SetProp</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.