_MessageBox::GetTotalHeight(void) const
{
float titleHeight = 0.0f;
- float btnHeight = 0.0f;
+ float bottomHeight = 0.0f;
float textTopMargin = 0.0f;
float textTopMarginNoButton = 0.0f;
- float btnGap = 0.0f;
- float btnTopMargin = 0.0f;
- float btnBottomMargin = 0.0f;
-
float transTopMargin = 0.0f;
float transBottomMargin = 0.0f;
_ControlOrientation orientation;
orientation = GetOrientation();
GET_SHAPE_CONFIG(MESSAGEBOX::TITLE_HEIGHT, orientation, titleHeight);
- GET_SHAPE_CONFIG(MESSAGEBOX::BUTTON_HEIGHT, orientation, btnHeight);
+ GET_SHAPE_CONFIG(MESSAGEBOX::BOTTOM_HEIGHT, orientation, bottomHeight);
GET_SHAPE_CONFIG(MESSAGEBOX::TEXT_TOP_MRAGIN, orientation, textTopMargin);
GET_SHAPE_CONFIG(MESSAGEBOX::TEXT_TOP_MRAGIN_NO_BUTTON, orientation, textTopMarginNoButton);
- GET_SHAPE_CONFIG(MESSAGEBOX::BUTTON_INTERNAL_GAP, orientation, btnGap);
- GET_SHAPE_CONFIG(MESSAGEBOX::BUTTON_TOP_MARGIN, orientation, btnTopMargin);
- GET_SHAPE_CONFIG(MESSAGEBOX::BUTTON_BOTTOM_MARGIN, orientation, btnBottomMargin);
-
GET_SHAPE_CONFIG(MESSAGEBOX::BG_IMAGE_TRANSPARENT_TOP_MARGIN, orientation, transTopMargin);
GET_SHAPE_CONFIG(MESSAGEBOX::BG_IMAGE_TRANSPARENT_BOTTOM_MARGIN, orientation, transBottomMargin);
// fall through
case MSGBOX_STYLE_CANCELTRYCONTINUE:
totalH += textTopMargin * 2.0f
- + btnHeight
- + btnTopMargin
- + btnBottomMargin;
+ + bottomHeight;
break;
}