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