Well, there is a component gallery you can add things to, and if
you're calling SubclassDlgItem you're not using MFC optimally. I've
not called SubclassDlgItem except in a couple really weird cases.
joe
Quote:
>I have done a lot of this lately.. And what I miss in MFC is what Delphi
>does naturally.. If you derive a class based on a listbox or anything else,
>you can publish it on the component pallete and then use that component in
>ANY project later on just like dropping the component from your pallette on
>a dlg in Visual studio. I wish the visual studio designers would somehow
>work this into play so that when I am forced to write in VC++ I don't spend
>a bunch of time figuring out where to put the SubClassDlgItem() and how to
>get that to work.. If you have already added the functionality, why should
>you not automatically be able to use that component in all of you future
>products..
>Paul
>> To all,
>> Thanks for the insight. It now works as I wanted it to.
>> The time I burned looking through the documentation, I could have spent
>> shootin' the breeze, Dilbert style.
>> I appreciate the time from all.
>> Scott
>> > Hi,
>> > I want to add a Windows control, say CEdit, to my dialog form. That's
>the
>> > easy part. I want that CEdit control on the dialog form to reference my
>> > subclassed CEdit, MyCEdit. How do you make the connection that the
>> control
>> > that you placed on the form references your subclassed control?
>> > Thanks,
>> > Scott
Joseph M. Newcomer [MVP]
Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm