🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #564

how to give program the focus?

#564
From: Pete Bergstrom
Date: Wed, 29 Jul 1992 20:38
14 lines
1049 bytes
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?

Any help appreciated - email or news postings (may help others).
Pete
Technical Details
Message-ID: <9207292038.AA20166@data.src.honeywell.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!src.honeywell.com!mail-enters-news

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!src.honeywell.com!mail-enters-news
From: bergstro@src.honeywell.com (Pete Bergstrom)
Subject: how to give program the focus?
To: comp.os.os2.programmer
Message-ID: <9207292038.AA20166@data.src.honeywell.com>
Posted-Date: Wed, 29 Jul 92 15: 38:20 CDT
Sender: daemon@src.honeywell.com
Organization: Honeywell Systems & Research Center
Date: Wed, 29 Jul 1992 20:38:20 GMT
Received-Date: Wed, 29 Jul 92 15: 38:22 CDT
Lines: 14