Kiko
Kiko

Reputation: 359

Problems when displaying Chinese symbols shorter Win32 STATIC control

I'm trying to put several Chinese symbols in a static control which is not enough bigger to keep them all. The result is:

Chinese on 2 lines

As you can see some of the symbols are moved on the second line. This issue is not observed with Latin letters.

EDIT: Adding SS_SIMPLE style to the Chinese static, solves the problem, but I'm wondering why there is such a difference between Chinese and Latin text rendering?

Thanks, Kalin

Upvotes: 0

Views: 153

Answers (1)

i486
i486

Reputation: 6563

Add SS_LEFTNOWORDWRAP style to remove second line. Another solution is to change CY (height) of static control. It must be 8 logical points.

Upvotes: 1

Related Questions