CBrush::FromHandle
staticCBrush*PASCALFromHandle(HBRUSHhBrush**);**
Return Value
A pointer to a CBrush object if successful; otherwise NULL.
Parameters
hBrush
HANDLE to a Windows GDI brush.
Remarks
Returns a pointer to a CBrush object when given a handle to a Windows HBRUSH object. If a CBrush object is not already attached to the handle, a temporary CBrush object is created and attached. This temporary CBrush object is valid only until the next time the application has idle time in its event loop. At this time, all temporary graphic objects are deleted. In other words, the temporary object is valid only during the processing of one window message.
For more information about using graphic objects, see in the Win32 SDK Programmer’s Reference.
Example
See the example for CBrush::CBrush.