"Ownerdraw" in an editbox
-
Hello. Does anyone have experience in inserting an image as background in an editbox? I've tried, but the final solution took up a lot of cpu. I just want the editbox to look like those in Msn messenger. If it isn't possible to do ownerdraw with an editcontrol, which control must I then use? -Anders.
-
Hello. Does anyone have experience in inserting an image as background in an editbox? I've tried, but the final solution took up a lot of cpu. I just want the editbox to look like those in Msn messenger. If it isn't possible to do ownerdraw with an editcontrol, which control must I then use? -Anders.
One method would be to owner draw the editbox and handle WM_ERASEBKGND by painting the image. Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
One method would be to owner draw the editbox and handle WM_ERASEBKGND by painting the image. Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
Thanks for the reply! I've tried handling WM_ERASEBKGND, but when WM_VSCROLL is called, the background image moves down like 10 pixels and then jumps right back up. I don't want it to scroll down, so this is fine(that it jumps up), i just wonder how I can stop the scrolling from pulling it the first 10 pixels. To do this I used LockWindowUpdate(), but this took up an awfull lot of cpu :( Any suggestions as to how I can stop the scroll-messages from scrolling my background? Or am I using the wrong approach? -Anders.