overridden, but to be fair I haven't tried doing it. It should be easy for
OP to give it a try in their derived class. I agree with you though, if it
bet.
".rhavin grobert" <clqrq@yahoo.de> wrote in message
news:1191266548.093000.160770@y42g2000hsy.googlegroups.com...
On Oct 1, 8:20 pm, "Mark Salsbery [MVP]"
<MarkSalsbery[MVP]@newsgroup.nospam> wrote:
It looks like you're removing the LBS_OWNERDRAWVARIABLE style and
adding the LBS_OWNERDRAWFIXED style.
er... yes, that's what i meant ;-)
Also, the last param to ModifyStyle() is NOT a bool.
I know, but for testing purposes 'twas enough. WS_VISIBLE, if you
prefer. It only has to be something != 0.
Why not 0? You should only use non-0 if you want to specify flags.
I don't believe PreCreateWindow() will be called for a subclassed
control created from a dialog resource.
In my CButton deriviation it gets called...
Then why did you state "the PreCreateWindow() is not called at
all;-\"??
You can try Tom's suggestion, but I don't know if you'll get an OnCreate()
for a dialog resource control either.
Some styles cannot be changed after a control is created....I'm not sure
if that applies here - it's not documented.
If it's a resource, why not set the style in the resource file?