home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!westwood.mech.ubc.ca!rohling
- From: rohling@westwood.mech.ubc.ca (Gerry Rohling)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Using SetCapture(hWnd)
- Keywords: Mouse SetCapture QuickC
- Message-ID: <1992Sep11.172209.27588@unixg.ubc.ca>
- Date: 11 Sep 92 17:22:09 GMT
- Sender: news@unixg.ubc.ca (Usenet News Maintenance)
- Organization: University of British Columbia, Vancouver, B.C., Canada
- Lines: 19
- Nntp-Posting-Host: westwood.mech.ubc.ca
-
- I hope this is not an FAQ but here is my problem:
-
- I am using QuickC 1.0 and am trying to gain control of all mouse input from a dialog
- box so that I can manipulate a cursor on another video display. From looking through
- the manual I believe what you do is the following
-
- SetCapture(hWndDlg);
- :
- :
- (process all window messages WN_MOUSEMOVE, WM_LBUTTONDOWN that I am
- interested in. When the user sends a WM_RBUTTONDOWN I use a
- ReleaseCapture();
- :
- :
- Mouse messages are back to normal.
-
- Is this in any way correct or am I missing something?
-
- Thanks in advance for the assistance.
-