?? window.h
字號:
// Window.h: interface for the CWindow class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WINDOW_H__68BACE00_E104_11D6_B0C2_00E04C391A51__INCLUDED_)
#define AFX_WINDOW_H__68BACE00_E104_11D6_B0C2_00E04C391A51__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//////////////////////////////////////////////////////////////////////
//Windows支持類(class CWindow)
class CWindow
{
public:
CWindow();
virtual ~CWindow();
// 以下代碼作者:0200950 原常青
void ShowWaitCursor();//顯示等待光標
void EndWaitCursor();//結束等待光標
void SetWindowCaption(char *Str,int v1=0,int v2=0,int v3=0);//設置窗口標題
static int ShowMessage(const char *msg,const char *title="提示",
UINT flage=MB_ICONINFORMATION);//顯示消息框
static bool InputStr(CString &Str);//打開選擇文件對話框,導入字符串
static bool OutputStr(CString &Str);//打開選擇文件對話框,導出字符串
static bool GetFolder(CString &Folder);//目錄選擇對話框
// 以下代碼作者:0201005 劉紅旗
static bool IsFileExist(const char *File);//檢查文件是否存在
static bool GetStrFromFile(char *Str,const char *File);//從文件中讀取字符串
static bool SaveStrToFile(const char *Str,const char *File);//保存字符串到文件中
static CString GetFileNameWithExt(const CString &File);//獲取文件名(帶擴展名)
static CString GetFileNameNoExt(const CString &File);//獲取文件名(無擴展名)
static CString GetExtName(const CString &File);//獲取擴展名
static CString GetPath(const CString &File);//獲取路徑
private:
CWnd wnd;//窗口類:指向當前活動窗口
CString caption;//保存窗口標題
};
#endif // !defined(AFX_WINDOW_H__68BACE00_E104_11D6_B0C2_00E04C391A51__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -