Added wxTopLevelWindow::HasFocus() as discussed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-09-26 14:17:23 +00:00
parent 72fcdc7570
commit 35ff90a0b3
5 changed files with 26 additions and 1 deletions

View File

@@ -174,7 +174,10 @@ public:
// Attracts the users attention to this window if the application is
// inactive (should be called when a background event occurs)
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
// Is this the active frame (highlighted in the taskbar)?
virtual bool HasFocus()
{ return (wxGetTopLevelParent(FindFocus()) == this); }
// implementation only from now on
// -------------------------------