[SetupXP] The two styles for handling activation refusal
Robert Collins
rbcollins@cygwin.com
Mon Jul 21 09:23:00 GMT 2003
On Mon, 2003-07-21 at 15:25, Gary R. Van Sickle wrote:
> Well, my current code appears to work if changed to do that. But then
> OnAcceptActivate() is equivalent to my original return value changes (i.e. just
> leave OnActivate() empty and OnAcceptActivate() is your message handler).
Maybe I'm not being clear.
OnAcceptActivate should be -exactly- one line.
bool AntiVirusPage::OnAcceptActivate() {
return KnownAVspresent;
}
OnAcceptActivate is not intended to be, and never will be a message handler.
> I'm not sure that this whole thing doesn't set an ugly precedent. Do we do this
> for *every* message coming down the pipe?
>
> if(OnAreYouGoingToDoAnythingInDraw())
> {
> OnDraw();
> }
No, as there is a fundamental difference between the two:
deciding to be 'unavilable' for activation changes the user interface
- the driver needs to move onto the next dialog.
skipping drawing does not.
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/20030721/413fab66/attachment.sig>
More information about the Cygwin-apps
mailing list