[comp.windows.ms.programmer] User -defined dialog controls - problem

stewart@images1.Waterloo.NCR.COM (Stewart Kelland) (12/12/90)

I am building a user-defined control following the scanty info in Chapter 20
of the SDK Programming Guide and using the "Rainbow" sample.  It works
fine except that I cannot get the rendition of my control as drawn by
the dialog box editor to update its style when I change it from the
style dialog box. I am careful to return TRUE from ClassStyle when there
has been a change to the style.  The control's text seems to be updated
fine, but the style does not change. (BTW it looks like the Dialog Box Editor
actually destroys the control and recreates it when its attributes have
been changed - OK pushed in the style dialog box.)  The Dialog Box editor
has recorded the changed style correctly because when  I save the file
I get a .dlg file with the correct style for the control.  I expect the
answer is simple but the SDK doesn't give much avice in this area.  Perhaps 
I need to add "variants" to the CTLINFO structure but it is not clear how
this works...

Any advice?

Thanks,

 Stew

==============================================================================
Stewart B. Kelland                            stewart.kelland@waterloo.ncr.com
NCR Canada, E&M Waterloo                                 (519) 884-1710 (x316)
580 Weber St. N.                                            fax (519) 884-0610	
Waterloo Ontario
Canada   N2J 4G5