📄 sendmsg.h
字号:
#define ListBox_InsertString ListBox_InsertStringA
#define ListBox_GetText ListBox_GetTextA
#define ListBox_GetTextLen ListBox_GetTextLenA
#endif
#define Dlg_ListBox_AddStringA(hDlg,nId,szString) ListBox_AddStringA(GetDlgItem(hDlg,nId),szString)
#define Dlg_ListBox_AddStringW(hDlg,nId,szString) ListBox_AddStringW(GetDlgItem(hDlg,nId),szString)
#define Dlg_ListBox_InsertStringA(hDlg,nId,nIndex,szString) ListBox_InsertStringA(GetDlgItem(hDlg,nId),nIndex,szString)
#define Dlg_ListBox_InsertStringW(hDlg,nId,nIndex,szString) ListBox_InsertStringW(GetDlgItem(hDlg,nId),nIndex,szString)
#define Dlg_ListBox_ResetContent(hDlg,nId) ListBox_ResetContent(GetDlgItem(hDlg,nId))
#define Dlg_ListBox_GetCurSel(hDlg,nId) ListBox_GetCurSel(GetDlgItem(hDlg,nId))
#define Dlg_ListBox_SetCurSel(hDlg,nId,nIndex) ListBox_SetCurSel(GetDlgItem(hDlg,nId),nIndex)
#define Dlg_ListBox_GetTextA(hDlg,nId,nIndex,szString) ListBox_GetTextA(GetDlgItem(hDlg,nId),nIndex,szString)
#define Dlg_ListBox_GetTextW(hDlg,nId,nIndex,szString) ListBox_GetTextW(GetDlgItem(hDlg,nId),nIndex,szString)
#define Dlg_ListBox_GetTextLenA(hDlg,nId,nIndex) ListBox_GetTextLenA(GetDlgItem(hDlg,nId),nIndex)
#define Dlg_ListBox_GetTextLenW(hDlg,nId,nIndex) ListBox_GetTextLenW(GetDlgItem(hDlg,nId),nIndex)
#ifdef UNICODE
#define Dlg_ListBox_AddString Dlg_ListBox_AddStringW
#define Dlg_ListBox_InsertString Dlg_ListBox_InsertStringW
#define Dlg_ListBox_GetText Dlg_ListBox_GetTextW
#define Dlg_ListBox_GetTextLen Dlg_ListBox_GetTextLenW
#else
#define Dlg_ListBox_AddString Dlg_ListBox_AddStringA
#define Dlg_ListBox_InsertString Dlg_ListBox_InsertStringA
#define Dlg_ListBox_GetText Dlg_ListBox_GetTextA
#define Dlg_ListBox_GetTextLen Dlg_ListBox_GetTextLenA
#endif
////////////////////////////////////////
// 僾儘僌儗僗僐儞僩儘乕儖 //
////////////////////////////////////////
int ProgressCtrl_SetRange ( HWND hWnd, short nMin, short nMax ) ;
int ProgressCtrl_SetStep ( HWND hWnd, int nStep ) ;
int ProgressCtrl_SetPos ( HWND hWnd, int nPos ) ;
int ProgressCtrl_StepIt ( HWND hWnd ) ;
#define Dlg_ProgressCtrl_SetRange(hDlg,nId,nMin,nMax) ProgressCtrl_SetRange(GetDlgItem(hDlg,nId),nMin,nMax)
#define Dlg_ProgressCtrl_SetStep(hDlg,nId,nStep) ProgressCtrl_SetStep(GetDlgItem(hDlg,nId),nStep)
#define Dlg_ProgressCtrl_SetPos(hDlg,nId,nPos) ProgressCtrl_SetPos(GetDlgItem(hDlg,nId),nPos)
#define Dlg_ProgressCtrl_StepIt(hDlg,nId) ProgressCtrl_StepIt(GetDlgItem(hDlg,nId))
////////////////////////////////////////
// 僣乕儖僶乕 //
////////////////////////////////////////
#if _WIN32_IE < 0x0400
#define TBIF_IMAGE 0x00000001
#define TBIF_TEXT 0x00000002
#define TBIF_STATE 0x00000004
#define TBIF_STYLE 0x00000008
#define TBIF_LPARAM 0x00000010
#define TBIF_COMMAND 0x00000020
#define TBIF_SIZE 0x00000040
typedef struct {
UINT cbSize ;
DWORD dwMask ;
int idCommand ;
int iImage ;
BYTE fsState ;
BYTE fsStyle ;
WORD cx ;
DWORD_PTR lParam ;
LPSTR pszText ;
int cchText ;
} TBBUTTONINFOA, *LPTBBUTTONINFOA ;
typedef struct {
UINT cbSize ;
DWORD dwMask ;
int idCommand ;
int iImage ;
BYTE fsState ;
BYTE fsStyle ;
WORD cx ;
DWORD_PTR lParam ;
LPWSTR pszText ;
int cchText ;
} TBBUTTONINFOW, *LPTBBUTTONINFOW ;
#ifdef UNICODE
#define TBBUTTONINFO TBBUTTONINFOW
#define LPTBBUTTONINFO LPTBBUTTONINFOW
#else
#define TBBUTTONINFO TBBUTTONINFOA
#define LPTBBUTTONINFO LPTBBUTTONINFOA
#endif
#endif
int ToolBar_ButtonCount ( HWND hWnd ) ;
int ToolBar_GetButton ( HWND hWnd, int nIndex, TBBUTTON *pButton ) ;
int ToolBar_GetButtonInfoA ( HWND hWnd, int nCommandId, TBBUTTONINFOA *pButtonInfo ) ;
int ToolBar_GetButtonInfoW ( HWND hWnd, int nCommandId, TBBUTTONINFOW *pButtonInfo ) ;
#ifdef UNICODE
#define ToolBar_GetButtonInfo ToolBar_GetButtonInfoW
#else
#define ToolBar_GetButtonInfo ToolBar_GetButtonInfoA
#endif
////////////////////////////////////////
// 儊僢僙乕僕儃僢僋僗乮彂幃晅偒乯 //
////////////////////////////////////////
int __cdecl MessageBoxFormatA ( HWND hWnd, const char *szCaption, unsigned int uType, const char *format,... ) ;
int __cdecl MessageBoxFormatW ( HWND hWnd, const wchar_t *szCaption, unsigned int uType, const wchar_t *format,... ) ;
#ifdef UNICODE
#define MessageBoxFormat MessageBoxFormatW
#else
#define MessageBoxFormat MessageBoxFormatA
#endif
////////////////////////////////////////
// 僂傿儞僪僂憖嶌堦斒乮彂幃晅偒乯 //
////////////////////////////////////////
int __cdecl Wm_SetTextFormatA ( HWND hWnd, const char *format,... ) ;
int __cdecl Wm_SetTextFormatW ( HWND hWnd, const wchar_t *format,... ) ;
int __cdecl Dlg_Wm_SetTextFormatA ( HWND hDlg, int nId, const char *format,... ) ;
int __cdecl Dlg_Wm_SetTextFormatW ( HWND hDlg, int nId, const wchar_t *format,... ) ;
#ifdef UNICODE
#define Wm_SetTextFormat Wm_SetTextFormatW
#define Dlg_Wm_SetTextFormat Dlg_Wm_SetTextFormatW
#else
#define Wm_SetTextFormat Wm_SetTextFormatA
#define Dlg_Wm_SetTextFormat Dlg_Wm_SetTextFormatA
#endif
////////////////////////////////////////
// 僐儞儃儃僢僋僗乮彂幃晅偒乯 //
////////////////////////////////////////
int __cdecl ComboBox_AddStringFormatA ( HWND hWnd, const char *format,... ) ;
int __cdecl ComboBox_AddStringFormatW ( HWND hWnd, const wchar_t *format,... ) ;
int __cdecl ComboBox_InsertStringFormatA ( HWND hWnd, int nIndex, const char *format,... ) ;
int __cdecl ComboBox_InsertStringFormatW ( HWND hWnd, int nIndex, const wchar_t *format,... ) ;
int __cdecl Dlg_ComboBox_AddStringFormatA ( HWND hDlg, int nId, const char *format,... ) ;
int __cdecl Dlg_ComboBox_AddStringFormatW ( HWND hDlg, int nId, const wchar_t *format,... ) ;
int __cdecl Dlg_ComboBox_InsertStringFormatA ( HWND hDlg, int nId, int nIndex, const char *format,... ) ;
int __cdecl Dlg_ComboBox_InsertStringFormatW ( HWND hDlg, int nId, int nIndex, const wchar_t *format,... ) ;
#ifdef UNICODE
#define ComboBox_AddStringFormat ComboBox_AddStringFormatW
#define ComboBox_InsertStringFormat ComboBox_InsertStringFormatW
#define Dlg_ComboBox_AddStringFormat Dlg_ComboBox_AddStringFormatW
#define Dlg_ComboBox_InsertStringFormat Dlg_ComboBox_InsertStringFormatW
#else
#define ComboBox_AddStringFormat ComboBox_AddStringFormatA
#define ComboBox_InsertStringFormat ComboBox_InsertStringFormatA
#define Dlg_ComboBox_AddStringFormat Dlg_ComboBox_AddStringFormatA
#define Dlg_ComboBox_InsertStringFormat Dlg_ComboBox_InsertStringFormatA
#endif
////////////////////////////////////////
// 儕僗僩儃僢僋僗乮彂幃晅偒乯 //
////////////////////////////////////////
int __cdecl ListBox_AddStringFormatA ( HWND hWnd, const char *format,... ) ;
int __cdecl ListBox_AddStringFormatW ( HWND hWnd, const wchar_t *format,... ) ;
int __cdecl ListBox_InsertStringFormatA ( HWND hWnd, int nIndex, const char *format,... ) ;
int __cdecl ListBox_InsertStringFormatW ( HWND hWnd, int nIndex, const wchar_t *format,... ) ;
int __cdecl Dlg_ListBox_AddStringFormatA ( HWND hDlg, int nId, const char *format,... ) ;
int __cdecl Dlg_ListBox_AddStringFormatW ( HWND hDlg, int nId, const wchar_t *format,... ) ;
int __cdecl Dlg_ListBox_InsertStringFormatA ( HWND hDlg, int nId, int nIndex, const char *format,... ) ;
int __cdecl Dlg_ListBox_InsertStringFormatW ( HWND hDlg, int nId, int nIndex, const wchar_t *format,... ) ;
#ifdef UNICODE
#define ListBox_AddStringFormat ListBox_AddStringFormatW
#define ListBox_InsertStringFormat ListBox_InsertStringFormatW
#define Dlg_ListBox_AddStringFormat Dlg_ListBox_AddStringFormatW
#define Dlg_ListBox_InsertStringFormat Dlg_ListBox_InsertStringFormatW
#else
#define ListBox_AddStringFormat ListBox_AddStringFormatA
#define ListBox_InsertStringFormat ListBox_InsertStringFormatA
#define Dlg_ListBox_AddStringFormat Dlg_ListBox_AddStringFormatA
#define Dlg_ListBox_InsertStringFormat Dlg_ListBox_InsertStringFormatA
#endif
WNDPROC SetWindowProcA ( HWND hWnd, WNDPROC WndProc ) ;
WNDPROC SetWindowProcW ( HWND hWnd, WNDPROC WndProc ) ;
WNDPROC GetWindowProcA ( HWND hWnd ) ;
WNDPROC GetWindowProcW ( HWND hWnd ) ;
int SetDlgMsgResult ( HWND hWnd, LRESULT lResult ) ;
#ifdef UNICODE
#define SetWindowProc SetWindowProcW
#define GetWindowProc GetWindowProcW
#else
#define SetWindowProc SetWindowProcA
#define GetWindowProc GetWindowProcA
#endif
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -