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

📄 res.h

📁 This software performs code conversion of Chinese characters, including GB2312/GBK and BIG5. It a
💻 H
字号:
// res.h

#ifndef RES_H
#define RES_H

#ifdef __cplusplus
extern "C" {
#endif


HINSTANCE GetResourceInstance ( void ) ;
HINSTANCE SetResourceInstance ( HINSTANCE hNewInstance ) ;

int GetResourceLanguage ( void ) ;
int SetResourceLanguage ( int nLangId ) ;

HINSTANCE GetSatelliteResourceInstance ( void ) ;
HINSTANCE SetSatelliteResourceInstance ( HINSTANCE hNewInstance ) ;


#define LANGID_NEUTRAL     MAKELANGID ( LANG_NEUTRAL, SUBLANG_NEUTRAL )
#define LANGID_ENGLISH     MAKELANGID ( LANG_ENGLISH, SUBLANG_ENGLISH_US )
#define LANGID_JAPANESE    MAKELANGID ( LANG_JAPANESE, SUBLANG_DEFAULT )


int LoadStringExA ( int nId, char *szBuffer, int nBufferSize ) ;
int LoadStringExW ( int nId, wchar_t *szBuffer, int nBufferSize ) ;
const char *GetStringA ( int nId ) ;
const wchar_t *GetStringW ( int nId ) ;
char *GetStringAllocA ( int nId ) ;
wchar_t *GetStringAllocW ( int nId ) ;


HANDLE LoadImageEx ( int nId, int nType, int nX, int nY, unsigned long dwMode ) ;
HANDLE LoadSystemImage ( const void *nId, int nType, int nX, int nY, unsigned long dwMode ) ;

HICON LoadIconEx ( int nId ) ;
HICON LoadSystemIcon ( const void *nId ) ;


int GetDialogFontA ( int nTemplate, char *szFontName, int nBufferSize ) ;
int GetDialogFontW ( int nTemplate, wchar_t *szFontName, int nBufferSize ) ;
int GetDialogFontHeight ( int nTemplate ) ;

INT_PTR DialogBoxParamExA ( int nTemplate, HWND hWnd, DLGPROC pDialogProc, LPARAM lParam ) ;
INT_PTR DialogBoxParamExW ( int nTemplate, HWND hWnd, DLGPROC pDialogProc, LPARAM lParam ) ;
HWND CreateDialogParamExA ( int nTemplate, HWND hParent, DLGPROC pDialogProc, LPARAM lParam ) ;
HWND CreateDialogParamExW ( int nTemplate, HWND hParent, DLGPROC pDialogProc, LPARAM lParam ) ;

#define DialogBoxExA(t,w,p)      DialogBoxParamExA ( t, w, p, 0 )
#define DialogBoxExW(t,w,p)      DialogBoxParamExW ( t, w, p, 0 )
#define CreateDialogExA(t,w,p)   CreateDialogParamExA ( t, w, p, 0 )
#define CreateDialogExW(t,w,p)   CreateDialogParamExW ( t, w, p, 0 )


typedef struct {
   unsigned short wMajor ;
   unsigned short wMinor ;
   unsigned short wBuild ;
   unsigned short wPrivate ;
} FILEVERSION ;


int GetFileVersion ( FILEVERSION *pFileVersion ) ;
int TranslateVersionInfo ( const FILEVERSION *pFileVersion ) ;
int CompareFileVersion ( const FILEVERSION *pFileVersion1, const FILEVERSION *pFileVersion2 ) ;
int EnumVersionInfo ( int ( CALLBACK *Callback ) ( int nLevel, const wchar_t *szKey, const wchar_t *szValue, const long *pValue, size_t ValueLength, LPARAM lParam ), LPARAM lParam ) ;
const char *GetVersionCopyrightA ( void ) ;
const wchar_t *GetVersionCopyrightW ( void ) ;


#ifdef UNICODE
#define LoadStringEx LoadStringExW
#define GetString GetStringW
#define GetStringAlloc GetStringAllocW
#define GetDialogFont GetDialogFontW
#define DialogBoxParamEx DialogBoxParamExW
#define CreateDialogParamEx CreateDialogParamExW
#define DialogBoxEx DialogBoxExW
#define CreateDialogEx CreateDialogExW
#define GetVersionCopyright GetVersionCopyrightW
#else
#define LoadStringEx LoadStringExA
#define GetString GetStringA
#define GetStringAlloc GetStringAllocA
#define GetDialogFont GetDialogFontA
#define DialogBoxParamEx DialogBoxParamExA
#define CreateDialogParamEx CreateDialogParamExA
#define DialogBoxEx DialogBoxExA
#define CreateDialogEx CreateDialogExA
#define GetVersionCopyright GetVersionCopyrightA
#endif


#ifdef __cplusplus
}
#endif

#endif


⌨️ 快捷键说明

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