hiii
i want to create an editbox with icon on the start
i know how to do it with listbox.. but with edit doesnt have owner-drawn style like listbox has

any ideas how to ?


bye
thanks in advance

eko
Posted on 2004-10-26 22:18:20 by eko
hii
i figure out how to do it

on WM_SIZE and WM_SETFONT you need to fix the edit rect with EM_SETRECT (edit must have multiline)

then on draw the icon(drawiconex) WM_CTLCOLOREDIT

but my problem is that flicks alittle bit on sizing

any idea how to prevent it ?

bye

thanks
eko
Posted on 2004-10-29 10:39:22 by eko
hii i saw an example over the net

just create static window and put it before the (editable text that you set with EM_SETRECT)

then control WM_PAINT of the static window .

much better


bye
eko
Posted on 2004-10-29 13:18:51 by eko