本文整理汇总了C++中Pane::CalcPaint方法的典型用法代码示例。如果您正苦于以下问题:C++ Pane::CalcPaint方法的具体用法?C++ Pane::CalcPaint怎么用?C++ Pane::CalcPaint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pane
的用法示例。
在下文中一共展示了Pane::CalcPaint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CalcPaint
bool Pane::CalcPaint()
{
if (m_bHidden) {
m_paintOffset = WinPoint(0, 0);
m_paintSize = WinPoint(0, 0);
m_bNeedPaint = false;
m_bPaintAll = false;
if (m_bHiddenPaint != m_bHidden) {
m_bHiddenPaint = m_bHidden;
return true;
}
return false;
}
bool bAnyChildSized = false;
for(Pane* ppane = m_pchild; ppane != NULL; ppane = ppane->m_pnext) {
bAnyChildSized |= ppane->CalcPaint();
if (ppane->m_bNeedPaint) {
m_bNeedPaint = true;
}
}
if (bAnyChildSized) {
m_bNeedPaint = true;
m_bPaintAll = true;
}
if (
m_paintOffset != m_offset
|| m_paintSize != m_size
|| m_bHiddenPaint != m_bHidden
) {
m_bNeedPaint = true;
m_bPaintAll = true;
m_paintOffset = m_offset;
m_paintSize = m_size;
m_bHiddenPaint = m_bHidden;
return true;
} else {
return false;
}
}