_DateTimePicker::GetHeaderBounds(void)
{
FloatRectangle headerBounds(0.0f, 0.0f, 0.0f, 0.0f);
+ float headerHeight = 0.0f;
- if (__pHeader != null)
- {
- headerBounds = __pHeader->GetBoundsF();
- }
- else
- {
- _Frame* pFrame = dynamic_cast <_Frame*>(_ControlManager::GetInstance()->GetCurrentFrame());
- SysTryReturn(NID_UI_CTRL, (pFrame != null), FloatRectangle(), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to get the instance of frame.");
+ GET_SHAPE_CONFIG(HEADER::HEIGHT, GetOrientation(), headerHeight);
- _Form* pForm = pFrame->GetCurrentForm();
- SysTryReturn(NID_UI_CTRL, (pForm != null), FloatRectangle(), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to get the instance of form.");
+ _Frame* pFrame = dynamic_cast <_Frame*>(_ControlManager::GetInstance()->GetCurrentFrame());
+ SysTryReturn(NID_UI_CTRL, (pFrame != null), FloatRectangle(), E_SYSTEM,
+ "[E_SYSTEM] A system error has occurred. Failed to get the instance of frame.");
- headerBounds = pForm->GetIndicatorBoundsF();
- }
+ _Form* pForm = pFrame->GetCurrentForm();
+ SysTryReturn(NID_UI_CTRL, (pForm != null), FloatRectangle(), E_SYSTEM,
+ "[E_SYSTEM] A system error has occurred. Failed to get the instance of form.");
+
+ headerBounds = pForm->GetIndicatorBoundsF();
+ headerBounds.height += headerHeight;
return headerBounds;
}