本文整理汇总了C++中Cell::Draw方法的典型用法代码示例。如果您正苦于以下问题:C++ Cell::Draw方法的具体用法?C++ Cell::Draw怎么用?C++ Cell::Draw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cell
的用法示例。
在下文中一共展示了Cell::Draw方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onDrawSeqHead
void ListCtrl::onDrawSeqHead( const LCDrawItemInfo* pDrawItemInfo )
{
WFX_CONDITION(pDrawItemInfo != NULL);
Cell* pCell = getCell(0, 0);
if (pCell == NULL)
{
return;
}
WFX_CONDITION(pDrawItemInfo->m_prcItem != NULL);
pCell->Draw(pDrawItemInfo->m_hDC, *(pDrawItemInfo->m_prcItem),
pDrawItemInfo->m_dwState, L"SEQ", WBTN_BKGND_MOUSE, 0);
}
示例2: onDrawHeadCtrl
void ListCtrl::onDrawHeadCtrl( const LCDrawItemInfo* pDrawItemInfo )
{
WFX_CONDITION(pDrawItemInfo != NULL);
Cell* pCell = getCell(0, 0);
if (pCell == NULL)
{
return;
}
WFX_CONDITION(pDrawItemInfo->m_prcItem != NULL);
WFX_CONDITION(pDrawItemInfo->m_pszText != NULL);
pCell->Draw(pDrawItemInfo->m_hDC, *(pDrawItemInfo->m_prcItem), pDrawItemInfo->m_dwState,
pDrawItemInfo->m_pszText, WBTN_BKGND_MOUSE, pDrawItemInfo->m_dwFormat);
}
示例3: onDrawSeqBar
void ListCtrl::onDrawSeqBar( const LCDrawItemInfo* pDrawItemInfo )
{
Cell* pCell = getCell(0, 0);
if (pCell == NULL)
{
return;
}
String strCellText;
strCellText.format(L"%d", pDrawItemInfo->m_nRow);
pCell->Draw(pDrawItemInfo->m_hDC,
*(pDrawItemInfo->m_prcItem), pDrawItemInfo->m_dwState,
strCellText, WBTN_BKGND_MOUSE,
DT_VCENTER | DT_SINGLELINE | DT_CENTER);
}
示例4: Draw
void Emfout::Draw()
{
Cell *tmp = m_tree;
if (tmp != NULL)
{
wxPoint point;
point.x = 0;
point.y = tmp->GetMaxCenter();
int fontsize = 12;
int drop = tmp->GetMaxDrop();
wxConfig::Get()->Read(wxT("fontSize"), &fontsize);
int mfontsize = fontsize;
wxConfig::Get()->Read(wxT("mathfontsize"), &mfontsize);
while (tmp != NULL)
{
if (!tmp->m_isBrokenIntoLines)
{
tmp->Draw(point);
if ((tmp->m_next != NULL) && (tmp->m_next->BreakLineHere()))
{
point.x = 0;
point.y += drop + tmp->m_next->GetMaxCenter();
if (tmp->m_bigSkip)
point.y += MC_LINE_SKIP;
drop = tmp->m_next->GetMaxDrop();
}
else
point.x += (tmp->GetWidth());
}
else
{
if ((tmp->m_next != NULL) && (tmp->m_next->BreakLineHere()))
{
point.x = 0;
point.y += drop + tmp->m_next->GetMaxCenter();
if (tmp->m_bigSkip)
point.y += MC_LINE_SKIP;
drop = tmp->m_next->GetMaxDrop();
}
}
tmp = tmp->m_nextToDraw;
}
}
}