CtrlCore: SetFocus0 active fix...

git-svn-id: svn://ultimatepp.org/upp/trunk@3389 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-05-01 17:43:08 +00:00
parent dfc907b3b1
commit 28150bf977

View file

@ -203,7 +203,8 @@ bool Ctrl::SetFocus0(bool activate)
if(!topwindow) topwindow = topctrl;
LLOG("SetFocus -> SetWndFocus: topwindow = " << UPP::Name(topwindow) << ", focusCtrlWnd = " << UPP::Name(focusCtrlWnd));
if(!topwindow->HasWndFocus() && !topwindow->SetWndFocus()) return false;// cxl 31.1.2004
topwindow->SetWndForeground(); // cxl 2007-4-27
if(activate) // Dolik/fudadmin 2011-5-1
topctrl->SetWndForeground(); // cxl 2007-4-27
LLOG("SetFocus -> focusCtrl = this: " << FormatIntHex(this) << ", _this = " << FormatIntHex(~_this) << ", " << UPP::Name(_this));
focusCtrl = _this;
focusCtrlWnd = topwindow;