Article View: comp.windows.ms.programmer
Article #891User -defined dialog controls - problem
From: Stewart Kelland
Date: Tue, 11 Dec 1990 17:18
Date: Tue, 11 Dec 1990 17:18
27 lines
1932 bytes
1932 bytes
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
Technical Details
Message-ID:
<2040@ncrwat.Waterloo.NCR.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrwat!images1!stewartReferences:
<DSAMPSON.90Nov21131258@x102a.harris-atd.com> <5435@wood> <59517@microsoft.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrwat!images1!stewart From: stewart@images1.Waterloo.NCR.COM (Stewart Kelland) Newsgroups: comp.windows.ms.programmer Subject: User -defined dialog controls - problem Message-ID: <2040@ncrwat.Waterloo.NCR.COM> Date: 11 Dec 90 17:18:09 GMT References: <DSAMPSON.90Nov21131258@x102a.harris-atd.com> <5435@wood> <59517@microsoft.UUCP> Sender: news@ncrwat.Waterloo.NCR.COM Reply-To: stewart@images1.Waterloo.NCR.COM (Stewart Kelland) Distribution: na Organization: NCR Canada Ltd, Waterloo, Ontario, Canada. Lines: 27