🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #24

EnableWindow(hWnd,FALSE) when window has focus

#24
From: Mike McLagan
Date: Wed, 22 Jul 1992 01:54
16 lines
1098 bytes
Hi,

   Got a curious one for everyone, and hopefully some sort of quick response.
I've seen this happen in Win 3.1 and it's rather strange.  We have a program
that does EnableWindow(false) and then about 15 lines later does a GetFocus
and ends up with a 0?!  Has the window that was enabled eaten the focus up
somehow?  The docs for win 3.1 sdk don't mention this little glitch!  Has
anyone else encountered this?

   Mike was here...

// email   -> "Mike McLagan" <mmclagan@invlogic.com>
// UUCP    ->  ...uunet!invlogic!mmclagan
// snail   -> Innovative Logic Corp, P.O. Box 3247 Laurel, MD, USA 20709-3247
// ma bell -> (301)206-7692
// ILC doesn't like my opinions, so I'm giving them to you without consent!
Technical Details
Message-ID: <711770052snx@invlogic.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!invlogic!mmclagan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!invlogic!mmclagan
From: mmclagan@invlogic.com (Mike McLagan)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: EnableWindow(hWnd,FALSE) when window has focus
Distribution: world
Message-ID: <711770052snx@invlogic.com>
Date: Wed, 22 Jul 92 01:54:12 GMT
Organization: Innovative Logic Corporation
Lines: 16