[SetupXP] The two styles for handling activation refusal

Robert Collins rbcollins@cygwin.com
Sun Jul 20 22:17:00 GMT 2003


On Mon, 2003-07-21 at 04:17, Gary R. Van Sickle wrote:

> > Unless there will ever be a need to ask a page whether
> > it would take activation in the future, but not activate it immediately,
> > even if it is possible to do so, I think the 2 calls should be merged. Will
> > there ever be such a case?
> 
> I cannot think of one.  It exists soley to give OnActivate a "default return
> code".  It *can't* be called anywhere else, since in the general case,
> OnAcceptActivation won't know if it needs to refuse activation until after
> OnAccept is called.

Hmm. My intention when I suggested a query method was for it to be
called *instead* of OnActivate, and OnActivate only called if it
returned true.

Will doing that break anything?

For clarity:
if (OnAcceptActivate())
  OnActivate()

Rob
-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20030720/88c33d02/attachment.sig>


More information about the Cygwin-apps mailing list