• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ EndModal函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: sett

void AddBotDialog::OnAddBot( wxCommandEvent& /*event*/ )
{
  sett().SetLastAI(  m_ai->GetStringSelection() );
  EndModal( wxID_OK );
}
开发者ID:Mailaender,项目名称:springlobby,代码行数:5,代码来源:addbotdialog.cpp


示例17: EndModal

void LevellerDialog::OnCancel(wxCommandEvent &event)
{
   EndModal(false);
}
开发者ID:andreipaga,项目名称:audacity,代码行数:4,代码来源:Leveller.cpp


示例18: EndModal

/* PaletteDialog::onLeftDoubleClick
 * Called when the palette canvas is double clicked
 *******************************************************************/
void PaletteDialog::onLeftDoubleClick(wxMouseEvent& e)
{
	EndModal(wxID_OK);
}
开发者ID:IjonTichy,项目名称:SLADE,代码行数:7,代码来源:PaletteDialog.cpp


示例19: EndModal

void WConfirmCalibration::OnButton3Click( wxCommandEvent& event )
{
	m_timer.Stop();
	EndModal(BUTTON_REPEAT);
    event.Skip();
}
开发者ID:BrainTech,项目名称:eviacam,代码行数:6,代码来源:wconfirmcalibration.cpp


示例20: EndModal

/**
 * Close the editor without updating the object
 */
void TiledSpriteObjectEditor::OncancelBtClick(wxCommandEvent& event)
{
    EndModal(0);
}
开发者ID:walney,项目名称:GD,代码行数:7,代码来源:TiledSpriteObjectEditor.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ EndPage函数代码示例发布时间:2022-05-30
下一篇:
C++ EndEdit函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap