13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DeleteDCThis function deletes the specified device context. If the hDC parameter isthe last device context for a given device, the device is notified and allstorage and system resources used by the device are released.Parameters hDC HOC Identifies the device context.Return valueCommentsThe return value specifies whether the device context is deleted. It isnonzero if the device context is successfully deleted (regardless ofwhether the deleted device context is the last context for the device). If anerror occurs, the return value is zero.An application must not delete a device context whose handle wasobtained by calling the GetDC function. Instead, it must call theReleaseDC function to free the device context.DeleteMenu 3.0SyntaxBOOL DeleteMenu{hMenu, nPosition, wFlags)function DeleteMenu{Menu: HMenu; Position, Flags: Word): Bool;This function deletes an item from the menu identified by the hMenuparameter; if the menu item has an associated pop-up menu, OeleteMenudestroys the handle by the pop-up menu and frees the memory used bythe pop-up menu.Parameters hMenu HMENU Identifies the menu to be changed.Return valueCommentsnPositionwFlagsWORD Specifies the menu item which is to be deleted. IfwFlags is set to MF _BYPOSITION, nPosition specifies theposition of the menu item; the first item in the menu is atposition O. If wFlags is set to MF _BYCOMMAND, thennPosition specifies the command ID of the existing menuitem.WORD Specifies how the nPosition parameter isinterpreted. It may be set to either MF _BYCOMMAND(the default) or MF _BYPOSITION.The return value specifies the outcome of the function. It is TRUE if thefunction is successful. Otherwise, it is FALSE.Whenever a menu changes (whether or not the menu resides in a windowthat is displayed), the application should call OrawMenuBar.228 Software development kit

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

Saved successfully!

Ooh no, something went wrong!