|
-
April 1st, 1999, 11:55 AM
#1
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.
-
April 1st, 1999, 12:28 PM
#2
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...
-
April 1st, 1999, 12:48 PM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|