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

📄 helpprovider.h

📁 c+++ game uploading now
💻 H
字号:
/**
 @file
 A simple html based help, based on win32 ShellExecute.
*/
#if !defined _HELPPROVIDER_H_
#define _HELPPROVIDER_H_
#include <shellapi.h>
#include <windows.h>

namespace Win
{
    /** provides HTML based help, 
      (opens a HTML file from the current directory)*/
    class HelpProvider  
    {
    public:
        /**
         @param hwnd handle to the application window
         @param pszHelpFileName the filename of document to open */
        static void Open(HWND hwnd, PSTR pszHelpFileName)
        {
            TCHAR _szDir[MAX_PATH];
            ::GetCurrentDirectory(sizeof(_szDir), _szDir);
            ::ShellExecute(hwnd, "open", pszHelpFileName
                           ,NULL, _szDir, SW_RESTORE);
        }
    };
}
#endif //_HELPPROVIDER_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -