Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CPropertyPage::OnKillFocus

39 views
Skip to first unread message

Frank

unread,
Jan 24, 2013, 11:03:27 AM1/24/13
to
Dear people,

I have a property sheet with two pages.
On the second page is a control which I cannot
handle with DoDataExchange, but I have to check
its content for consistency when leaving the PS.
So I tried OnKillFocus on the second page
which is called when I switch to the first page -
so I can do a check - but it's not if I select
"OK" directly while the second sheet is active.

How can I be notified that the user clicked "OK"?
The PS must remain active if the data is not ok.

David Lowndes

unread,
Jan 24, 2013, 11:44:17 AM1/24/13
to
>On the second page is a control which I cannot
>handle with DoDataExchange, but I have to check
>its content for consistency when leaving the PS.

Do you know that you can just write your own code in the
DoDataExchange method?
Any validation doesn't have to be done using just the predefined
macros.

Dave

Frank

unread,
Jan 24, 2013, 11:59:49 AM1/24/13
to
David Lowndes wrote:

> >On the second page is a control which I cannot
> >handle with DoDataExchange, but I have to check
> >its content for consistency when leaving the PS.
>
> Do you know that you can just write your own code in the
> DoDataExchange method?

Yes I know, but DoDataExchange is not called when pushing
OK in the property sheet and I can only use it
to update the member variables.
If I push a check box, DoDataExchange is called with
the proper macro. But the control is a Stingray grid.
0 new messages