⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cdlgfileupdatequery.cpp

📁 日本的开源编辑器源码
💻 CPP
字号:
//	$Id: CDlgFileUpdateQuery.cpp,v 1.1 2002/12/04 15:10:43 Administrator Exp $
/*! @file
	@brief 更新通知及び確認ダイアログ

	ファイルの更新通知と動作の確認を行うダイアログボックス

	@author genta
	@date 2002.12.04

	$Revision: 1.1 $
*/
/*
	Copyright (C) 2002, genta

	This software is provided 'as-is', without any express or implied
	warranty. In no event will the authors be held liable for any damages
	arising from the use of this software.

	Permission is granted to anyone to use this software for any purpose, 
	including commercial applications, and to alter it and redistribute it 
	freely, subject to the following restrictions:

		1. The origin of this software must not be misrepresented;
		   you must not claim that you wrote the original software.
		   If you use this software in a product, an acknowledgment
		   in the product documentation would be appreciated but is
		   not required.

		2. Altered source versions must be plainly marked as such, 
		   and must not be misrepresented as being the original software.

		3. This notice may not be removed or altered from any source
		   distribution.
*/

#include "CDlgFileUpdateQuery.h"
#include "sakura_rc.h"

BOOL CDlgFileUpdateQuery::OnInitDialog( HWND hWnd, WPARAM wParam, LPARAM lParam )
{
	::SetDlgItemText( hWnd, IDC_UPDATEDFILENAME, m_pFilename );
	::SetDlgItemText( hWnd, IDC_QUERYRELOADMSG, m_bModified ?
		"再ロードを行うと変更が失われますがよろしいですか?":"再ロードしますか?" );

	return CDialog::OnInitDialog( hWnd, wParam, lParam );
}

/*!
	ボタンが押されたときの動作
*/
BOOL CDlgFileUpdateQuery::OnBnClicked(int id)
{
	int result;
	switch( id ){
	case IDC_BTN_RELOAD: // 再読込
		result = 1;
		break;
	case IDC_BTN_CLOSE: // 閉じる
		result = 0;
		break;
	case IDC_BTN_NOTIFYONLY: // 以後通知メッセージのみ
		result = 2;
		break;
	case IDC_BTN_NOSUPERVISION: // 以後更新を監視しない
		result = 3;
		break;
	default:
		result = 0;
		break;
	}
	CloseDialog( result );
	
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -