13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UnlockSegmentParameters wSegment WORD Specifies the segment address of the segment to beunlocked. If wSegment is -1, the UnlockSegment functionunlocks the current data segment.Return valueThe return value specifies the outcome of the function. It is zero if thesegment's lock count was decreased to zero. Otherwise, the return value isnonzero. An application should not rely on the return value to determinethe number of times it must subsequently call UnlockSegment for thesegment.UnrealizeObjectSyntaxBOOL UnrealizeObject(hObject)function UnrealizeObject(hObject: HBrush): Bool;If the hObject parameter specifies a brush, this function directs GDI toreset the origin of the given brush the next time it is selected.If hObject specifies a logical palette, this function directs GDI to realize thepalette as though it had not previously been realized. The next time theapplication calls the RealizePalette function for the specified palette, GDIcompletely remaps the logical palette to the system palette.Parameters hObject HANDLE Identifies the object to be reset.Return valueCommentsThe return value specifies the outcome of the function. It is nonzero if thefunction 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 (bymeans of the SetBrushOrigin function).A brush specified by the hObject parameter must not be the currentlyselected brush of any display context. A palette specified by hObject can bethe currently selected palette of a display context.UnregisterClass 3.0SyntaxBOOL UnregisterClass(lpClassName, hInstance)function UnregisterClass(ClassName: PChar; Instance: THandle): Bool;This function removes the window class specified by IpClassName fromthe window-class table, freeing the storage required for the class.Chapter 4, Functions directory 567

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!