您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ Dismiss函数代码示例

51自学网 2021-06-01 20:28:13
  C++
这篇教程C++ Dismiss函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中Dismiss函数的典型用法代码示例。如果您正苦于以下问题:C++ Dismiss函数的具体用法?C++ Dismiss怎么用?C++ Dismiss使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了Dismiss函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: StopTimer

bool DropDownPopup::ProcessLeftDown( wxMouseEvent &event ){    m_mouse = event.GetPosition();    //wxPrintf(wxT("DropDownPopup::ProcessLeftDown %d %d/n"), m_mouse.x, m_mouse.y); fflush(stdout);    if (m_popped_handler) return true; // shouldn't ever get here, but just in case    StopTimer();    // don't let the click on the dropdown button actually press it    wxCustomButton *dropBut = m_owner->GetDropDownButton();    if (dropBut)    {        wxPoint dropMousePt = dropBut->ScreenToClient(ClientToScreen(m_mouse));        if (dropBut->HitTest(dropMousePt) == wxHT_WINDOW_INSIDE)        {            m_ignore_popup = true;            Dismiss();            return true;        }    }    if (GetClientRect().Contains(m_mouse))        return false;    Dismiss();    return true;}
开发者ID:DowerChest,项目名称:codeblocks,代码行数:28,


示例2: GetUInt32Value

void Pet::Update(uint32 time){    Creature::Update(time); // passthrough    if(bHasLoyalty)    {        if(m_LoyaltyTimer == 0)        {            // Update loyalty.....            uint32 val = GetUInt32Value(UNIT_FIELD_POWER5);            if(PET_LOYALTY_UPDATE_VALUE > val)                val = 0;            else                val -= PET_LOYALTY_UPDATE_VALUE;                        // Set the value            SetUInt32Value(UNIT_FIELD_POWER5, val);            if(val <= 0)            {                Dismiss();                return;            }            // reset timer            m_LoyaltyTimer = PET_LOYALTY_UPDATE_TIMER;        } else {            if(time > m_LoyaltyTimer)                m_LoyaltyTimer = 0;            else                m_LoyaltyTimer -= time;        }    }    if(bExpires)    {        if(m_ExpireTime == 0)        {            // remove            Dismiss(false);            return;        } else {            if(time > m_ExpireTime)            {                m_ExpireTime = 0;            } else {                m_ExpireTime -= time;            }        }    }}
开发者ID:AwkwardDev,项目名称:WoWD,代码行数:51,


示例3: switch

void ContentAssistantPopup::UpdateResults(){  wxString partial = m_editor->GetSelectionString();  m_completions = m_autocomplete->CompleteSymbol(partial, m_type);  m_completions.Sort();  switch(m_completions.GetCount())  {  case 1:    m_editor->ReplaceSelection(      m_editor->GetSelectionString(),      m_completions[0]      );  case 0:    m_editor->ClearSelection();    this->GetParent()->GetParent()->Refresh();    if(!m_editor->IsActive())      m_editor->ActivateCell();    Dismiss();    break;  default:    m_autocompletions->Set(m_completions);    m_autocompletions->SetSelection(0);      }}
开发者ID:JohnHuang-China,项目名称:wxmaxima,代码行数:25,


示例4: Dismiss

void HSWDisplay::Enable(bool enable){    Enabled = enable;    if(!enable && Displayed) // If it's visible but should not be...        Dismiss();}
开发者ID:maxtom,项目名称:LibOVR,代码行数:7,


示例5: GetSelection

void wxTreeViewComboPopup::OnMouseClick(wxMouseEvent& event){    m_bClicked = true;    wxTreeItemId ItemId = GetSelection();	if(ItemId.IsOk())    {        if(m_PrewItemId.IsOk())        {            CollapseAllChildren(GetItemParent(m_PrewItemId));        }        if(ItemId != GetRootItem())        {            CollapseAllChildren(ItemId);        }        else        {            CollapseAll();            Expand(GetRootItem());        }	    wxGxTreeItemData* pData = (wxGxTreeItemData*)GetItemData(ItemId);	    if(pData != NULL)	    {            SelectItem(ItemId);		    m_pSelection->Select(pData->m_nObjectID, false, GetId());            m_PrewItemId = ItemId;	    }    }    Dismiss();    event.Skip(true);}
开发者ID:GimpoByte,项目名称:nextgismanager,代码行数:32,


示例6: PushButtonCommand

long TabStops :: PushButtonCommand(wCommandMsg m){	if (m.usCmd() == TAB_OK)	{		ushort tmp = (ushort)spin->GetValue();		if (tmp > 200)			tmp = 200;		if (tmp < 1)			tmp = 1;		Dismiss(tmp);	}	if (m.usCmd() == TAB_CANCEL)		Dismiss(0);	return FALSE;}
开发者ID:OS2World,项目名称:DEV-SAMPLES-ObjectPM,代码行数:16,


示例7: invariant

Status MigrationSourceManager::startClone(OperationContext* txn) {    invariant(!txn->lockState()->isLocked());    invariant(_state == kCreated);    auto scopedGuard = MakeGuard([&] { cleanupOnError(txn); });    grid.catalogClient(txn)->logChange(txn,                                       "moveChunk.start",                                       _args.getNss().ns(),                                       BSON("min" << _args.getMinKey() << "max" << _args.getMaxKey()                                                  << "from"                                                  << _args.getFromShardId()                                                  << "to"                                                  << _args.getToShardId()));    _cloneDriver = stdx::make_unique<MigrationChunkClonerSourceLegacy>(        _args, _committedMetadata->getKeyPattern());    {        // Register for notifications from the replication subsystem        ScopedTransaction scopedXact(txn, MODE_IX);        AutoGetCollection autoColl(txn, _args.getNss(), MODE_IX, MODE_X);        auto css = CollectionShardingState::get(txn, _args.getNss().ns());        css->setMigrationSourceManager(txn, this);    }    Status startCloneStatus = _cloneDriver->startClone(txn);    if (!startCloneStatus.isOK()) {        return startCloneStatus;    }    _state = kCloning;    scopedGuard.Dismiss();    return Status::OK();}
开发者ID:adilshahzad,项目名称:mongo,代码行数:35,


示例8: StopPartialCompletion

void wxVListBoxComboPopup::OnKey(wxKeyEvent& event){    // Hide popup if certain key or key combination was pressed    if ( m_combo->IsKeyPopupToggle(event) )    {        StopPartialCompletion();        Dismiss();    }    else if ( event.AltDown() )    {        // On both wxGTK and wxMSW, pressing Alt down seems to        // completely freeze things in popup (ie. arrow keys and        // enter won't work).        return;    }    // Select item if ENTER is pressed    else if ( event.GetKeyCode() == WXK_RETURN || event.GetKeyCode() == WXK_NUMPAD_ENTER )    {        DismissWithEvent();    }    else    {        int comboStyle = m_combo->GetWindowStyle();        int keycode = event.GetKeyCode();        // Process partial completion key codes here, but not the arrow keys as the base class will do that for us        if ((comboStyle & wxCB_READONLY) &&            (keycode >= WXK_SPACE) && (keycode <=255) && (keycode != WXK_DELETE) && wxIsprint(keycode))        {            OnComboKeyEvent(event);            SetSelection(m_value); // ensure the highlight bar moves        }        else            event.Skip();    }}
开发者ID:252525fb,项目名称:rpcs3,代码行数:35,


示例9: assert

/*void MerryFrame::OnActivateEvent(wxActivateEvent& e){#ifndef DEBUG_ALWAYS_SHOW	if (!e.GetActive() && !this->IsShownOnScreen())		this->Hide();#endif}*/void MerryFrame::OnShowEvent(wxShowEvent& e){	MerryTextCtrl* textCtrl = m_mainPanel->GetTextCtrl();	assert(textCtrl);	if (e.IsShown())	{		if (g_config->get(PlayPopupNotify))//
C++ Dispatch函数代码示例
C++ DiskLoc函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。