mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
4c3e19114d
commit
0a9d1021bd
2 changed files with 10 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue