bazaar: PopUpC

git-svn-id: svn://ultimatepp.org/upp/trunk@14149 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
kohait 2020-03-10 19:07:17 +00:00
parent eae1b88db4
commit ff3ff6be3d

View file

@ -19,8 +19,8 @@ void PopUpC::Break(int ID)
bool PopUpC::AcceptBreak(int ID) bool PopUpC::AcceptBreak(int ID)
{ {
if(Accept()) { if(Accept()) {
WhenAccept();
Break(ID); Break(ID);
WhenAccept();
return true; return true;
} }
return false; return false;
@ -29,8 +29,8 @@ bool PopUpC::AcceptBreak(int ID)
void PopUpC::RejectBreak(int ID) void PopUpC::RejectBreak(int ID)
{ {
Reject(); Reject();
WhenReject();
Break(ID); Break(ID);
WhenReject();
} }
void PopUpC::PopUp(Ctrl* owner) void PopUpC::PopUp(Ctrl* owner)
@ -46,6 +46,9 @@ void PopUpC::PopUp(Ctrl* owner)
y = r.top - sz.cy; y = r.top - sz.cy;
Rect rt = RectC(x, y, sz.cx, sz.cy); Rect rt = RectC(x, y, sz.cx, sz.cy);
Backup();
if(GUI_PopUpEffect()) { if(GUI_PopUpEffect()) {
sPaintRedirectCtrl pb; sPaintRedirectCtrl pb;
pb.ctrl = this; pb.ctrl = this;