当前位置: 首页>>代码示例>>C++>>正文


C++ EndModal函数代码示例

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


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

示例1: EndModal

void EditCppCodeEvent::OncancelBtClick(wxCommandEvent& event)
{
    EndModal(0);
}
开发者ID:HaoDrang,项目名称:GD,代码行数:4,代码来源:EditCppCodeEvent.cpp

示例2: WXUNUSED

void VampEffectDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
{
   EndModal(FALSE);
}
开发者ID:dot-Sean,项目名称:audio,代码行数:4,代码来源:VampEffect.cpp

示例3: WXUNUSED

void EditHouseDialog::OnClickCancel(wxCommandEvent& WXUNUSED(event)) {
	// Just close this window
	EndModal(0);
}
开发者ID:CkyLua,项目名称:rme,代码行数:4,代码来源:palette_house.cpp

示例4: EndModal

void AutocloseMessageBox::OnUnlock(wxTimerEvent& /*evt*/)
{
	EndModal(wxID_OK);
}
开发者ID:OursDesCavernes,项目名称:springlobby,代码行数:4,代码来源:customdialogs.cpp

示例5: EndModal

void ExportMixerDialog::OnCancel(wxCommandEvent &event)
{
   EndModal( wxID_CANCEL );
}
开发者ID:ruthmagnus,项目名称:audacity,代码行数:4,代码来源:Export.cpp

示例6: TransferDataFromWindow

void LevellerDialog::OnOk(wxCommandEvent &event)
{
   TransferDataFromWindow();

   EndModal(true);
}
开发者ID:andreipaga,项目名称:audacity,代码行数:6,代码来源:Leveller.cpp

示例7: EndModal

void DIALOG_NON_COPPER_ZONES_EDITOR::OnCancelClick( wxCommandEvent& event )
{
    // do not save the edits.

    EndModal( ZONE_ABORT );
}
开发者ID:antogg,项目名称:kicad-source-mirror,代码行数:6,代码来源:dialog_non_copper_zones_properties.cpp

示例8: WXUNUSED

void ShareTransactionDialog::OnOk(wxCommandEvent& WXUNUSED(event))
{
    double num_shares = 0;
    if (!m_share_num_ctrl->checkValue(num_shares))
    {
        return;
    }

    double share_price = 0;
    if (!m_share_price_ctrl->checkValue(share_price))
    {
        return;
    }

    double commission = 0;
    m_commission_ctrl->GetDouble(commission);

    double current_price = share_price;
    if (m_stock && ((m_stock->PURCHASEPRICE != m_stock->CURRENTPRICE) && (m_stock->PURCHASEPRICE != 0)))
    {
        current_price = m_stock->CURRENTPRICE;
    }

    // allow for loyalty shares. These are "Free"
    bool loyalty_shares = (share_price == 0) && (num_shares > 0);
    if (m_stock && loyalty_shares)
    {
        current_price = m_stock->CURRENTPRICE;
    }

    // Only update the current price when adding new shares
    if (!m_checking_entry)
    {
        m_stock->CURRENTPRICE = current_price;
        Model_Stock::instance().save(m_stock);
    }

    if (m_transaction_panel->ValidCheckingAccountEntry())
    {
        // addition or removal shares
        if ((num_shares > 0) && (m_transaction_panel->TransactionType() == Model_Checking::DEPOSIT))
        {
            // we need to subtract the number of shares for a sale
            num_shares = num_shares * -1;
        }

        int checking_id = m_transaction_panel->SaveChecking();

        /*
        // The PURCHASEDATE, field in STOCK table becomes obsolete.
        // NUMSHARES, PURCHASEPRICE and COMMISSION fields in the Stocks table are used as
        // a summary and allows Stock history to work in its current form.
        // The Shares table now maintains share_num, share_price, and commission on the
        // date of purchase, together with a record in the checking account table.
        */
        if (!m_translink_entry)
        {
             Model_Translink::SetStockTranslink(m_stock->STOCKID
                , checking_id, m_transaction_panel->CheckingType());
        }
        Model_Shareinfo::ShareEntry(checking_id, num_shares, share_price, commission, m_share_lot_ctrl->GetValue());

        Model_Translink::UpdateStockValue(m_stock);
        if (!loyalty_shares)
        {
            Model_StockHistory::instance().addUpdate(m_stock->SYMBOL, m_transaction_panel->TransactionDate(), m_stock->CURRENTPRICE, Model_StockHistory::MANUAL);
        }
    }
    else
    {
        mmErrorDialogs::MessageWarning(this, _("Invalid Transaction"), m_dialog_heading);
        return;
    }

    EndModal(wxID_OK);
}
开发者ID:dqf88,项目名称:moneymanagerex,代码行数:76,代码来源:sharetransactiondialog.cpp

示例9: EndModal

void ChooseAutomatismDialog::OnChoisirBtClick(wxCommandEvent& event)
{
    automatismChosen = automatismsList->GetStringSelection();
    EndModal(1);
}
开发者ID:cubemoon,项目名称:GD,代码行数:5,代码来源:ChooseAutomatismDialog.cpp

示例10: EndModal

void moNewEffectDialog::OnCancelButtonClick(wxCommandEvent& event)
{
    EndModal( wxID_CANCEL );
}
开发者ID:inaes-tic,项目名称:tv-moldeo,代码行数:4,代码来源:moNewEffectDialog.cpp

示例11: EndModal

void
scanning_for_playlists_dlg::on_scanner_finished(wxCommandEvent &) {
  EndModal(m_aborted ? wxID_CANCEL : wxID_OK);
}
开发者ID:ProfOh,项目名称:mkvtoolnix,代码行数:4,代码来源:scanning_for_playlists_dlg.cpp

示例12: EndModal

void DIALOG_PAGES_SETTINGS::OnCancelClick( wxCommandEvent& event )
{
    EndModal( false );
}
开发者ID:johnbeard,项目名称:kicad-source-mirror,代码行数:4,代码来源:dialog_page_settings.cpp

示例13: EndModal

void PathBehaviorEditor::OncancelBtClick(wxCommandEvent& event)
{
    EndModal(0);
}
开发者ID:alcemirfernandes,项目名称:GD,代码行数:4,代码来源:PathBehaviorEditor.cpp

示例14: EndModal

void AddBotDialog::OnClose( wxCommandEvent& /*event*/ )
{
  EndModal( wxID_CANCEL );
}
开发者ID:Mailaender,项目名称:springlobby,代码行数:4,代码来源:addbotdialog.cpp

示例15: StoreData

void wxsFontEditorDlg::OnButton2Click(wxCommandEvent& event)
{
    StoreData(Data);
    EndModal(wxID_OK);
}
开发者ID:stahta01,项目名称:EmBlocks,代码行数:5,代码来源:wxsfonteditordlg.cpp


注:本文中的EndModal函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。