common_func.h
来自「一个功能强大的代码编辑器源代码」· C头文件 代码 · 共 21 行
H
21 行
#ifndef COMMON_FUNC_H
#define COMMON_FUNC_H
#include "windows.h"
// need this header for SHBrowseForFolder
#include <Shlobj.h>
void ClientToScreen(HWND hWnd, RECT* rect);
void ScreenToClient(HWND hWnd, RECT* rect);
void folderBrowser(HWND parent, int outputCtrlID);
// Set a call back with the handle after init to set the path.
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/callbackfunctions/browsecallbackproc.asp
static int __stdcall BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM, LPARAM pData)
{
if (uMsg == BFFM_INITIALIZED)
::SendMessage(hwnd, BFFM_SETSELECTION, TRUE, pData);
return 0;
};
#endif //COMMON_FUNC_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?