bool
_Form::RemoveHeader(void)
{
+ result r = E_SUCCESS;
if (__pHeader)
{
+ if (IsAttachedToMainTree())
+ {
+ r = DetachSystemChild(*__pHeader);
+ SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r));
+ }
__pHeader = null;
AdjustClientBounds();
bool
_Form::RemoveFooter(void)
{
+ result r = E_SUCCESS;
if (__pFooter)
{
+ if (IsAttachedToMainTree())
+ {
+ r = DetachSystemChild(*__pFooter);
+ SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r));
+ }
__pFooter = null;
AdjustClientBounds();
bool
_Form::RemoveTab(void)
{
+ result r = E_SUCCESS;
if (__pTab)
{
+ if (IsAttachedToMainTree())
+ {
+ r = DetachSystemChild(*__pTab);
+ SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r));
+ }
__pTab = null;
AdjustClientBounds();