Re: Fw: Windows IIP problem.
Michael Schierl <[email protected]> Sun, 14 Sep 2003 21:04:56 +0200
| Newsgroups | gmane.comp.security.invisiblenet.iip.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 12 Sep 2003 14:21:36 -0700, Tony wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Lance, > Yes point me to the code, if someone can get to it before me the > easiest way to solve this problem is to make that text box full > screen and modal OR subclass the desktop window so that you get the > WM_MOUSEMOVE messages that arive on the desktop window. (The second > option is not quite as deterministic because of all the other windows > that may be on the desktop will get the mouse move message and you > will have to subclass them all...) I don't know if it will work (it > has been a while) but I THINK that if that text box is system modal > it will get all of the mouse move messages, but that can be annoying > to the user because they wont even be able to activate any other > window until the system modal window goes away. You could as well use SetCapture to get all mouse events exclusively. However, you should set a custom mouse pointer (maybe that NoDrop or a crosshair cursor?) so that the user sees he cannot do anything with the mouse - and don't forget to release the capture (SetCapture(0)) afterwards... (Releasing the capture if you receive a MOUSE_UP event could be a good idea, too - maybe the user does not want to do the entropy generation now?). (usually, Windows uses that SetCapture thingy internally for Drag'n'Drop operations...) Mixmaster uses a nice "scribble" window for entropy collection - it says "Write your name in here with your mouse" - usually enough entropy is collected before you finished your name. But that might be overkill. Michael _______________________________________________ iip-dev mailing list [email protected] http://lists.invisiblenet.net/mailman/listinfo/iip-dev