CtrlCore: Fixed issue in Ctrl::GetTopWindow

git-svn-id: svn://ultimatepp.org/upp/trunk@5663 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-12-27 18:41:54 +00:00
parent 4c3e19114d
commit 0a9d1021bd
2 changed files with 10 additions and 1 deletions

View file

@ -259,8 +259,9 @@ const Ctrl *Ctrl::GetOwnerCtrl() const { return const_cast<Ctrl *>(this)->Get
TopWindow *Ctrl::GetTopWindow()
{
GuiLock __;
Ctrl *q = GetTopCtrl();
Ctrl *q = this;
while(q) {
q = q->GetTopCtrl();
TopWindow *w = dynamic_cast<TopWindow *>(q);
if(w) return w;
q = q->GetOwner();

View file

@ -441,6 +441,14 @@ TopWindow& TopWindow::Urgent(bool b)
return *this;
}
TopWindow& TopWindow::FrameLess(bool b)
{
GuiLock __;
frameless = b;
SyncCaption();
return *this;
}
void TopWindow::ShutdownWindow()
{
}