RE: [GD-Windows] WM_KILLFOCUS
Brought to you by:
vexxed72
From: Daniel V. <vo...@ep...> - 2001-12-11 01:50:42
|
I was manually checking whether wParam was an owned window before restoring the gamma. Looks like I could simply use GetFocus. Thanks for the link :) -- Daniel, Epic Games Inc. > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Brian Sharon > Sent: Monday, December 10, 2001 8:30 PM > To: Daniel Vogel; Gamedevlists-Windows@Lists. Sourceforge. Net > Subject: RE: [GD-Windows] WM_KILLFOCUS > > > See http://msdn.microsoft.com/library/en-us/winui/keybinpt_5z8u.asp > > Keyboard focus is a property that's passed between the windows in the > foreground thread. And if something in your app calls SetFocus(NULL) > then the HWND would be NULL and your app would be ignoring keyboard > messages. I'm not sure what you would want to retrieve in that case? > > --brian > > -----Original Message----- > From: Daniel Vogel [mailto:vo...@ep...] > Sent: Monday, December 10, 2001 5:18 PM > To: Gamedevlists-Windows@Lists. Sourceforge. Net > Subject: [GD-Windows] WM_KILLFOCUS > > >From the MSDN docs: > > "wParam > Handle to the window that receives the keyboard focus. This parameter > can be > NULL." > > In which cases is it NULL and is there a chance to retrieve the HWND > anyways? > > -- Daniel, Epic Games Inc. > > > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > |