Trond wrote:Kale wrote:I know what an owner-drawn control is
Well, you just said that "all controls (under the hood) are owner drawn", which is plain and simply wrong, which means that even if you knew what they were you weren't able to write it down.
All controls are not owner-drawn, as I explained above.
the point i was making is that ALL controls are drawn via drawing commands of the WinAPI (or whatever API is used). period!
Sure. That doesn't make them owner-drawn. Whether a control is owner-drawn does not depend on how it's drawn, it depends on where the code to draw it is placed.
You probably missed the italics. I know what an owner-drawn control is, the point i was making is that ALL controls are drawn via drawing commands of the WinAPI (or whatever API is used). period! The native commands are probably drawn automatically by the OS but they are still drawn in exactly the same manner as any owner-drawn control. You were distinguishing between native and owner-drawn, i was saying they are both the same under the hood.
Just because it's drawn in the samme manner as something doesn't make it that something. I can draw my breath in the same manner as a cat, but I'm still not a cat.
And, I still say: You are wrong. They aren't the same under the hood.
An owner-drawn control has a different flag set. This already is proof that they are different.
I know what an owner-drawn control is, the point i was making is that ALL controls are drawn via drawing commands of the WinAPI (or whatever API is used). period!
I don't want to spoil the fun, but the native controls are drawn using the theme API. This API can't be used to draw anything else than controls that looks exactly like native ones, so if you want your owner-drawn toolbar to look different from a normal one you must use the GDI API instead of the theme API. Which means that in practice, owner-drawn controls are drawn using a different API than native ones. Semi-colon!