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

📄 global.cpp

📁 类似QQ的聊天软件源程序
💻 CPP
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -