BOOL UnrealizeObject(hObject)
If the hObject parameter specifies a brush, this function directs GDI to reset the origin of the given brush the next time it is selected.
If hObject specifies a logical palette, this function directs GDI to realize the palette as though it had not previously been realized. The next time the application calls the RealizePalette function for the specified palette, GDI completely remaps the logical palette to the system palette.
Parameter | Type/Description |
hObject | HANDLE Identifies the object to be reset. |
The return value specifies the outcome of the function. It is nonzero if the function is successful. Otherwise, it is zero.
The UnrealizeObject function should not be used with stock objects.
This function must be called whenever a new brush origin is set (by means of the SetBrushOrigin function).
A brush specified by the hObject parameter must not be the currently selected brush of any display context.
A palette specified by hObject can be the currently selected palette of a display context.