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

📄 cdlgfavorite.h

📁 日本的开源编辑器源码
💻 H
字号:
/*!	@file
	@brief お気に入り設定ダイアログボックス

	@author MIK
	$Revision: 1.2 $
*/
/*
	Copyright (C) 2003, MIK

	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.
*/



class CDlgFavorite;

#ifndef	_CDLGFAVORITE_H_
#define	_CDLGFAVORITE_H_

#include "CDialog.h"

class SAKURA_CORE_API CDlgFavorite : public CDialog
{
public:
	/*
	||  Constructors
	*/
	CDlgFavorite();
	~CDlgFavorite();

	/*
	||  Attributes & Operations
	*/
	int DoModal( HINSTANCE, HWND, LPARAM );	/* モーダルダイアログの表示 */

protected:
	/*
	||  実装ヘルパ関数
	*/
	BOOL	OnInitDialog( HWND, WPARAM wParam, LPARAM lParam );
	BOOL	OnBnClicked( int );
	BOOL	OnNotify( WPARAM wParam, LPARAM lParam );
	BOOL	OnActivate( WPARAM wParam, LPARAM lParam );
	LPVOID	GetHelpIdTable( void );

	void	SetData( void );	/* ダイアログデータの設定 */
	int		GetData( void );	/* ダイアログデータの取得 */

	bool	RefreshList( void );
	void	SetDataOne( int nIndex, int CurrentIndex );	/* ダイアログデータの設定 */
	bool	RefreshListOne( int nIndex );
	//void	ChangeSlider( int nIndex );

private:
	CRecent	m_cRecentFile;
	CRecent	m_cRecentFolder;
	CRecent	m_cRecentSearch;
	CRecent	m_cRecentReplace;
	CRecent	m_cRecentGrepFile;
	CRecent	m_cRecentGrepFolder;
	CRecent	m_cRecentCmd;

	typedef struct FavoriteInfoTag {
		CRecent*	m_pRecent;			//オブジェクトへのポインタ
		char*		m_pszCaption;		//キャプション
		int			m_nId;				//コントロールのID
		bool		m_bHaveFavorite;	//お気に入りを持っているか?
		bool		m_bHaveView;		//表示数変更機能をもっているか?
		int			m_nViewCount;		//カレントの表示数
	} FavoriteInfoTag;

	FavoriteInfoTag	p_favorite_info[8];

	int		m_nCurrentTab;
	char	m_szMsg[1024];

};

#endif	//_CDLGFAVORITE_H_


⌨️ 快捷键说明

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