CComponentsWindow: add missing member paint()

This is a partial revert of cbeb9f3ac6
This commit is contained in:
2013-11-17 20:53:45 +01:00
parent 1feec4714a
commit 0ae3d34ceb
2 changed files with 11 additions and 0 deletions

View File

@@ -317,6 +317,9 @@ class CComponentsWindow : public CComponentsForm
///refresh position and dimension and reinitialize elemenatary properties
void Refresh(){initCCWItems();};
///paint all window items, this overwriting paint() from CComponentsForm
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
};

View File

@@ -254,3 +254,11 @@ void CComponentsWindow::initCCWItems()
addCCItem(ccw_footer);
}
void CComponentsWindow::paint(bool do_save_bg)
{
//prepare items before paint
initCCWItems();
//paint form contents
paintForm(do_save_bg);
}