描述
The HyphenateProc function is an application–defined callback function used with the EM_SETHYPHENATEINFO message. It determines how hyphenation is done in a Microsoft Rich Edit control.
HyphenateProc is a placeholder for the application–defined function name.
C/C++ 语法
void HyphenateProc( WCHAR *pszWord, LANGID langid, LONG ichExceed, HYPHRESULT *phyphresult ); |
FreeBasic Declaration
SUB HyphenateProc( BYVAL pszWord AS WstriNG PTR, _ BYVAL langid AS LANGID, _ BYVAL ichExceed AS LONG, _ BYVAL phyphresult AS HYPHRESULT PTR _ ) |
参数
pszword |
[in] Pointer to the word to hyphenate. |
langid |
[in] Current language ID for the control. |
ichExceed |
[in] Index of the character in the passed string that exceeds the line width. |
phyphresult |
[out] Pointer to a HYPHRESULT structure that HyphenateProc fills in with the result of the hyphenation. |
Return Value
There is no return value.
备注
An application must install the callback function by specifying the address of the callback function in an EM_SETHYPHENATEINFO message.
最低操作系统
Windows XP SP1.