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.

EM_SETTABSTOPSReturn valueCommentsis equal to 1/4 of the current dialog base width unit. The dialogbase units are computed based on the height and width of thecurrent system font. The GetDialogBaseUnits function returnsthe current dialog base units in pixels.) The tab stops must besorted in increasing order; back tabs are not allowed.The return value is TRUE if all the tabs were set. Otherwise, the returnvalue is FALSE.If wParam is zero and lParam is NULL, the default tab stops are set atevery 32 dialog units. If wParam is 1, the edit control will have tab stopsseparated by the distance specified by lParam. If lParam points to morethan a single value, then a tab stop will be set for each value in lParam, upto the number specified by wParam.IIIEM_SETWORDBREAKThis message is sent to the multiline edit control, informing the editcontrol that Windows has replaced the default word-break function withan application-supplied word-break function. A word-break functionscans a text buffer (which contains text to be sent to the display), lookingfor the first word that will not fit on the current display line. The wordbreakfunction places this word at the beginning of the next line on thedisplay. A word-break function defines at what point Windows shouldbreak a line of text for multiline edit controls, usually at a blank characterthat separates two words. The default word-break function breaks a lineof text at a blank character. The application-supplied function may definea word break to be a hyphen or character other than the blank character.Parameters wParam Is not used.CommentslParamIs a procedure-instance address.The callback-function address, passed as the lParam parameter, must becreated by using the MakeProclnstance function. The callback functionmust use the Pascal calling convention and must be declared FAR.CallbackFunction LPSTR FAR PASCAL WordBreakFunc(lpchEditText, ichCurrentWord,cchEditText)LPSTR lpchEditText;short ichCurrent Word;short cchEditText;Chapter 6, Messages directory 623

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

Saved successfully!

Ooh no, something went wrong!