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

    Setting active CEdit on entering a Property page



    When the user returns to a particular property page, I need to to have focus on the same CEdit that had control when the page was exited. It is easy to get the active Ctrl at OnKillActive() time. But using GotoDlgCtrl() at OnSetActive() time does not appear to work. The first CEdit always has focus.

  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: Setting active CEdit on entering a Property page



    I haven't used OnSetActive() in a while but, does it call a method from the inherited CDialog (i.e. CDialog::OneSetActive())?


    If so, make sure your code follows this call otherwise it will reset the according to the tab settings.


    Just a guess...

  3. #3
    Join Date
    Apr 1999
    Posts
    3

    Re: Setting active CEdit on entering a Property page



    As you suspected, OnSetActive() calls CPropertyPage::OnSetActive().

    My GotoDlgCtrl() follows this, so that is not the solution.


    My guess is that a later action (DDE?) is doing me in.

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