Window类弹窗函数增加注释说明
This commit is contained in:
		
							parent
							
								
									02bb68f21f
								
							
						
					
					
						commit
						167bf51d4c
					
				|  | @ -351,18 +351,18 @@ void e2d::Window::setTypewritingEnabled(bool enabled) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool e2d::Window::popup(const String & text, const String & title, PopupStyle style, bool hasCancel) | bool e2d::Window::popup(const String & text, const String & title, Popup style, bool hasCancel) | ||||||
| { | { | ||||||
| 	UINT type = 0; | 	UINT type = 0; | ||||||
| 	switch (style) | 	switch (style) | ||||||
| 	{ | 	{ | ||||||
| 	case e2d::Window::PopupStyle::Information: | 	case e2d::Window::Popup::Information: | ||||||
| 		type = MB_ICONINFORMATION; | 		type = MB_ICONINFORMATION; | ||||||
| 		break; | 		break; | ||||||
| 	case e2d::Window::PopupStyle::Warning: | 	case e2d::Window::Popup::Warning: | ||||||
| 		type = MB_ICONWARNING; | 		type = MB_ICONWARNING; | ||||||
| 		break; | 		break; | ||||||
| 	case e2d::Window::PopupStyle::Error: | 	case e2d::Window::Popup::Error: | ||||||
| 		type = MB_ICONERROR; | 		type = MB_ICONERROR; | ||||||
| 		break; | 		break; | ||||||
| 	default: | 	default: | ||||||
|  |  | ||||||
|  | @ -79,7 +79,7 @@ public: | ||||||
| 	}; | 	}; | ||||||
| 
 | 
 | ||||||
| 	// 弹窗样式
 | 	// 弹窗样式
 | ||||||
| 	enum class PopupStyle : int | 	enum class Popup : int | ||||||
| 	{ | 	{ | ||||||
| 		Information,	/* 信息 */ | 		Information,	/* 信息 */ | ||||||
| 		Warning,		/* 警告 */ | 		Warning,		/* 警告 */ | ||||||
|  | @ -144,12 +144,13 @@ public: | ||||||
| 		bool enabled | 		bool enabled | ||||||
| 	); | 	); | ||||||
| 
 | 
 | ||||||
| 	// 뎐눗
 | 	// 弹出窗口
 | ||||||
|  | 	// 返回值:当窗口包含取消按钮时,返回值表示用户是否点击确认按钮
 | ||||||
| 	bool popup( | 	bool popup( | ||||||
| 		const String& text,							/* 눗왯코휭 */ | 		const String& text,					/* 窗口内容 */ | ||||||
| 		const String& title,						/* 눗왯깃痙 */ | 		const String& title,				/* 窗口标题 */ | ||||||
| 		PopupStyle style = PopupStyle::Information,	/* 뎐눗湳駕 */ | 		Popup style = Popup::Information,	/* 弹窗样式 */ | ||||||
| 		bool hasCancel = false						/* 관벵혤句객큐 */ | 		bool hasCancel = false				/* 包含取消按钮 */ | ||||||
| 	); | 	); | ||||||
| 
 | 
 | ||||||
| 	// 处理窗体消息
 | 	// 处理窗体消息
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue