本文整理汇总了C++中CGridCellBase::GetState方法的典型用法代码示例。如果您正苦于以下问题:C++ CGridCellBase::GetState方法的具体用法?C++ CGridCellBase::GetState怎么用?C++ CGridCellBase::GetState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGridCellBase
的用法示例。
在下文中一共展示了CGridCellBase::GetState方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetGrid
void CGridCellBase::operator=(const CGridCellBase& cell)
{
SetGrid(cell.GetGrid()); // do first in case of dependencies
SetText(cell.GetText());
SetImage(cell.GetImage());
SetData(cell.GetData());
SetState(cell.GetState());
SetFormat(cell.GetFormat());
SetTextClr(cell.GetTextClr());
SetBackClr(cell.GetBackClr());
SetFont(cell.IsDefaultFont()? NULL : cell.GetFont());
SetMargin(cell.GetMargin());
}
示例2: SetGrid
void CGridCellBase::operator=( CGridCellBase& cell)
{
if (this == &cell) return;
SetGrid(cell.GetGrid()); // do first in case of dependencies
SetText(cell.GetText());
SetImage(cell.GetImage());
SetData(cell.GetData());
SetState(cell.GetState());
SetFormat(cell.GetFormat());
SetTextClr(cell.GetTextClr());
SetBackClr(cell.GetBackClr());
SetFont(cell.IsDefaultFont()? NULL : cell.GetFont());
SetMargin(cell.GetMargin());
//Used for merge cells
//by Huang Wei
SetMergeCellID(cell.GetMergeCellID());
SetMergeRange(cell.GetMergeRange());
Show(cell.IsShow());
}
示例3: OnLButtonDown
void QuoteTableCtrlGeneralSort::OnLButtonDown(UINT nFlags, CPoint point)
{
/*CHSGridCtrl::OnLButtonDown(nFlags, point);*/
SetFocus();
RefreshWnd();
RefreashOtherWnd(g_LastSelectWnd);
g_LastSelectWnd = m_pTableFlag->nIndex;
CRect rectCell, rectRow;
CCellID cell = GetCellFromPt(point);
if (cell.row == 0) return;
CGridCellBase* pCell = GetCell(cell.row, cell.col);
BOOL bInTextArea = FALSE;
if (pCell)
{
if (GetCellRect(cell.row, cell.col, rectCell) &&
pCell->GetTextRect(rectCell))
{
bInTextArea = rectCell.PtInRect(point);
}
}
COLORREF selectbk = RGB(100,100,100);
if ( bInTextArea )
{
for (int i=0; i<GetColumnCount(); i++)
{
pCell = GetCell(cell.row, i);
if (pCell)
{
pCell->SetState(pCell->GetState() | m_iColProp->GetColumnMask(GetHeadID(i))| GVIS_SELECTED);
pCell->SetSelectColor(selectbk);
}
}
}
Invalidate();
m_LastDownPoint = point;
}