當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。