本文整理汇总了C++中BASE_SCREEN::ManageCurseur方法的典型用法代码示例。如果您正苦于以下问题:C++ BASE_SCREEN::ManageCurseur方法的具体用法?C++ BASE_SCREEN::ManageCurseur怎么用?C++ BASE_SCREEN::ManageCurseur使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BASE_SCREEN
的用法示例。
在下文中一共展示了BASE_SCREEN::ManageCurseur方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ExitTrace
static void ExitTrace(WinEDA_DrawFrame * frame, wxDC * DC)
/**********************************************************/
/* Routine de sortie des menus de trace */
{
BASE_SCREEN * Screen = frame->GetScreen();
if( Screen->m_CurrentItem) /* trace en cours */
{
Screen->ManageCurseur(frame->DrawPanel, DC, FALSE);
Screen->ManageCurseur = NULL;
Screen->ForceCloseManageCurseur = NULL;
EraseStruct(Screen->m_CurrentItem,(SCH_SCREEN*) Screen);
Screen->m_CurrentItem = NULL;
return;
}
else g_ItemToRepeat = NULL; // Fin de commande generale
}
示例2: AbortBlockCurrentCommand
void AbortBlockCurrentCommand(WinEDA_DrawFrame * frame, wxDC * DC)
/******************************************************************/
/*
Cancel Current block operation.
*/
{
BASE_SCREEN * screen = frame->GetScreen();
if( screen->ManageCurseur) /* Erase current drawing on screen */
{
screen->ManageCurseur(frame->DrawPanel, DC, FALSE); /* Efface dessin fantome */
screen->ManageCurseur = NULL;
screen->ForceCloseManageCurseur = NULL;
screen->m_CurrentItem = NULL;
/* Delete the picked wrapper if this is a picked list. */
if( (screen->BlockLocate.m_Command != BLOCK_PASTE) &&
screen->BlockLocate.m_BlockDrawStruct )
{
if(screen->BlockLocate.m_BlockDrawStruct->m_StructType == DRAW_PICK_ITEM_STRUCT_TYPE)
{
DrawPickedStruct * PickedList;
PickedList = (DrawPickedStruct*)screen->BlockLocate.m_BlockDrawStruct;
PickedList->DeleteWrapperList();
}
screen->BlockLocate.m_BlockDrawStruct = NULL;
}
}
screen->BlockLocate.m_Flags = 0;
screen->BlockLocate.m_State = STATE_NO_BLOCK;
screen->BlockLocate.m_Command = BLOCK_ABORT;
frame->HandleBlockEnd(DC);
screen->BlockLocate.m_Command = BLOCK_IDLE;
frame->DisplayToolMsg(wxEmptyString);
}