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

📄 ngdialogexpander.h

📁 ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - Manage and Renumber Resource Symbol IDs Introduction The
💻 H
字号:

// Expanding and collapsing dialogs
//
// Michael Walz (walz@epsitec.ch)
// Dec. 99
//

#ifndef __NGDialogExpander_H__
#define __NGDialogExpander_H__

class NGLIB_EXT_CLASS CNGDialogExpander
{
// Construction
public:
			CNGDialogExpander(void);


// Attributes
protected:
			BOOL					m_bIsInitialized;
			BOOL					m_bIsExpanded;
			int						m_IdExpandButton;
			int						m_IdCollapsedMark;
			int						m_IdCollapsedText;
			CWnd*					m_pDialog;
			CString					m_sTextMore;
			CString					m_sTextLess;
			CRect					m_dialogrect;

public:

									// call this function from the OnInitDialog() function
			void					Initialize(	CWnd *pDialog,
												BOOL bInitiallyExpanded,
												int IdExpandButton,
												int IdCollapsedMark,
												const CString& sCollapsedText);

			void					Initialize(	CWnd *pDialog,				// pointer to dialog
												BOOL bInitiallyExpanded,	// TRUE => dialog is initially expanded
												int IdExpandButton,			// id of " More " / " Less " button
												int IdCollapsedMark,		// id of static that indicates position of 
																			// the bottom of the collapsed dialog
												int m_IdCollapsedText);		// id of static that cntains the text
																			// "Less" ore something similar

			void					OnExpandButton(void);					// call this in the handler of the
																			// "More"/"Less" button

	virtual	BOOL					IsExpanded(void) const
										{ return m_bIsExpanded; }
} ;


#endif /* _INC_EXPANDDLG_H_ */

⌨️ 快捷键说明

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