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.

ButtoncontrolmessagesButton-control messages are sent by an application to a button control.The following list briefly describes each button-control message:MessageBM_ GETCHECKBM_GETSTATEBM_SETCHECKBM_SETSTATEBM_SETSTYLEDM_GETDEFIDDM_SETDEFIDDescriptionDetermines whether a radio button or check box ischecked.Returns nonzero if the cursor is over the button and theuser presses the mouse button or the SPACEBAR.Checks or removes the checkmark from a radio button orcheck box.Highlights a button or check box.Alters the style of a button.Retrieves the ID of the default pushbutton control for adialog box.Changes the default push-button control ID for a dialogbox.Edit-controlmessages Edit-control messages are sent by an application to an edit control. Inaddition to the messages described below, the WM_ENABLE,WM_GETTEXT, WM_GETTEXTLENGTH, WM_KILLFOCUS,WM_SETFOCUS, WM_SETREDRA W, and WM_SETTEXT windowmessages can be used. The following list briefly describes each editcontrolmessage:MessageEM_CANUNDOEM_EMPTYUNDOBUFFEREM_FMTLINESEM_GETHANDLEEM_GETLINEEM_GETLINECOUNTEM_GETMODIFYEM_GETRECTEM_GETSELDescriptionDetermines whether or not an edit control canrespond correctly to an EM_UNDO message.Disables an edit control's ability to undo the lastedit.Directs the edit control to add or remove the endof-linecharacter from word wrapped text lines.Returns the data handle of the buffer used to holdthe contents of the control window.Copies a line from the edit control.Returns the number of lines of text in the editcontrol.Returns the current value of the modify flag for agiven edit control. The flag is set by the control ifthe user enters or modifies text within the control.Returns the formatting rectangle of the editcontrol.Returns the starting and ending character positionsof the current selection.Chapter 5, Messages overview593

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

Saved successfully!

Ooh no, something went wrong!