?? error.h
字號:
//+-----------------------------------------------------------------------------
//| Inclusion guard
//+-----------------------------------------------------------------------------
#ifndef MAGOS_ERROR_H
#define MAGOS_ERROR_H
//+-----------------------------------------------------------------------------
//| Included files
//+-----------------------------------------------------------------------------
#include "Constants.h"
//+-----------------------------------------------------------------------------
//| Constants
//+-----------------------------------------------------------------------------
CONST std::string DEFAULT_ERROR_MESSAGE = "An unknown error has occured!";
CONST std::string ERROR_MESSAGE_TITLE = "Error";
//+-----------------------------------------------------------------------------
//| Error class
//+-----------------------------------------------------------------------------
class ERROR_HANDLER
{
public:
CONSTRUCTOR ERROR_HANDLER();
DESTRUCTOR ~ERROR_HANDLER();
VOID ClearMessage();
VOID SetMessage(CONST std::string& NewMessage);
std::string GetMessage() CONST;
VOID DisplayMessage(HWND Window = NULL) CONST;
VOID DisplayMessageIfSet(HWND Window = NULL) CONST;
protected:
BOOL MessageSet;
std::string Message;
};
//+-----------------------------------------------------------------------------
//| Global objects
//+-----------------------------------------------------------------------------
extern ERROR_HANDLER Error;
//+-----------------------------------------------------------------------------
//| End of inclusion guard
//+-----------------------------------------------------------------------------
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -