home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3876 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1022 b   |  28 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!caen!uwm.edu!src.honeywell.com!mail-enters-news
  3. From: bergstro@src.honeywell.com (Pete Bergstrom)
  4. Subject: how to give program the focus?
  5. To: comp.os.os2.programmer
  6. Message-ID: <9207292038.AA20166@data.src.honeywell.com>
  7. Posted-Date: Wed, 29 Jul 92 15: 38:20 CDT
  8. Sender: daemon@src.honeywell.com
  9. Organization: Honeywell Systems & Research Center
  10. Date: Wed, 29 Jul 1992 20:38:20 GMT
  11. Received-Date: Wed, 29 Jul 92 15: 38:22 CDT
  12. Lines: 14
  13.  
  14.  
  15. This may be a relatively easy answer, but I want to capture mouse button
  16. clicks on my window.  I've done this by processing WM_BUTTON1DOWN and
  17. I do get the coordinates I want.
  18.  
  19. But, when I do this, the title bar for my window loses the focus
  20. (grays out).  When this happens, I can't use ALT-F, etc key
  21. combinations to navigate the menus until I explicitly click on the
  22. title bar (or menu bar) again.
  23.  
  24. So, how do I make sure that the window retains the focus?
  25.  
  26. Any help appreciated - email or news postings (may help others).
  27. Pete
  28.