Home > database >  Dizzy!!!! PB115 API build menus and toolbars only shows a Chinese character, English is normal.
Dizzy!!!! PB115 API build menus and toolbars only shows a Chinese character, English is normal.

Time:09-29

My menus and toolbars is through the API to build, in pb9 is normal, but after upgrading to pb115 gave an issue, if it is a Chinese character display only a word, letters have no this problem, what reason is this?

CodePudding user response:

Resolved:
Drawtext (aul_hdc, istr_tabs [n]. Displaytext, lenA (istr_tabs [n]. Displaytext), istr_tabs [n]. Textrect, DT_END_ELLIPSIS)

Is amended as:
Drawtext (aul_hdc, istr_tabs [n]. Displaytext, 1, istr_tabs [n]. Textrect, DT_END_ELLIPSIS)

CodePudding user response:

Ha ha, congratulations, it is good to solve the problem

CodePudding user response:

See see!!

CodePudding user response:

mark

CodePudding user response:

PB10 above version seems to have no lenA function, only the len

CodePudding user response:

Pick up points.. Ha ha.

CodePudding user response:

Is that PB11 USES is unicode, a Chinese character of a byte, all programs written in PB9 used functions like Len Left Right mid etc. Such as LenA LeftA RightA midA

CodePudding user response:

Top,,,,

CodePudding user response:

Problem solved, please as soon as possible and stick

CodePudding user response:

You this way is not good, I have a solution, direct in the API function followed by, "Ansi" fully resolved
  • Related