Buffer does not give me right character ( win32 - Owner Drawn ListBox )

  • Thread starter Thread starter Grailly Ali
  • Start date Start date
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...
 
Back
Top