G
Grailly Ali
Guest
Hi , Developers
listBox created in window class #32770 as OWNERDRAW when i want to retrieve itemdata , give me some strange character example i use addstring and character : "D"
Case WM_DRAWITEM
pdis as DRAWITEMSTRUCT
Select Case pdis.itemaction
case oda_select
txtcount=SendMessageA(pdis.hwnditem,LB_GETTEXTLEN,0,0)
buffer$=space$(txtcount+10)
SendMessageA pdis.hwnditem,LB_GETTEXT,pdis.itemid,buff$
debug.print buff$
end select
if no use listbox ( Style : Drawitem ) it gives me right character in each item as i see in listbox but when use drawitem to draw my listbox charaters change ( no english language or original format added before ) and only one item of it showed me so where are the rest Added by LB_ADDSTRING?
i have also problem in EM_SETCUEBANNER , text ( " mUser ") shown in strange language like chinesse or korean , i do not know why unicode
Continue reading...
listBox created in window class #32770 as OWNERDRAW when i want to retrieve itemdata , give me some strange character example i use addstring and character : "D"
Case WM_DRAWITEM
pdis as DRAWITEMSTRUCT
Select Case pdis.itemaction
case oda_select
txtcount=SendMessageA(pdis.hwnditem,LB_GETTEXTLEN,0,0)
buffer$=space$(txtcount+10)
SendMessageA pdis.hwnditem,LB_GETTEXT,pdis.itemid,buff$
debug.print buff$
end select
if no use listbox ( Style : Drawitem ) it gives me right character in each item as i see in listbox but when use drawitem to draw my listbox charaters change ( no english language or original format added before ) and only one item of it showed me so where are the rest Added by LB_ADDSTRING?
i have also problem in EM_SETCUEBANNER , text ( " mUser ") shown in strange language like chinesse or korean , i do not know why unicode
Continue reading...