global.cpp
来自「类似QQ的聊天软件源程序」· C++ 代码 · 共 26 行
CPP
26 行
#include "stdafx.h"
#include "global.h"
//
//// Load BMP by file path, & attch with the giving BMP pointer
//
void LoadBitmap(CString szName, CBitmap *pBmp)
{
pBmp->Attach((HBITMAP)LoadImage(NULL, szName, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE));
}
//
//// Get the running module's path
//
CString GetModulePath(void)
{
TCHAR exeFullPath[MAX_PATH];
CString strFilename ;
int nLen = GetModuleFileName(NULL, exeFullPath,MAX_PATH);
CString strPath(exeFullPath);
strPath = strPath.Left(strPath.ReverseFind('\\'));
return strPath;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?