Click to See Complete Forum and Search --> : What is owner drawn control?


Shahzad
May 13th, 1999, 08:09 PM
Can somebody explain me what is an owner drawn control? Is not this a common control?
thankx for any help
Shahzad

Bob Clarke
May 13th, 1999, 08:41 PM
An owner-draw control is one that you, the programmer and owner of the application, are responsible for drawing. For example, if you create a pushbutton, Windows will draw it for you. If you create a pushbutton and one of the styles is owner draw, you are responsible for writing the code that draws the button -- borders, text, background, everything. Windows will tell you when it needs to be drawn.

Shahzad
May 13th, 1999, 10:05 PM
thankx for the help, that was exactly what i need to know.