2,723
社区成员
发帖
与我相关
我的任务
分享
Clear
*!* left-to-right (LTR)
lLTR = .T.
cMessage = "" && utf8 text in any language with notepad saved as unicode
cMessage = "Chinese(S) : " + Strconv(Chr(19886%256) + Chr(Int(19886/256)), 10)
=UniMessageBox()
Function UniMessageBox
#Define MB_RTLREADING 0x00100000
#Define MB_RIGHT 0x00080000
* Right-to-left mark
* CHR(0x0f) + CHR(0x20) + CHR(0x0f) + CHR(0x20)
Declare Integer MessageBoxW In user32 As MessageBoxAPI;
INTEGER hWindow, String lpText,;
STRING lpCaption, Long uType
cMessage = ToUnicode( m.cMessage )
? cMessage Font "SimSun-ExtB", 16 && 乱码
cCaption = Chr(231) + Chr(241) && 西班牙语
cCaption = Strconv("Title Text : + " + cCaption + Chr(0), 5, 1034, 0)
nDlgType = Bitor(MB_RTLREADING, 64) && left-to-right (LTR)
If lLTR
= MessageBoxAPI(_Screen.HWnd, m.cMessage, m.cCaption, 16)
Else
= MessageBoxAPI(_Screen.HWnd, m.cMessage, m.cCaption, nDlgType)
Endif
Function ToUnicode(cStr As String) As String
Return Strconv(m.cStr + Chr(0), 12) && unEncoded STRING