helpprovider.h

来自「c+++ game uploading now」· C头文件 代码 · 共 31 行

H
31
字号
/**
 @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 + =
减小字号Ctrl + -
显示快捷键?