Re: Re: OnApply processing in CPropertySheetImpl
Rob Marsden <rob-uNoPq/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
Many thanks Anthony,
_WTL_NEW_PAGE_NOTIFY_HANDLERS was indeed the problem. I was
carefully returning PSNRET_NOERROR or PSNRET_INVALID as appropriate
but had complete overlooked _WTL_NEW_PAGE_NOTIFY_HANDLERS. I suppose
that's what comes of showing comments in dark green on a black
background :-) I can now stop think about a work-around. Now that's
working, I can pass the app. over to QA (and hopefully be on holiday by
the time the feedback appears :-).
Once again, many thanks.
> PSN_APPLY is sent to each page in turn until a page returns an error
> code. If a page returns "no error" then the notification is sent to the
> next page until all pages have been notified. If a page returns
> "invalid" then the notifications are stopped.
>
> http://msdn.microsoft.com/en-us/library/bb774552.aspx
>
> I've never had a problem with property sheets. Are you setting the
> return code correctly? In particular, are you defining
> _WTL_NEW_PAGE_NOTIFY_HANDLERS? If so, then you need to be returning
> PSNRET_NOERROR from your OnApply function; if are are not defining that
> macro then you need to return true from your OnApply function.
>
> Anthony
--
Rob Marsden
Gistix (Northern) Limited
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/