CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    42

    Subclassed CEdit - Create/OnCreate not called

    Hello,

    C_SpinEdit is a CEdit subclass for usage in a dialog. I've created the private member:
    C_SpinEdit C_TestDlg::m_seTest;


    In
    C_TestDlg::OnInitDialog()


    the control member is 'registered'.
    m_seValue.SubclassDlgItem(IDC_SPINEDIT, this);


    Somehow I can't hook up on the ::Create() virtual nor the OnCreate message handler.

    How should the subclassed edit control know when to perform initialization???

    Martin van den Berg
    High Tech Automation
    The Netherlands
    [email protected]

  2. #2
    Join Date
    May 1999
    Posts
    48

    Re: Subclassed CEdit - Create/OnCreate not called

    Override PreSubclassWindow, instead overiding the OnCreate function.
    Sincerely, Mihai



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