Can "owner-draw" edit controls be made without making my own custom edit class?
I thought of returning a brush created with CreatePatternBrush() in WM_CTLCOLOREDIT, but I haven't tried it yet.
Can "owner-draw" edit controls be made without making my own custom edit class?
I thought of returning a brush created with CreatePatternBrush() in WM_CTLCOLOREDIT, but I haven't tried it yet.
Last edited by maxorator; 01-02-2007 at 02:59 PM.
"The Internet treats censorship as damage and routes around it." - John Gilmore
Basically it worked but I don't know how to create a padding between my own border (which is in that bitmap) and the text that I can write into it...
"The Internet treats censorship as damage and routes around it." - John Gilmore
Try setting the formatting rectangle with EM_SETRECT.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
It only works with multiline edit controls...
Last edited by maxorator; 01-03-2007 at 05:09 AM.
"The Internet treats censorship as damage and routes around it." - John Gilmore