.developing rainbow

git-svn-id: svn://ultimatepp.org/upp/trunk@3671 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-07-18 15:02:19 +00:00
parent 041fd94dbd
commit a290659bf2
5 changed files with 34 additions and 2 deletions

View file

@ -2,7 +2,7 @@
NAMESPACE_UPP
#define LLOG(x) // LOG(x)
#define LLOG(x) DLOG(x)
Rect TopWindow::windowFrameMargin;
@ -426,6 +426,31 @@ TopWindow& TopWindow::Urgent(bool b)
return *this;
}
void TopWindow::ShutdownWindow()
{
}
void TopWindow::ShutdownWindows()
{
bool again = true;
while(again) {
Vector<Ctrl *> tc = GetTopCtrls();
again = false;
for(int i = 0; i < tc.GetCount(); i++) {
Ptr<TopWindow> w = dynamic_cast<TopWindow *>(tc[i]);
if(w && w->IsOpen() && w->IsEnabled()) {
again = true;
w->SetForeground();
w->ShutdownWindow();
if(w && w->IsOpen())
w->WhenClose();
if(!w || !w->IsOpen())
break;
}
}
}
}
struct DialogBackground : public Display {
void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const
{