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.

InSendMessageParametersReturn valueCommentsThis function specifies whether the current window function is processinga message that is passed to it through a call to the Send Message function.None.The return value specifies the outcome of the function. It is TRUE if thewindow function is processing a message sent to it with Send Message.Otherwise, it is FALSE.Applications use the InSendMessage function to determine how tohandle errors that occur when an inactive window processes messages.For example, if the active window uses Send Message to send a requestfor information to another window, the other window cannot becomeactive until it returns control from the SendMessage call. The onlymethod an inactive window has to inform the user of an error is to createa message box.InsertMenu 3.0SyntaxParametersBOOL InsertMenu(hMenu, nPosition, wFlags, wIDNewItem,lpNewItem)function InsertMenu(Menu:HMenu; Position, Flags, IDNewItem: Word;NewItem: PChar): Bool;This function inserts a new menu item at the position specified by thenPosition parameter, moving other items down the menu. The applicationcan specify the state of the menu item by setting values in the wFlagsparameter.hMenunPositionwFlagsHMENU Identifies the menu to be changed.WORD Specifies the menu item before which the new menuitem is to be inserted. The interpretation of the nPositionparameter depends upon the setting of the wFlags parameter.If wFlags is:MF _BYPOSITIONnPosition:Specifies the position of the existingmenu item. The first item in themenu is at position zero.If nPosition is -1, the new menu itemis appended to the end of the menu.Specifies the command ID of theexisting menu item.WORD Specifies how the nPosition parameter is interpretedand information about the state of the new menu item when388Software development kit

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

Saved successfully!

Ooh no, something went wrong!