本文整理汇总了C++中PaintInfo::SetAction方法的典型用法代码示例。如果您正苦于以下问题:C++ PaintInfo::SetAction方法的具体用法?C++ PaintInfo::SetAction怎么用?C++ PaintInfo::SetAction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PaintInfo
的用法示例。
在下文中一共展示了PaintInfo::SetAction方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddModifySizeInfo
/*************
* input 還未變形前的位置
**************/
void AddRedoUndoPaintInfo::AddModifySizeInfo(int ID,POINT posBeg,POINT posEnd)
{
RecordObj *data = new RecordObj();
::SecureZeroMemory(data, sizeof(RecordObj));
gMyList.visitID_Node(ID);
gMyList.CurrDataToRecordData( data );
if( data->nObjType != IDM_WORD_REC )
{
data->Command = COMMAND_FIX_GRAPH;
}
else
{
data->Command = COMMAND_CHANGE_WORD_REC;
SgWordDataModelControler::Instance()->SaveAllWordnThisWordRecToRecordObj( gMyList.GetCurrentNo() , data);
gPaintInfo.SetAction(TRUE);
}
data->ptBeg = posBeg;
data->ptEnd = posEnd;
gOriginator->SetRecordObj(data);
gRedoUndoController->Record();
data = NULL;
}
示例2: AddModifyPenColorInfo
void AddRedoUndoPaintInfo::AddModifyPenColorInfo(int penColor)
{
RecordObj *data = new RecordObj();
::SecureZeroMemory(data, sizeof(RecordObj));
gMyList.CurrDataToRecordData( data );
if( data->nObjType != IDM_WORD_REC )
{
data->Command = COMMAND_FIX_GRAPH;
gOriginator->SetRecordObj(data);
}
else
{
data->Command = COMMAND_FIX_COLOR_WORD;
}
data->iNewPenColor = penColor;
gOriginator->SetRecordObj(data);
gRedoUndoController->Record();
data = NULL;
gPaintInfo.SetAction(TRUE);
}
示例3: AddNewNodeInfo
void AddRedoUndoPaintInfo::AddNewNodeInfo(int ID)
{
//儲存Log
RecordObj *data = new RecordObj();
::SecureZeroMemory(data, sizeof(RecordObj));
gMyList.visitID_Node(ID);
gMyList.CurrDataToRecordData( data );
if( data->nObjType != IDM_WORD_REC )
{
data->Command = COMMAND_DRAW_NEW_GRAPH;
}
else
{
data->Command = COMMAND_ADD_WORD;
SgWordDataModelControler::Instance()->SaveAllWordnThisWordRecToRecordObj( gMyList.GetCurrentNo() , data);
}
gOriginator->SetRecordObj(data);
gRedoUndoController->Record();
data = NULL;
gPaintInfo.SetAction(TRUE);
}
示例4: AddModifyPenWidthInfo
void AddRedoUndoPaintInfo::AddModifyPenWidthInfo(int penWidth)
{
RecordObj *data = new RecordObj();
::SecureZeroMemory(data, sizeof(RecordObj));
gMyList.CurrDataToRecordData( data );
data->Command = COMMAND_FIX_GRAPH;
data->iNewPenWidth = penWidth;
gOriginator->SetRecordObj(data);
gRedoUndoController->Record();
data = NULL;
gPaintInfo.SetAction(TRUE);
}