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

C++ CloseDialog函数代码示例

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

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



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

示例1: CloseDialog

// ----------------------------------------------------------------------------
void BrowseSelector::OnKeyUp(wxKeyEvent &event)
// ----------------------------------------------------------------------------
{
	//FIXME: the key should dynamically match the menuitem cmdkey
	if( event.GetKeyCode() == WXK_ALT )
	{
		CloseDialog();
	}
	if( event.GetKeyCode() == WXK_RETURN )
	{
		CloseDialog();
	}
}
开发者ID:DowerChest,项目名称:codeblocks,代码行数:14,代码来源:BrowseSelector.cpp


示例2: KillTimer

LRESULT CResendDlg::OnPopupExit(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
    KillTimer(0);
    CloseDialog(0);

    return 0;
}
开发者ID:doo,项目名称:CrashRpt,代码行数:7,代码来源:ResendDlg.cpp


示例3: GetObjectPathForSave

void SAssetDialog::CommitObjectPathForSave()
{
	if ( ensure(DialogType == EAssetDialogType::Save) )
	{
		if ( bLastInputValidityCheckSuccessful )
		{
			const FString ObjectPath = GetObjectPathForSave();

			bool bProceedWithSave = true;

			// If we were asked to warn on existing assets, do it now
			if ( ExistingAssetPolicy == ESaveAssetDialogExistingAssetPolicy::AllowButWarn )
			{
				FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry");
				FAssetData ExistingAsset = AssetRegistryModule.Get().GetAssetByObjectPath(FName(*ObjectPath));
				if ( ExistingAsset.IsValid() && AssetClassNames.Contains(ExistingAsset.AssetClass) )
				{
					EAppReturnType::Type ShouldReplace = FMessageDialog::Open( EAppMsgType::YesNo, FText::Format(LOCTEXT("ReplaceAssetMessage", "{ExistingAsset} already exists. Do you want to replace it?"), FText::FromString(CurrentlyEnteredAssetName)) );
					bProceedWithSave = (ShouldReplace == EAppReturnType::Yes);
				}
			}

			if ( bProceedWithSave )
			{
				OnObjectPathChosenForSave.ExecuteIfBound(ObjectPath);
				CloseDialog();
			}
		}
	}
}
开发者ID:1vanK,项目名称:AHRUnrealEngine,代码行数:30,代码来源:SAssetDialog.cpp


示例4: SetTitleTypeString

//-----------------------------------------------------------------------------
//!
//-----------------------------------------------------------------------------
void tSearchItemDialog::Initialize( tMCoord position, const FindType::eItemType type, const tMapFilter& filter )
{
    m_NotificationID = 0;

    SetTitleTypeString( type );
    UpdateStatusString("");

    QVBoxLayout* pMainLayout = new QVBoxLayout();
    pMainLayout->setContentsMargins( 0, 0, 0, 0 );

    m_pSearchItemWidget = new tSearchItemWidget( this, m_pBrandFactory, position, filter );
    Connect( m_pSearchItemWidget, SIGNAL( UpdateStatusString( const QString& ) ), 
                    this, SLOT( UpdateStatusString( const QString& ) ) );
    Connect( m_pSearchItemWidget, SIGNAL( CloseDialog() ), this, SLOT( accept() ) );
    
    pMainLayout->addWidget( m_pSearchItemWidget );
    setLayout( pMainLayout );

    if ( HasSoftKeyBar() )
    {
        tAction* pShowAct = new tAction( tr( "Show", "[button]" ), this ); 
        Connect( pShowAct, SIGNAL( triggered() ), this, SLOT( ShowPressed() ) );
        tAction* pGotoAct = new tAction( tr( "Goto", "[button]" ), this ); 
        Connect( pGotoAct, SIGNAL( triggered() ), this, SLOT( GotoPressed() ) );
        tAction* pDetailsAct = new tAction( tr( "Details", "[button]" ), this ); 
        Connect( pDetailsAct, SIGNAL( triggered() ), this, SLOT( DetailsPressed() ) );

        m_ActionList << pShowAct << pGotoAct << pDetailsAct;

        setSoftKeys( m_ActionList );
    }

    m_pSearchItemWidget->SetSearchType( type ); // starts the search
}
开发者ID:dulton,项目名称:53_hero,代码行数:37,代码来源:tSearchItemDialog.cpp


示例5: ERROR3

void CBrushGadget::HandleBrushButtonClick (BrushData* AppliedBrush, AttrBrushType* pBrush, AttrBrushType* pOrigBrush)
{
	if (AppliedBrush == NULL || pBrush == NULL)
	{
		ERROR3("Invalid input parameters");
		return;
	}
	
	if (!(IsDialogOpen ()))
	{
		pDialog_m = new CBrushEditDlg();
		BOOL bMany = FALSE, bAllSameType = TRUE;
								
		//CProfileBiasGain* appliedBiasGain = GetProfileFromSelection (ProfileGadgetID, &bMany, &bAllSameType);

		//if (bAllSameType != FALSE)
		//{
		pDialog_m->InvokeVia (*(this), AppliedBrush, pBrush, pOrigBrush, bMany);
		//}
	}
	else
	{
		CloseDialog ();
	}
}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:25,代码来源:brshgdgt.cpp


示例6: CloseDialog

void vmsWinInetHttpTrafficCollector::OnInternetCloseHandle(HINTERNET hInternet)
{
    if (!hInternet)
        return;

    m_pHttpTraffic->LockDialogsLists (true);

    CloseDialog (hInternet);

    for (size_t i = 0; i < m_pHttpTraffic->m_vCompletedDialogs.size (); i++)
    {
        if (m_pHttpTraffic->m_vCompletedDialogs [i]->hWInetFile == hInternet)
            m_pHttpTraffic->m_vCompletedDialogs [i]->hWInetFile = NULL;
    }

    m_pHttpTraffic->LockDialogsLists (false);

    EnterCriticalSection (&m_cs_vPostData);
    int nIndex = findPostDataIndex (hInternet);
    if (nIndex != -1)
        m_vPostData.erase (m_vPostData.begin () + nIndex);
    LeaveCriticalSection (&m_cs_vPostData);

    EnterCriticalSection (&m_cs_vNonCacheHandles);
    nIndex = findNonCacheHandleIndex (hInternet);
    if (nIndex != -1)
        m_vNonCacheHandles.erase (m_vNonCacheHandles.begin () + nIndex);
    LeaveCriticalSection (&m_cs_vNonCacheHandles);
}
开发者ID:pedia,项目名称:raidget,代码行数:29,代码来源:vmswininethttptrafficcollector.cpp


示例7: CloseDialog

void wxTabNavigatorWindow::OnKeyUp(wxKeyEvent &event)
{
	if(event.GetKeyCode() == WXK_CONTROL)
	{
		CloseDialog();
	}
}
开发者ID:05storm26,项目名称:codelite,代码行数:7,代码来源:popup_dlg.cpp


示例8: CloseDialog

void CMainDlg::OnTimer(UINT_PTR nIDEvent)
{
	if (nIDEvent == 1 && gStop)
	{
		static boost::timer tmr;
		// 延迟3秒关闭
		if (tmr.elapsed() > 3)
		{
			// 检测关闭
			trayIcon.Hide();
			CloseDialog(0);
			TerminateProcess(GetCurrentProcess(), 0);
		}
	}
	else if (nIDEvent == 2 && exiting && !gStop)
	{
		static int times = 0;
		if (times < 3)
		{
			times++;
			// L"正在退出太一,请稍候.."
			trayIcon.SetBalloonDetails(GetLocalWStr(strTrayNowExiting), L"", CTrayNotifyIcon::None, 100);
		}
	}
	else
	{
		SetMsgHandled(false);
	}
}
开发者ID:lcfGitHubCode,项目名称:TaiyiCode,代码行数:29,代码来源:MainDlg.cpp


示例9: if

//=================================================================================================
void Controls::Event(GuiEvent e)
{
	if(e == GuiEvent_Show || e == GuiEvent_WindowResize)
	{
		if(e == GuiEvent_Show)
		{
			visible = true;
			changed = false;
		}
		pos = global_pos = (GUI.wnd_size - size)/2;
		for(int i=0; i<2; ++i)
			bts[i].global_pos = global_pos + bts[i].pos;
		grid.Move(global_pos);
	}
	else if(e == GuiEvent_LostFocus)
		grid.LostFocus();
	else if(e == GuiEvent_Close)
	{
		grid.LostFocus();
		visible = false;
	}
	else if(e == Button_Ok)
	{
		if(changed)
			game->SaveGameKeys();
		CloseDialog();
	}
	else if(e == Button_Reset)
	{
		game->ResetGameKeys();
		changed = true;
	}
}
开发者ID:edeksumo,项目名称:carpg,代码行数:34,代码来源:Controls.cpp


示例10: OnOK

	void OnOK(HWND hWnd)
	{
		winx::SaveFileDialog dlg(
			_T("TIFF files(*.tif;*.tiff)\0*.tif;*.tiff\0"), _T("*.tif"));
		
		if (IDOK != dlg.DoModal())
			return;
		
		TCHAR szFrame[] = _T("Frame1");

		USES_CONVERSION;
		CLSID clsid;
		Gdiplus::GetEncoderClsid(L"image/tiff", &clsid);
		Gdiplus::MultiFrameImageCreator multi(T2CW(dlg.lpstrFile), clsid);
		
		for (UINT i = 1; i < 10; ++i)
		{
			szFrame[5] = '0' + i;
			::SetDlgItemText(hWnd, IDC_PROMPT, szFrame);
			
			HBITMAP hbm = winx::ScreenCapture(hWnd);
			{
				Gdiplus::Bitmap bitmap(hbm, NULL);
				WINX_ASSERT(bitmap.GetLastStatus() == Gdiplus::Ok);
				multi.Add(bitmap);
			}
			::DeleteObject(hbm);
		}
		CloseDialog(hWnd);
	}
开发者ID:Chingliu,项目名称:winx,代码行数:30,代码来源:hello.cpp


示例11: GetCursorPos

LRESULT CErrorReportDlg::OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
    // Show popup menu on "Other actions..." button click
    if(g_CrashInfo.m_bQueueEnabled)
    {    
        CPoint pt;
        GetCursorPos(&pt);
        CMenu menu = LoadMenu(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDR_POPUPMENU));
        CMenu submenu = menu.GetSubMenu(4);

        strconv_t strconv;
        CString sSendLater = Utility::GetINIString(g_CrashInfo.m_sLangFileName, _T("MainDlg"), _T("SendReportLater"));
        CString sCloseTheProgram = Utility::GetINIString(g_CrashInfo.m_sLangFileName, _T("MainDlg"), _T("CloseTheProgram"));

        MENUITEMINFO mii;
        memset(&mii, 0, sizeof(MENUITEMINFO));
        mii.cbSize = sizeof(MENUITEMINFO);
        mii.fMask = MIIM_STRING;

        mii.dwTypeData = sSendLater.GetBuffer(0);  
        submenu.SetMenuItemInfo(ID_MENU5_SENDREPORTLATER, FALSE, &mii);

        mii.dwTypeData = sCloseTheProgram.GetBuffer(0);  
        submenu.SetMenuItemInfo(ID_MENU5_CLOSETHEPROGRAM, FALSE, &mii);

        submenu.TrackPopupMenu(0, pt.x, pt.y, m_hWnd);    
    }  
    else
    {
        // Close dialog
        CloseDialog(wID);  
    }

    return 0;
}
开发者ID:doo,项目名称:CrashRpt,代码行数:35,代码来源:ErrorReportDlg.cpp


示例12: switch

/*!
	ボタンが押されたときの動作
*/
BOOL CDlgFileUpdateQuery::OnBnClicked(int id)
{
	EFileUpdateQuery result;

	switch( id ){
	case IDC_BTN_RELOAD: // 再読込
		result = EFUQ_RELOAD;
		break;
	case IDC_BTN_CLOSE: // 閉じる
		result = EFUQ_CLOSE;
		break;
	case IDC_BTN_NOTIFYONLY: // 以後通知メッセージのみ
		result = EFUQ_NOTIFYONLY;
		break;
	case IDC_BTN_NOSUPERVISION: // 以後更新を監視しない
		result = EFUQ_NOSUPERVISION;
		break;
	case IDC_BTN_AUTOLOAD:		// 以後未編集で再ロード
		result = EFUQ_AUTOLOAD;
		break;
	default:
		result = EFUQ_CLOSE;
		break;
	}
	CloseDialog( (INT_PTR)result );

	return 0;
}
开发者ID:daisukekoba,项目名称:sakura-editor-trunk2,代码行数:31,代码来源:CDlgFileUpdateQuery.cpp


示例13: CloseDialog

LRESULT CErrorReportDlg::OnPopupSendReportLater(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
    g_CrashInfo.SetRemindPolicy(REMIND_LATER);

    CloseDialog(wID);  
    return 0;
}
开发者ID:doo,项目名称:CrashRpt,代码行数:7,代码来源:ErrorReportDlg.cpp


示例14: CloseDialog

FReply SAblAbilityPreviewAssetClassDlg::CancelClicked()
{
	m_bOkClicked = false;

	CloseDialog();

	return FReply::Handled();
}
开发者ID:zpzsoft,项目名称:zpzsoft.github.io,代码行数:8,代码来源:SAbilityPreviewAssetClassDlg.cpp


示例15: OnOK

	void OnOK(HWND hWnd)
	{
		DoDataExchange(true);
		winx::MsgBoxTrace(
			_T("Check=%d, Sex=%d, Level=%d, Edit='%s'\n"),
			m_fCheck1, m_nSex, m_nLevel, (LPCTSTR)m_strEdit1);
		CloseDialog(hWnd);
	}
开发者ID:xushiwei,项目名称:winx,代码行数:8,代码来源:hello.cpp


示例16: CL_DEBUG

void NotebookNavigationDlg::OnKeyUp(wxKeyEvent& event)
{
    CL_DEBUG("NotebookNavigationDlg::OnKeyUp");
#ifdef __WXOSX__
    if(event.GetKeyCode() == WXK_ALT) {
        CloseDialog();
    } else {
        event.Skip();
    }
#else
    if(event.GetKeyCode() == WXK_CONTROL) {
        CloseDialog();
    } else {
        event.Skip();
    }
#endif
}
开发者ID:GaganJotSingh,项目名称:codelite,代码行数:17,代码来源:NotebookNavigationDlg.cpp


示例17: ShowWindow

LRESULT CLoginDlg::OnGotoWorld(UINT, WPARAM, LPARAM, BOOL&)
{
    ShowWindow(SW_HIDE);
    CWorldDlg dlg;
    dlg.DoModal();
    CloseDialog(0);
    return 0;
}
开发者ID:LieLowMan,项目名称:zpublic,代码行数:8,代码来源:LoginDlg.cpp


示例18: CloseDialog

//=================================================================================================
void CreateCharacterPanel::OnEnterName(int id)
{
	if(id == BUTTON_OK)
	{
		CloseDialog();
		event(BUTTON_OK);
	}
}
开发者ID:edeksumo,项目名称:carpg,代码行数:9,代码来源:CreateCharacterPanel.cpp


示例19: CloseDialog

void __fastcall TPrepareBitDlg::CancellBttnClick(TObject *Sender)
{
   m_wasCancelled = true;
   CBackEndInterface* BackEnd = CBackEndInterface::Instance();
   BackEnd->EnableDoor(false);
   CloseDialog();
   Clean();
}
开发者ID:SlavaC1,项目名称:ControlSW,代码行数:8,代码来源:PrepareForBitDlg.cpp


示例20: CloseDialog

/// <summary>
/// Wait for injection
/// </summary>
/// <returns>Error code</returns>
NTSTATUS DlgWait::WaitForInjection()
{
    for (bool inject = true; inject && _status != STATUS_REQUEST_ABORTED; inject = _context.cfg.injIndef)
        _status = _core.InjectMultiple( &_context );

    CloseDialog();
    return _status;
}
开发者ID:DarthTon,项目名称:Xenos,代码行数:12,代码来源:DlgWait.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ CloseFile函数代码示例发布时间:2022-05-30
下一篇:
C++ CloseDesktop函数代码示例发布时间: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