> > Thanks for explaining that, I can't tell you how many times I tried to > find controls inside the "childtoolbar". :D > > From what I read about owner drawn buttons, you can just basically get > the rectangle of the button and do whatever gdi can do with a > rectangle (fill it, etc.). Each such button would have a handle, etc., > which I imagine adds overhead compared to your own approach.
Yes, each control is a child window on the system, which has overhead. Not that big a deal in XP, but a killer in 3.1. Moreover, I would also have to replace all the mouse processing in the control, to respond to left/middle/right clicks, to handle mouse over (where PowerPro has to note that active window in case the button is clicked so that the active window pre-powerpro can be the target for sent keys, for hover clicks, for tool tips etc.) So I would have to do all the mouse processing and all the drawing. Not much left for the control, hence no point to using it, even if resources not an issue.
