Re: Owner drawn listbox not reaching MeasureItem
Joseph,
Where was I talking down to anyone?
In the majority of your posts.
Note that it observes the case of being created in the dialog editor as a
special case. I
was citing the general case, so the fact that it is created in the dialog
editor is not
relevant to the assertion that it will not work if the style is
owner-draw-fixed; what
matters is that it is created before the subclassing.
You did more than "cite' the general case. You told me simply that I was
wrong. I've acknowledged elsewhere in this thread that I wasn't very precise
in that I should've pointed out my comments were specific to the case of
fixed-owner-draw controls. But, while I'd have no problem if you added
clarifications I had omitted, but I still do not see where I was factually
wrong in the post you responded to.
You may feel it should be described differently, and maybe you're right. But
even the Microsoft article goes on to state "OnMeasureItem will be called
only if the control's class is created at run time [...]. If the control is
created by the dialog editor, OnMeasureItem will not be called." So it does
have something to do with the dialog box as long as you are following
regular MFC conventions, which I have every reason to think the OP was.
So where was I so wrong?
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com