home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!rutgers!cmcl2!panix!os2man
- From: os2man@panix.com (Larry Salomon Jr.)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: how to give program the focus?
- Message-ID: <1992Jul30.033314.19711@panix.com>
- Date: 30 Jul 92 03:33:14 GMT
- References: <9207292038.AA20166@data.src.honeywell.com>
- Organization: PANIX Public Access Unix, NYC
- Lines: 20
-
- In <9207292038.AA20166@data.src.honeywell.com> bergstro@src.honeywell.com (Pete Bergstrom) writes:
-
-
- >This may be a relatively easy answer, but I want to capture mouse button
- >clicks on my window. I've done this by processing WM_BUTTON1DOWN and
- >I do get the coordinates I want.
-
- >But, when I do this, the title bar for my window loses the focus
- >(grays out). When this happens, I can't use ALT-F, etc key
- >combinations to navigate the menus until I explicitly click on the
- >title bar (or menu bar) again.
-
- >So, how do I make sure that the window retains the focus?
-
- Are you returning MRFROMSHORT(TRUE) from WM_BUTTON1DOWN?
- --
- Cheers,
- Q
- -----------------------------------------------------------------------
- "If you still choose not to decide, | "My other account is in the
-