home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3888 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

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