CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Controls subclassing



    You can use a new class that is derived of a base-class.


    example :


    class CMyButton : public CButton

    {

    ...

    };



  2. #2
    Join Date
    Sep 1999
    Location
    Colorado Springs, Colorado
    Posts
    15

    Re: Controls subclassing

    Yes you can. Use the wizard to create a new class and within the wizared dialog box select the class you want to inherit form. When you create a member variable from the class Wizard there will be a pull down box for the type. You can select your class from there. Hope that helps.

    Gregg


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured