Hi,Ketilo

in DBCS system, when i am not use the DBCS font, the RADEdit could not display the DBCS text.

the code in Misc.asm

;Check if DBCS
invoke GetTextMetrics,hDC,addr tm
movzx eax,byte ptr tm.tmCharSet
mov .EDIT.fntinfo.charset,eax
;SHIFTJIS_CHARSET equ 128
;HANGEUL_CHARSET equ 129
;GB2312_CHARSET equ 134
;CHINESEBIG5_CHARSET equ 136
mov .EDIT.fntinfo.fDBCS,0
.if eax==134 || eax==136 || eax==128 || eax==129
mov .EDIT.fntinfo.fDBCS,eax
.endif

need'nt do this,
only like this: mov .EDIT.fntinfo.fDBCS,DEFAULT_CHARSET
the system will display perfectly.

Posted on 2005-07-29 04:50:06 by 13800
Hi

By doing that you permanently turns on DBCS handling.
Not good for us that does not need it.
Maybe a function that can switch on and off DBCS handling manually
would be the solution?

KetilO
Posted on 2005-08-04 02:15:06 by KetilO