The RemoveProp function removes an entry from the property list of the specified window. The specified character string identifies the entry to be removed.
HANDLE RemoveProp(
HWND hWnd, // handle to window
LPCTSTR lpString // atom or address of string
);
The return value identifies the specified string. If the string cannot be found in the specified property list, the return value is NULL.
An application must free the data handles associated with entries removed from a property list. The application can remove only those properties it has added. It must not remove properties added by other applications or by the system itself.
The RemoveProp function returns the data handle associated with the string so that the application can free the data associated with the handle.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Window Properties Overview, Window Property Functions, AddAtom, EnumProps, EnumPropsEx, GetProp, SetProp