JwaWinUser.pas
资源名称:win32api.zip [点击查看]
上传用户:davidchvip
上传日期:2009-07-28
资源大小:1749k
文件大小:670k
源码类别:
Windows编程
开发平台:
Delphi
- // original NT 32 bit dialog template:
- //
- type
- DLGTEMPLATE = packed record
- style: DWORD;
- dwExtendedStyle: DWORD;
- cdit: WORD;
- x: short;
- y: short;
- cx: short;
- cy: short;
- end;
- {$EXTERNALSYM DLGTEMPLATE}
- TDlgTemplate = DLGTEMPLATE;
- LPDLGTEMPLATEA = ^DLGTEMPLATE;
- {$EXTERNALSYM LPDLGTEMPLATEA}
- LPDLGTEMPLATEW = ^DLGTEMPLATE;
- {$EXTERNALSYM LPDLGTEMPLATEW}
- LPCDLGTEMPLATEA = ^DLGTEMPLATE;
- {$EXTERNALSYM LPCDLGTEMPLATEA}
- LPCDLGTEMPLATEW = ^DLGTEMPLATE;
- {$EXTERNALSYM LPCDLGTEMPLATEW}
- {$IFDEF UNICODE}
- LPDLGTEMPLATE = LPDLGTEMPLATEW;
- {$EXTERNALSYM LPDLGTEMPLATE}
- LPCDLGTEMPLATE = LPCDLGTEMPLATEW;
- {$EXTERNALSYM LPCDLGTEMPLATE}
- {$ELSE}
- LPDLGTEMPLATE = LPDLGTEMPLATEA;
- {$EXTERNALSYM LPDLGTEMPLATE}
- LPCDLGTEMPLATE = LPCDLGTEMPLATEA;
- {$EXTERNALSYM LPCDLGTEMPLATE}
- {$ENDIF}
- //
- // 32 bit Dialog item template.
- //
- DLGITEMTEMPLATE = packed record
- style: DWORD;
- dwExtendedStyle: DWORD;
- x: short;
- y: short;
- cx: short;
- cy: short;
- id: WORD;
- end;
- {$EXTERNALSYM DLGITEMTEMPLATE}
- TDlgItemTemplate = DLGITEMTEMPLATE;
- PDLGITEMTEMPLATEA = ^DLGITEMTEMPLATE;
- {$EXTERNALSYM PDLGITEMTEMPLATE}
- PDLGITEMTEMPLATEW = ^DLGITEMTEMPLATE;
- {$EXTERNALSYM PDLGITEMTEMPLATE}
- LPDLGITEMTEMPLATEA = ^DLGITEMTEMPLATE;
- {$EXTERNALSYM LPDLGITEMTEMPLATE}
- LPDLGITEMTEMPLATEW = ^DLGITEMTEMPLATE;
- {$EXTERNALSYM LPDLGITEMTEMPLATE}
- {$IFDEF UNICODE}
- PDLGITEMTEMPLATE = PDLGITEMTEMPLATEW;
- {$EXTERNALSYM PDLGITEMTEMPLATE}
- LPDLGITEMTEMPLATE = PDLGITEMTEMPLATEW;
- {$EXTERNALSYM LPDLGITEMTEMPLATE}
- {$ELSE}
- PDLGITEMTEMPLATE = PDLGITEMTEMPLATEA;
- {$EXTERNALSYM PDLGITEMTEMPLATE}
- LPDLGITEMTEMPLATE = PDLGITEMTEMPLATEA;
- {$EXTERNALSYM LPDLGITEMTEMPLATE}
- {$ENDIF}
- // #include <poppack.h> // Resume normal packing//
- function CreateDialogParamA(hInstance: HINSTANCE; lpTemplateName: LPCSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogParamA}
- function CreateDialogParamW(hInstance: HINSTANCE; lpTemplateName: LPCWSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogParamW}
- {$IFDEF UNICODE}
- function CreateDialogParam(hInstance: HINSTANCE; lpTemplateName: LPCWSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogParam}
- {$ELSE}
- function CreateDialogParam(hInstance: HINSTANCE; lpTemplateName: LPCSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogParam}
- {$ENDIF}
- function CreateDialogIndirectParamA(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogIndirectParamA}
- function CreateDialogIndirectParamW(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogIndirectParamW}
- {$IFDEF UNICODE}
- function CreateDialogIndirectParam(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogIndirectParam}
- {$ELSE}
- function CreateDialogIndirectParam(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): HWND; stdcall;
- {$EXTERNALSYM CreateDialogIndirectParam}
- {$ENDIF}
- function CreateDialogA(hInstance: HINSTANCE; lpName: LPCSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialogA}
- function CreateDialogW(hInstance: HINSTANCE; lpName: LPCWSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialogW}
- {$IFDEF UNICODE}
- function CreateDialog(hInstance: HINSTANCE; lpName: LPCWSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialog}
- {$ELSE}
- function CreateDialog(hInstance: HINSTANCE; lpName: LPCSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialog}
- {$ENDIF}
- function CreateDialogIndirectA(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialogIndirectA}
- function CreateDialogIndirectW(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialogIndirectW}
- {$IFDEF UNICODE}
- function CreateDialogIndirect(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialogIndirect}
- {$ELSE}
- function CreateDialogIndirect(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): HWND;
- {$EXTERNALSYM CreateDialogIndirect}
- {$ENDIF}
- function DialogBoxParamA(hInstance: HINSTANCE; lpTemplateName: LPCSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxParamA}
- function DialogBoxParamW(hInstance: HINSTANCE; lpTemplateName: LPCWSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxParamW}
- {$IFDEF UNICODE}
- function DialogBoxParam(hInstance: HINSTANCE; lpTemplateName: LPCWSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxParam}
- {$ELSE}
- function DialogBoxParam(hInstance: HINSTANCE; lpTemplateName: LPCSTR;
- hWndParent: HWND; lpDialogFunc: DLGPROC; dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxParam}
- {$ENDIF}
- function DialogBoxIndirectParamA(hInstance: HINSTANCE;
- const hDialogTemplate: DLGTEMPLATE; hWndParent: HWND; lpDialogFunc: DLGPROC;
- dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxIndirectParamA}
- function DialogBoxIndirectParamW(hInstance: HINSTANCE;
- const hDialogTemplate: DLGTEMPLATE; hWndParent: HWND; lpDialogFunc: DLGPROC;
- dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxIndirectParamW}
- {$IFDEF UNICODE}
- function DialogBoxIndirectParam(hInstance: HINSTANCE;
- const hDialogTemplate: DLGTEMPLATE; hWndParent: HWND; lpDialogFunc: DLGPROC;
- dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxIndirectParam}
- {$ELSE}
- function DialogBoxIndirectParam(hInstance: HINSTANCE;
- const hDialogTemplate: DLGTEMPLATE; hWndParent: HWND; lpDialogFunc: DLGPROC;
- dwInitParam: LPARAM): INT_PTR; stdcall;
- {$EXTERNALSYM DialogBoxIndirectParam}
- {$ENDIF}
- function DialogBoxA(hInstance: HINSTANCE; lpTemplate: LPCSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBoxA}
- function DialogBoxW(hInstance: HINSTANCE; lpTemplate: LPCWSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBoxW}
- {$IFDEF UNICODE}
- function DialogBox(hInstance: HINSTANCE; lpTemplate: LPCWSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBox}
- {$ELSE}
- function DialogBox(hInstance: HINSTANCE; lpTemplate: LPCSTR; hWndParent: HWND;
- lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBox}
- {$ENDIF}
- function DialogBoxIndirectA(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBoxIndirectA}
- function DialogBoxIndirectW(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBoxIndirectW}
- {$IFDEF UNICODE}
- function DialogBoxIndirect(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBoxIndirect}
- {$ELSE}
- function DialogBoxIndirect(hInstance: HINSTANCE; const lpTemplate: DLGTEMPLATE;
- hWndParent: HWND; lpDialogFunc: DLGPROC): INT_PTR;
- {$EXTERNALSYM DialogBoxIndirect}
- {$ENDIF}
- function EndDialog(hDlg: HWND; nResult: INT_PTR): BOOL; stdcall;
- {$EXTERNALSYM EndDialog}
- function GetDlgItem(hDlg: HWND; nIDDlgItem: Integer): HWND; stdcall;
- {$EXTERNALSYM GetDlgItem}
- function SetDlgItemInt(hDlg: HWND; nIDDlgItem: Integer; uValue: UINT; bSigned: BOOL): BOOL; stdcall;
- {$EXTERNALSYM SetDlgItemInt}
- function GetDlgItemInt(hDlg: HWND; nIDDlgItem: Integer; lpTranslated: LPBOOL;
- bSigned: BOOL): UINT; stdcall;
- {$EXTERNALSYM GetDlgItemInt}
- function SetDlgItemTextA(hDlg: HWND; nIDDlgItem: Integer; lpString: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM SetDlgItemTextA}
- function SetDlgItemTextW(hDlg: HWND; nIDDlgItem: Integer; lpString: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM SetDlgItemTextW}
- {$IFDEF UNICODE}
- function SetDlgItemText(hDlg: HWND; nIDDlgItem: Integer; lpString: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM SetDlgItemText}
- {$ELSE}
- function SetDlgItemText(hDlg: HWND; nIDDlgItem: Integer; lpString: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM SetDlgItemText}
- {$ENDIF}
- function GetDlgItemTextA(hDlg: HWND; nIDDlgItem: Integer; lpString: LPSTR;
- nMaxCount: Integer): UINT; stdcall;
- {$EXTERNALSYM GetDlgItemTextA}
- function GetDlgItemTextW(hDlg: HWND; nIDDlgItem: Integer; lpString: LPWSTR;
- nMaxCount: Integer): UINT; stdcall;
- {$EXTERNALSYM GetDlgItemTextW}
- {$IFDEF UNICODE}
- function GetDlgItemText(hDlg: HWND; nIDDlgItem: Integer; lpString: LPWSTR;
- nMaxCount: Integer): UINT; stdcall;
- {$EXTERNALSYM GetDlgItemText}
- {$ELSE}
- function GetDlgItemText(hDlg: HWND; nIDDlgItem: Integer; lpString: LPSTR;
- nMaxCount: Integer): UINT; stdcall;
- {$EXTERNALSYM GetDlgItemText}
- {$ENDIF}
- function CheckDlgButton(hDlg: HWND; nIDButton: Integer; uCheck: UINT): BOOL; stdcall;
- {$EXTERNALSYM CheckDlgButton}
- function CheckRadioButton(hDlg: HWND; nIDFirstButton, nIDLastButton: Integer;
- nIDCheckButton: Integer): BOOL; stdcall;
- {$EXTERNALSYM CheckRadioButton}
- function IsDlgButtonChecked(hDlg: HWND; nIDButton: Integer): UINT; stdcall;
- {$EXTERNALSYM IsDlgButtonChecked}
- function SendDlgItemMessageA(hDlg: HWND; nIDDlgItem: Integer; Msg: UINT;
- wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM SendDlgItemMessageA}
- function SendDlgItemMessageW(hDlg: HWND; nIDDlgItem: Integer; Msg: UINT;
- wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM SendDlgItemMessageW}
- {$IFDEF UNICODE}
- function SendDlgItemMessage(hDlg: HWND; nIDDlgItem: Integer; Msg: UINT;
- wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM SendDlgItemMessage}
- {$ELSE}
- function SendDlgItemMessage(hDlg: HWND; nIDDlgItem: Integer; Msg: UINT;
- wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM SendDlgItemMessage}
- {$ENDIF}
- function GetNextDlgGroupItem(hDlg: HWND; hCtl: HWND; bPrevious: BOOL): HWND; stdcall;
- {$EXTERNALSYM GetNextDlgGroupItem}
- function GetNextDlgTabItem(hDlg: HWND; hCtl: HWND; bPrevious: BOOL): HWND; stdcall;
- {$EXTERNALSYM GetNextDlgTabItem}
- function GetDlgCtrlID(hWnd: HWND): Integer; stdcall;
- {$EXTERNALSYM GetDlgCtrlID}
- function GetDialogBaseUnits: Longint; stdcall;
- {$EXTERNALSYM GetDialogBaseUnits(VOID v)}
- function DefDlgProcA(hDlg: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM DefDlgProcA}
- function DefDlgProcW(hDlg: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM DefDlgProcW}
- {$IFDEF UNICODE}
- function DefDlgProc(hDlg: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM DefDlgProc}
- {$ELSE}
- function DefDlgProc(hDlg: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM DefDlgProc}
- {$ENDIF}
- //
- // Window extra byted needed for private dialog classes.
- //
- const
- DLGWINDOWEXTRA = 30;
- {$EXTERNALSYM DLGWINDOWEXTRA}
- function CallMsgFilterA(lpMsg: LPMSG; nCode: Integer): BOOL; stdcall;
- {$EXTERNALSYM CallMsgFilterA}
- function CallMsgFilterW(lpMsg: LPMSG; nCode: Integer): BOOL; stdcall;
- {$EXTERNALSYM CallMsgFilterW}
- {$IFDEF UNICODE}
- function CallMsgFilter(lpMsg: LPMSG; nCode: Integer): BOOL; stdcall;
- {$EXTERNALSYM CallMsgFilter}
- {$ELSE}
- function CallMsgFilter(lpMsg: LPMSG; nCode: Integer): BOOL; stdcall;
- {$EXTERNALSYM CallMsgFilter}
- {$ENDIF}
- //
- // Clipboard Manager Functions
- //
- function OpenClipboard(hWndNewOwner: HWND): BOOL; stdcall;
- {$EXTERNALSYM OpenClipboard}
- function CloseClipboard: BOOL; stdcall;
- {$EXTERNALSYM CloseClipboard}
- function GetClipboardSequenceNumber: DWORD; stdcall;
- {$EXTERNALSYM GetClipboardSequenceNumber}
- function GetClipboardOwner: HWND; stdcall;
- {$EXTERNALSYM GetClipboardOwner}
- function SetClipboardViewer(hWndNewViewer: HWND): HWND; stdcall;
- {$EXTERNALSYM SetClipboardViewer}
- function GetClipboardViewer: HWND; stdcall;
- {$EXTERNALSYM GetClipboardViewer}
- function ChangeClipboardChain(hWndRemove, hWndNewNext: HWND): BOOL; stdcall;
- {$EXTERNALSYM ChangeClipboardChain}
- function SetClipboardData(uFormat: UINT; hMem: HANDLE): HANDLE; stdcall;
- {$EXTERNALSYM SetClipboardData}
- function GetClipboardData(uFormat: UINT): HANDLE; stdcall;
- {$EXTERNALSYM GetClipboardData}
- function RegisterClipboardFormatA(lpszFormat: LPCSTR): UINT; stdcall;
- {$EXTERNALSYM RegisterClipboardFormatA}
- function RegisterClipboardFormatW(lpszFormat: LPCWSTR): UINT; stdcall;
- {$EXTERNALSYM RegisterClipboardFormatW}
- {$IFDEF UNICODE}
- function RegisterClipboardFormat(lpszFormat: LPCWSTR): UINT; stdcall;
- {$EXTERNALSYM RegisterClipboardFormat}
- {$ELSE}
- function RegisterClipboardFormat(lpszFormat: LPCSTR): UINT; stdcall;
- {$EXTERNALSYM RegisterClipboardFormat}
- {$ENDIF}
- function CountClipboardFormats: Integer; stdcall;
- {$EXTERNALSYM CountClipboardFormats}
- function EnumClipboardFormats(format: UINT): UINT; stdcall;
- {$EXTERNALSYM EnumClipboardFormats}
- function GetClipboardFormatNameA(format: UINT; lpszFormatName: LPSTR;
- cchMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClipboardFormatNameA}
- function GetClipboardFormatNameW(format: UINT; lpszFormatName: LPWSTR;
- cchMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClipboardFormatNameW}
- {$IFDEF UNICODE}
- function GetClipboardFormatName(format: UINT; lpszFormatName: LPWSTR;
- cchMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClipboardFormatName}
- {$ELSE}
- function GetClipboardFormatName(format: UINT; lpszFormatName: LPSTR;
- cchMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClipboardFormatName}
- {$ENDIF}
- function EmptyClipboard: BOOL; stdcall;
- {$EXTERNALSYM EmptyClipboard}
- function IsClipboardFormatAvailable(format: UINT): BOOL; stdcall;
- {$EXTERNALSYM IsClipboardFormatAvailable}
- function GetPriorityClipboardFormat(paFormatPriorityList: PUINT; cFormats: Integer): Integer; stdcall;
- {$EXTERNALSYM GetPriorityClipboardFormat}
- function GetOpenClipboardWindow: HWND; stdcall;
- {$EXTERNALSYM GetOpenClipboardWindow}
- //
- // Character Translation Routines
- //
- function CharToOemA(lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM CharToOemA}
- function CharToOemW(lpszSrc: LPCWSTR; lpszDst: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM CharToOemW}
- {$IFDEF UNICODE}
- function CharToOem(lpszSrc: LPCWSTR; lpszDst: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM CharToOem}
- {$ELSE}
- function CharToOem(lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM CharToOem}
- {$ENDIF}
- function OemToCharA(lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM OemToCharA}
- function OemToCharW(lpszSrc: LPCSTR; lpszDst: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM OemToCharW}
- {$IFDEF UNICODE}
- function OemToChar(lpszSrc: LPCSTR; lpszDst: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM OemToChar}
- {$ELSE}
- function OemToChar(lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM OemToChar}
- {$ENDIF}
- function CharToOemBuffA(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM CharToOemBuffA}
- function CharToOemBuffW(lpszSrc: LPCWSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM CharToOemBuffW}
- {$IFDEF UNICODE}
- function CharToOemBuff(lpszSrc: LPCWSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM CharToOemBuff}
- {$ELSE}
- function CharToOemBuff(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM CharToOemBuff}
- {$ENDIF}
- function OemToCharBuffA(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM OemToCharBuffA}
- function OemToCharBuffW(lpszSrc: LPCSTR; lpszDst: LPWSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM OemToCharBuffW}
- {$IFDEF UNICODE}
- function OemToCharBuff(lpszSrc: LPCSTR; lpszDst: LPWSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM OemToCharBuff}
- {$ELSE}
- function OemToCharBuff(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
- {$EXTERNALSYM OemToCharBuff}
- {$ENDIF}
- function CharUpperA(lpsz: LPSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharUpperA}
- function CharUpperW(lpsz: LPWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharUpperW}
- {$IFDEF UNICODE}
- function CharUpper(lpsz: LPWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharUpper}
- {$ELSE}
- function CharUpper(lpsz: LPSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharUpper}
- {$ENDIF}
- function CharUpperBuffA(lpsz: LPSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharUpperBuffA}
- function CharUpperBuffW(lpsz: LPWSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharUpperBuffW}
- {$IFDEF UNICODE}
- function CharUpperBuff(lpsz: LPWSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharUpperBuff}
- {$ELSE}
- function CharUpperBuff(lpsz: LPSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharUpperBuff}
- {$ENDIF}
- function CharLowerA(lpsz: LPSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharLowerA}
- function CharLowerW(lpsz: LPWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharLowerW}
- {$IFDEF UNICODE}
- function CharLower(lpsz: LPWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharLower}
- {$ELSE}
- function CharLower(lpsz: LPSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharLower}
- {$ENDIF}
- function CharLowerBuffA(lpsz: LPSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharLowerBuffA}
- function CharLowerBuffW(lpsz: LPWSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharLowerBuffW}
- {$IFDEF UNICODE}
- function CharLowerBuff(lpsz: LPWSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharLowerBuff}
- {$ELSE}
- function CharLowerBuff(lpsz: LPSTR; cchLength: DWORD): DWORD; stdcall;
- {$EXTERNALSYM CharLowerBuff}
- {$ENDIF}
- function CharNextA(lpsz: LPCSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharNextA}
- function CharNextW(lpsz: LPCWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharNextW}
- {$IFDEF UNICODE}
- function CharNext(lpsz: LPCWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharNext}
- {$ELSE}
- function CharNext(lpsz: LPCSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharNext}
- {$ENDIF}
- function CharPrevA(lpszStart: LPCSTR; lpszCurrent: LPCSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharPrevA}
- function CharPrevW(lpszStart: LPCWSTR; lpszCurrent: LPCWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharPrevW}
- {$IFDEF UNICODE}
- function CharPrev(lpszStart: LPCWSTR; lpszCurrent: LPCWSTR): LPWSTR; stdcall;
- {$EXTERNALSYM CharPrev}
- {$ELSE}
- function CharPrev(lpszStart: LPCSTR; lpszCurrent: LPCSTR): LPSTR; stdcall;
- {$EXTERNALSYM CharPrev}
- {$ENDIF}
- function CharNextExA(CodePage: WORD; lpCurrentChar: LPCSTR; dwFlags: DWORD): LPSTR; stdcall;
- {$EXTERNALSYM CharNextExA}
- function CharPrevExA(CodePage: WORD; lpStart, lpCurrentChar: LPCSTR; dwFlags: DWORD): LPSTR; stdcall;
- {$EXTERNALSYM CharPrevExA}
- //
- // Compatibility defines for character translation routines
- //
- function AnsiToOem(lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL;
- {$EXTERNALSYM AnsiToOem}
- function OemToAnsi(lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL;
- {$EXTERNALSYM OemToAnsi}
- function AnsiToOemBuff(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL;
- {$EXTERNALSYM AnsiToOemBuff}
- function OemToAnsiBuff(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL;
- {$EXTERNALSYM OemToAnsiBuff}
- function AnsiUpper(lpsz: LPSTR): LPSTR;
- {$EXTERNALSYM AnsiUpper}
- function AnsiUpperBuff(lpsz: LPSTR; cchLength: DWORD): DWORD;
- {$EXTERNALSYM AnsiUpperBuff}
- function AnsiLower(lpsz: LPSTR): LPSTR;
- {$EXTERNALSYM AnsiLower}
- function AnsiLowerBuff(lpsz: LPSTR; cchLength: DWORD): DWORD;
- {$EXTERNALSYM AnsiLowerBuff}
- function AnsiNext(lpsz: LPCSTR): LPSTR;
- {$EXTERNALSYM AnsiNext}
- function AnsiPrev(lpszStart: LPCSTR; lpszCurrent: LPCSTR): LPSTR;
- {$EXTERNALSYM AnsiPrev}
- //
- // Language dependent Routines
- //
- function IsCharAlphaA(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlphaA}
- function IsCharAlphaW(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlphaW}
- {$IFDEF UNICODE}
- function IsCharAlpha(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlpha}
- {$ELSE}
- function IsCharAlpha(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlpha}
- {$ENDIF}
- function IsCharAlphaNumericA(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlphaNumericA}
- function IsCharAlphaNumericW(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlphaNumericW}
- {$IFDEF UNICODE}
- function IsCharAlphaNumeric(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlphaNumeric}
- {$ELSE}
- function IsCharAlphaNumeric(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharAlphaNumeric}
- {$ENDIF}
- function IsCharUpperA(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharUpperA}
- function IsCharUpperW(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharUpperW}
- {$IFDEF UNICODE}
- function IsCharUpper(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharUpper}
- {$ELSE}
- function IsCharUpper(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharUpper}
- {$ENDIF}
- function IsCharLowerA(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharLowerA}
- function IsCharLowerW(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharLowerW}
- {$IFDEF UNICODE}
- function IsCharLower(ch: WCHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharLower}
- {$ELSE}
- function IsCharLower(ch: CHAR): BOOL; stdcall;
- {$EXTERNALSYM IsCharLower}
- {$ENDIF}
- function SetFocus(hWnd: HWND): HWND; stdcall;
- {$EXTERNALSYM SetFocus}
- function GetActiveWindow: HWND; stdcall;
- {$EXTERNALSYM GetActiveWindow}
- function GetFocus: HWND; stdcall;
- {$EXTERNALSYM GetFocus}
- function GetKBCodePage: UINT; stdcall;
- {$EXTERNALSYM GetKBCodePage}
- function GetKeyState(nVirtKey: Integer): SHORT; stdcall;
- {$EXTERNALSYM GetKeyState}
- function GetAsyncKeyState(vKey: Integer): SHORT; stdcall;
- {$EXTERNALSYM GetAsyncKeyState}
- function GetKeyboardState(lpKeyState: LPBYTE): BOOL; stdcall;
- {$EXTERNALSYM GetKeyboardState}
- function SetKeyboardState(lpKeyState: LPBYTE): BOOL; stdcall;
- {$EXTERNALSYM SetKeyboardState}
- function GetKeyNameTextA(lParam: LONG; lpString: LPSTR; nSize: Integer): Integer; stdcall;
- {$EXTERNALSYM GetKeyNameTextA}
- function GetKeyNameTextW(lParam: LONG; lpString: LPWSTR; nSize: Integer): Integer; stdcall;
- {$EXTERNALSYM GetKeyNameTextW}
- {$IFDEF UNICODE}
- function GetKeyNameText(lParam: LONG; lpString: LPWSTR; nSize: Integer): Integer; stdcall;
- {$EXTERNALSYM GetKeyNameText}
- {$ELSE}
- function GetKeyNameText(lParam: LONG; lpString: LPSTR; nSize: Integer): Integer; stdcall;
- {$EXTERNALSYM GetKeyNameText}
- {$ENDIF}
- function GetKeyboardType(nTypeFlag: Integer): Integer; stdcall;
- {$EXTERNALSYM GetKeyboardType}
- function ToAscii(uVirtKey, uScanCode: UINT; lpKeyState: PBYTE; lpChar: LPWORD;
- uFlags: UINT): Integer; stdcall;
- {$EXTERNALSYM ToAscii}
- function ToAsciiEx(uVirtKey, uScanCode: UINT; lpKeyState: PBYTE; lpChar: LPWORD;
- uFlags: UINT; dwhkl: HKL): Integer; stdcall;
- {$EXTERNALSYM ToAsciiEx}
- function ToUnicode(wVirtKey, wScanCode: UINT; lpKeyState: PBYTE; pwszBuff: LPWSTR;
- cchBuff: Integer; wFlags: UINT): Integer; stdcall;
- {$EXTERNALSYM ToUnicode}
- function OemKeyScan(wOemChar: WORD): DWORD; stdcall;
- {$EXTERNALSYM OemKeyScan}
- function VkKeyScanA(ch: CHAR): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScanA}
- function VkKeyScanW(ch: WCHAR): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScanW}
- {$IFDEF UNICODE}
- function VkKeyScan(ch: WCHAR): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScan}
- {$ELSE}
- function VkKeyScan(ch: CHAR): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScan}
- {$ENDIF}
- function VkKeyScanExA(ch: CHAR; dwhkl: HKL): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScanExA}
- function VkKeyScanExW(ch: WCHAR; dwhkl: HKL): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScanExW}
- {$IFDEF UNICODE}
- function VkKeyScanEx(ch: WCHAR; dwhkl: HKL): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScanEx}
- {$ELSE}
- function VkKeyScanEx(ch: CHAR; dwhkl: HKL): SHORT; stdcall;
- {$EXTERNALSYM VkKeyScanEx}
- {$ENDIF}
- const
- KEYEVENTF_EXTENDEDKEY = $0001;
- {$EXTERNALSYM KEYEVENTF_EXTENDEDKEY}
- KEYEVENTF_KEYUP = $0002;
- {$EXTERNALSYM KEYEVENTF_KEYUP}
- KEYEVENTF_UNICODE = $0004;
- {$EXTERNALSYM KEYEVENTF_UNICODE}
- KEYEVENTF_SCANCODE = $0008;
- {$EXTERNALSYM KEYEVENTF_SCANCODE}
- procedure keybd_event(bVk, bScan: BYTE; dwFlags: DWORD; dwExtraInfo: ULONG_PTR); stdcall;
- {$EXTERNALSYM keybd_event}
- const
- MOUSEEVENTF_MOVE = $0001; // mouse move
- {$EXTERNALSYM MOUSEEVENTF_MOVE}
- MOUSEEVENTF_LEFTDOWN = $0002; // left button down
- {$EXTERNALSYM MOUSEEVENTF_LEFTDOWN}
- MOUSEEVENTF_LEFTUP = $0004; // left button up
- {$EXTERNALSYM MOUSEEVENTF_LEFTUP}
- MOUSEEVENTF_RIGHTDOWN = $0008; // right button down
- {$EXTERNALSYM MOUSEEVENTF_RIGHTDOWN}
- MOUSEEVENTF_RIGHTUP = $0010; // right button up
- {$EXTERNALSYM MOUSEEVENTF_RIGHTUP}
- MOUSEEVENTF_MIDDLEDOWN = $0020; // middle button down
- {$EXTERNALSYM MOUSEEVENTF_MIDDLEDOWN}
- MOUSEEVENTF_MIDDLEUP = $0040; // middle button up
- {$EXTERNALSYM MOUSEEVENTF_MIDDLEUP}
- MOUSEEVENTF_XDOWN = $0080; // x button down
- {$EXTERNALSYM MOUSEEVENTF_XDOWN}
- MOUSEEVENTF_XUP = $0100; // x button down
- {$EXTERNALSYM MOUSEEVENTF_XUP}
- MOUSEEVENTF_WHEEL = $0800; // wheel button rolled
- {$EXTERNALSYM MOUSEEVENTF_WHEEL}
- MOUSEEVENTF_VIRTUALDESK = $4000; // map to entire virtual desktop
- {$EXTERNALSYM MOUSEEVENTF_VIRTUALDESK}
- MOUSEEVENTF_ABSOLUTE = $8000; // absolute move
- {$EXTERNALSYM MOUSEEVENTF_ABSOLUTE}
- procedure mouse_event(dwFlags, dx, dy, dwData: DWORD; dwExtraInfo: ULONG_PTR); stdcall;
- {$EXTERNALSYM mouse_event}
- type
- LPMOUSEINPUT = ^MOUSEINPUT;
- {$EXTERNALSYM LPMOUSEINPUT}
- tagMOUSEINPUT = record
- dx: LONG;
- dy: LONG;
- mouseData: DWORD;
- dwFlags: DWORD;
- time: DWORD;
- dwExtraInfo: ULONG_PTR;
- end;
- {$EXTERNALSYM MOUSEINPUT}
- MOUSEINPUT = tagMOUSEINPUT;
- {$EXTERNALSYM MOUSEINPUT}
- TMouseInput = MOUSEINPUT;
- PMouseInput = LPMOUSEINPUT;
- LPKEYBDINPUT = ^KEYBDINPUT;
- {$EXTERNALSYM LPKEYBDINPUT}
- tagKEYBDINPUT = record
- wVk: WORD;
- wScan: WORD;
- dwFlags: DWORD;
- time: DWORD;
- dwExtraInfo: ULONG_PTR;
- end;
- {$EXTERNALSYM tagKEYBDINPUT}
- KEYBDINPUT = tagKEYBDINPUT;
- {$EXTERNALSYM KEYBDINPUT}
- TKeybdinput = KEYBDINPUT;
- PKeybdInput = LPKEYBDINPUT;
- LPHARDWAREINPUT = ^HARDWAREINPUT;
- {$EXTERNALSYM LPHARDWAREINPUT}
- tagHARDWAREINPUT = record
- uMsg: DWORD;
- wParamL: WORD;
- wParamH: WORD;
- end;
- {$EXTERNALSYM tagHARDWAREINPUT}
- HARDWAREINPUT = tagHARDWAREINPUT;
- {$EXTERNALSYM HARDWAREINPUT}
- THardwareInput = HARDWAREINPUT;
- PHardwareInput = LPHARDWAREINPUT;
- const
- INPUT_MOUSE = 0;
- {$EXTERNALSYM INPUT_MOUSE}
- INPUT_KEYBOARD = 1;
- {$EXTERNALSYM INPUT_KEYBOARD}
- INPUT_HARDWARE = 2;
- {$EXTERNALSYM INPUT_HARDWARE}
- type
- LPINPUT = ^INPUT;
- {$EXTERNALSYM LPINPUT}
- tagINPUT = record
- type_: DWORD;
- case Integer of
- 0: (mi: MOUSEINPUT);
- 1: (ki: KEYBDINPUT);
- 2: (hi: HARDWAREINPUT);
- end;
- {$EXTERNALSYM tagINPUT}
- INPUT = tagINPUT;
- {$EXTERNALSYM INPUT}
- TInput = INPUT;
- PInput = LPINPUT;
- function SendInput(cInputs: UINT; pInputs: LPINPUT; cbSize: Integer): UINT; stdcall;
- {$EXTERNALSYM SendInput}
- type
- PLASTINPUTINFO = ^LASTINPUTINFO;
- tagLASTINPUTINFO = record
- cbSize: UINT;
- dwTime: DWORD;
- end;
- {$EXTERNALSYM tagLASTINPUTINFO}
- LASTINPUTINFO = tagLASTINPUTINFO;
- {$EXTERNALSYM LASTINPUTINFO}
- TLastInputInfo = LASTINPUTINFO;
- function GetLastInputInfo(var plii: LASTINPUTINFO): BOOL; stdcall;
- {$EXTERNALSYM GetLastInputInfo}
- function MapVirtualKeyA(uCode, uMapType: UINT): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKeyA}
- function MapVirtualKeyW(uCode, uMapType: UINT): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKeyW}
- {$IFDEF UNICODE}
- function MapVirtualKey(uCode, uMapType: UINT): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKey}
- {$ELSE}
- function MapVirtualKey(uCode, uMapType: UINT): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKey}
- {$ENDIF}
- function MapVirtualKeyExA(uCode, uMapType: UINT; dwhkl: HKL): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKeyExA}
- function MapVirtualKeyExW(uCode, uMapType: UINT; dwhkl: HKL): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKeyExW}
- {$IFDEF UNICODE}
- function MapVirtualKeyEx(uCode, uMapType: UINT; dwhkl: HKL): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKeyEx}
- {$ELSE}
- function MapVirtualKeyEx(uCode, uMapType: UINT; dwhkl: HKL): UINT; stdcall;
- {$EXTERNALSYM MapVirtualKeyEx}
- {$ENDIF}
- function GetInputState: BOOL; stdcall;
- {$EXTERNALSYM GetInputState}
- function GetQueueStatus(flags: UINT): DWORD; stdcall;
- {$EXTERNALSYM GetQueueStatus}
- function GetCapture: HWND; stdcall;
- {$EXTERNALSYM GetCapture}
- function SetCapture(hWnd: HWND): HWND; stdcall;
- {$EXTERNALSYM SetCapture}
- function ReleaseCapture: BOOL; stdcall;
- {$EXTERNALSYM ReleaseCapture}
- function MsgWaitForMultipleObjects(nCount: DWORD; pHandles: PHANDLE;
- fWaitAll: BOOL; dwMilliseconds: DWORD; dwWakeMask: DWORD): DWORD; stdcall;
- {$EXTERNALSYM MsgWaitForMultipleObjects}
- function MsgWaitForMultipleObjectsEx(nCount: DWORD; pHandles: PHANDLE;
- dwMilliseconds: DWORD; dwWakeMask: DWORD; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM MsgWaitForMultipleObjectsEx}
- const
- MWMO_WAITALL = $0001;
- {$EXTERNALSYM MWMO_WAITALL}
- MWMO_ALERTABLE = $0002;
- {$EXTERNALSYM MWMO_ALERTABLE}
- MWMO_INPUTAVAILABLE = $0004;
- {$EXTERNALSYM MWMO_INPUTAVAILABLE}
- //
- // Windows Functions
- //
- function SetTimer(hWnd: HWND; nIDEvent: UINT_PTR; uElapse: UINT;
- lpTimerFunc: TIMERPROC): UINT_PTR; stdcall;
- {$EXTERNALSYM SetTimer}
- function KillTimer(hWnd: HWND; uIDEvent: UINT_PTR): BOOL; stdcall;
- {$EXTERNALSYM KillTimer}
- function IsWindowUnicode(hWnd: HWND): BOOL; stdcall;
- {$EXTERNALSYM IsWindowUnicode}
- function EnableWindow(hWnd: HWND; bEnable: BOOL): BOOL; stdcall;
- {$EXTERNALSYM EnableWindow}
- function IsWindowEnabled(hWnd: HWND): BOOL; stdcall;
- {$EXTERNALSYM IsWindowEnabled}
- function LoadAcceleratorsA(hInstance: HINSTANCE; lpTableName: LPCSTR): HACCEL; stdcall;
- {$EXTERNALSYM LoadAcceleratorsA}
- function LoadAcceleratorsW(hInstance: HINSTANCE; lpTableName: LPCWSTR): HACCEL; stdcall;
- {$EXTERNALSYM LoadAcceleratorsW}
- {$IFDEF UNICODE}
- function LoadAccelerators(hInstance: HINSTANCE; lpTableName: LPCWSTR): HACCEL; stdcall;
- {$EXTERNALSYM LoadAccelerators}
- {$ELSE}
- function LoadAccelerators(hInstance: HINSTANCE; lpTableName: LPCSTR): HACCEL; stdcall;
- {$EXTERNALSYM LoadAccelerators}
- {$ENDIF}
- function CreateAcceleratorTableA(lpaccl: LPACCEL; cEntries: Integer): HACCEL; stdcall;
- {$EXTERNALSYM CreateAcceleratorTableA}
- function CreateAcceleratorTableW(lpaccl: LPACCEL; cEntries: Integer): HACCEL; stdcall;
- {$EXTERNALSYM CreateAcceleratorTableW}
- {$IFDEF UNICODE}
- function CreateAcceleratorTable(lpaccl: LPACCEL; cEntries: Integer): HACCEL; stdcall;
- {$EXTERNALSYM CreateAcceleratorTable}
- {$ELSE}
- function CreateAcceleratorTable(lpaccl: LPACCEL; cEntries: Integer): HACCEL; stdcall;
- {$EXTERNALSYM CreateAcceleratorTable}
- {$ENDIF}
- function DestroyAcceleratorTable(hAccel: HACCEL): BOOL; stdcall;
- {$EXTERNALSYM DestroyAcceleratorTable}
- function CopyAcceleratorTableA(hAccelSrc: HACCEL; lpAccelDst: LPACCEL;
- cAccelEntries: Integer): Integer; stdcall;
- {$EXTERNALSYM CopyAcceleratorTableA}
- function CopyAcceleratorTableW(hAccelSrc: HACCEL; lpAccelDst: LPACCEL;
- cAccelEntries: Integer): Integer; stdcall;
- {$EXTERNALSYM CopyAcceleratorTableW}
- {$IFDEF UNICODE}
- function CopyAcceleratorTable(hAccelSrc: HACCEL; lpAccelDst: LPACCEL;
- cAccelEntries: Integer): Integer; stdcall;
- {$EXTERNALSYM CopyAcceleratorTable}
- {$ELSE}
- function CopyAcceleratorTable(hAccelSrc: HACCEL; lpAccelDst: LPACCEL;
- cAccelEntries: Integer): Integer; stdcall;
- {$EXTERNALSYM CopyAcceleratorTable}
- {$ENDIF}
- function TranslateAcceleratorA(hWnd: HWND; hAccTable: HACCEL; lpMsg: LPMSG): Integer; stdcall;
- {$EXTERNALSYM TranslateAcceleratorA}
- function TranslateAcceleratorW(hWnd: HWND; hAccTable: HACCEL; lpMsg: LPMSG): Integer; stdcall;
- {$EXTERNALSYM TranslateAcceleratorW}
- {$IFDEF UNICODE}
- function TranslateAccelerator(hWnd: HWND; hAccTable: HACCEL; lpMsg: LPMSG): Integer; stdcall;
- {$EXTERNALSYM TranslateAccelerator}
- {$ELSE}
- function TranslateAccelerator(hWnd: HWND; hAccTable: HACCEL; lpMsg: LPMSG): Integer; stdcall;
- {$EXTERNALSYM TranslateAccelerator}
- {$ENDIF}
- //
- // GetSystemMetrics() codes
- //
- const
- SM_CXSCREEN = 0;
- {$EXTERNALSYM SM_CXSCREEN}
- SM_CYSCREEN = 1;
- {$EXTERNALSYM SM_CYSCREEN}
- SM_CXVSCROLL = 2;
- {$EXTERNALSYM SM_CXVSCROLL}
- SM_CYHSCROLL = 3;
- {$EXTERNALSYM SM_CYHSCROLL}
- SM_CYCAPTION = 4;
- {$EXTERNALSYM SM_CYCAPTION}
- SM_CXBORDER = 5;
- {$EXTERNALSYM SM_CXBORDER}
- SM_CYBORDER = 6;
- {$EXTERNALSYM SM_CYBORDER}
- SM_CXDLGFRAME = 7;
- {$EXTERNALSYM SM_CXDLGFRAME}
- SM_CYDLGFRAME = 8;
- {$EXTERNALSYM SM_CYDLGFRAME}
- SM_CYVTHUMB = 9;
- {$EXTERNALSYM SM_CYVTHUMB}
- SM_CXHTHUMB = 10;
- {$EXTERNALSYM SM_CXHTHUMB}
- SM_CXICON = 11;
- {$EXTERNALSYM SM_CXICON}
- SM_CYICON = 12;
- {$EXTERNALSYM SM_CYICON}
- SM_CXCURSOR = 13;
- {$EXTERNALSYM SM_CXCURSOR}
- SM_CYCURSOR = 14;
- {$EXTERNALSYM SM_CYCURSOR}
- SM_CYMENU = 15;
- {$EXTERNALSYM SM_CYMENU}
- SM_CXFULLSCREEN = 16;
- {$EXTERNALSYM SM_CXFULLSCREEN}
- SM_CYFULLSCREEN = 17;
- {$EXTERNALSYM SM_CYFULLSCREEN}
- SM_CYKANJIWINDOW = 18;
- {$EXTERNALSYM SM_CYKANJIWINDOW}
- SM_MOUSEPRESENT = 19;
- {$EXTERNALSYM SM_MOUSEPRESENT}
- SM_CYVSCROLL = 20;
- {$EXTERNALSYM SM_CYVSCROLL}
- SM_CXHSCROLL = 21;
- {$EXTERNALSYM SM_CXHSCROLL}
- SM_DEBUG = 22;
- {$EXTERNALSYM SM_DEBUG}
- SM_SWAPBUTTON = 23;
- {$EXTERNALSYM SM_SWAPBUTTON}
- SM_RESERVED1 = 24;
- {$EXTERNALSYM SM_RESERVED1}
- SM_RESERVED2 = 25;
- {$EXTERNALSYM SM_RESERVED2}
- SM_RESERVED3 = 26;
- {$EXTERNALSYM SM_RESERVED3}
- SM_RESERVED4 = 27;
- {$EXTERNALSYM SM_RESERVED4}
- SM_CXMIN = 28;
- {$EXTERNALSYM SM_CXMIN}
- SM_CYMIN = 29;
- {$EXTERNALSYM SM_CYMIN}
- SM_CXSIZE = 30;
- {$EXTERNALSYM SM_CXSIZE}
- SM_CYSIZE = 31;
- {$EXTERNALSYM SM_CYSIZE}
- SM_CXFRAME = 32;
- {$EXTERNALSYM SM_CXFRAME}
- SM_CYFRAME = 33;
- {$EXTERNALSYM SM_CYFRAME}
- SM_CXMINTRACK = 34;
- {$EXTERNALSYM SM_CXMINTRACK}
- SM_CYMINTRACK = 35;
- {$EXTERNALSYM SM_CYMINTRACK}
- SM_CXDOUBLECLK = 36;
- {$EXTERNALSYM SM_CXDOUBLECLK}
- SM_CYDOUBLECLK = 37;
- {$EXTERNALSYM SM_CYDOUBLECLK}
- SM_CXICONSPACING = 38;
- {$EXTERNALSYM SM_CXICONSPACING}
- SM_CYICONSPACING = 39;
- {$EXTERNALSYM SM_CYICONSPACING}
- SM_MENUDROPALIGNMENT = 40;
- {$EXTERNALSYM SM_MENUDROPALIGNMENT}
- SM_PENWINDOWS = 41;
- {$EXTERNALSYM SM_PENWINDOWS}
- SM_DBCSENABLED = 42;
- {$EXTERNALSYM SM_DBCSENABLED}
- SM_CMOUSEBUTTONS = 43;
- {$EXTERNALSYM SM_CMOUSEBUTTONS}
- SM_CXFIXEDFRAME = SM_CXDLGFRAME; // ;win40 name change
- {$EXTERNALSYM SM_CXFIXEDFRAME}
- SM_CYFIXEDFRAME = SM_CYDLGFRAME; // ;win40 name change
- {$EXTERNALSYM SM_CYFIXEDFRAME}
- SM_CXSIZEFRAME = SM_CXFRAME; // ;win40 name change
- {$EXTERNALSYM SM_CXSIZEFRAME}
- SM_CYSIZEFRAME = SM_CYFRAME; // ;win40 name change
- {$EXTERNALSYM SM_CYSIZEFRAME}
- SM_SECURE = 44;
- {$EXTERNALSYM SM_SECURE}
- SM_CXEDGE = 45;
- {$EXTERNALSYM SM_CXEDGE}
- SM_CYEDGE = 46;
- {$EXTERNALSYM SM_CYEDGE}
- SM_CXMINSPACING = 47;
- {$EXTERNALSYM SM_CXMINSPACING}
- SM_CYMINSPACING = 48;
- {$EXTERNALSYM SM_CYMINSPACING}
- SM_CXSMICON = 49;
- {$EXTERNALSYM SM_CXSMICON}
- SM_CYSMICON = 50;
- {$EXTERNALSYM SM_CYSMICON}
- SM_CYSMCAPTION = 51;
- {$EXTERNALSYM SM_CYSMCAPTION}
- SM_CXSMSIZE = 52;
- {$EXTERNALSYM SM_CXSMSIZE}
- SM_CYSMSIZE = 53;
- {$EXTERNALSYM SM_CYSMSIZE}
- SM_CXMENUSIZE = 54;
- {$EXTERNALSYM SM_CXMENUSIZE}
- SM_CYMENUSIZE = 55;
- {$EXTERNALSYM SM_CYMENUSIZE}
- SM_ARRANGE = 56;
- {$EXTERNALSYM SM_ARRANGE}
- SM_CXMINIMIZED = 57;
- {$EXTERNALSYM SM_CXMINIMIZED}
- SM_CYMINIMIZED = 58;
- {$EXTERNALSYM SM_CYMINIMIZED}
- SM_CXMAXTRACK = 59;
- {$EXTERNALSYM SM_CXMAXTRACK}
- SM_CYMAXTRACK = 60;
- {$EXTERNALSYM SM_CYMAXTRACK}
- SM_CXMAXIMIZED = 61;
- {$EXTERNALSYM SM_CXMAXIMIZED}
- SM_CYMAXIMIZED = 62;
- {$EXTERNALSYM SM_CYMAXIMIZED}
- SM_NETWORK = 63;
- {$EXTERNALSYM SM_NETWORK}
- SM_CLEANBOOT = 67;
- {$EXTERNALSYM SM_CLEANBOOT}
- SM_CXDRAG = 68;
- {$EXTERNALSYM SM_CXDRAG}
- SM_CYDRAG = 69;
- {$EXTERNALSYM SM_CYDRAG}
- SM_SHOWSOUNDS = 70;
- {$EXTERNALSYM SM_SHOWSOUNDS}
- SM_CXMENUCHECK = 71; // Use instead of GetMenuCheckMarkDimensions()!
- {$EXTERNALSYM SM_CXMENUCHECK}
- SM_CYMENUCHECK = 72;
- {$EXTERNALSYM SM_CYMENUCHECK}
- SM_SLOWMACHINE = 73;
- {$EXTERNALSYM SM_SLOWMACHINE}
- SM_MIDEASTENABLED = 74;
- {$EXTERNALSYM SM_MIDEASTENABLED}
- SM_MOUSEWHEELPRESENT = 75;
- {$EXTERNALSYM SM_MOUSEWHEELPRESENT}
- SM_XVIRTUALSCREEN = 76;
- {$EXTERNALSYM SM_XVIRTUALSCREEN}
- SM_YVIRTUALSCREEN = 77;
- {$EXTERNALSYM SM_YVIRTUALSCREEN}
- SM_CXVIRTUALSCREEN = 78;
- {$EXTERNALSYM SM_CXVIRTUALSCREEN}
- SM_CYVIRTUALSCREEN = 79;
- {$EXTERNALSYM SM_CYVIRTUALSCREEN}
- SM_CMONITORS = 80;
- {$EXTERNALSYM SM_CMONITORS}
- SM_SAMEDISPLAYFORMAT = 81;
- {$EXTERNALSYM SM_SAMEDISPLAYFORMAT}
- SM_IMMENABLED = 82;
- {$EXTERNALSYM SM_IMMENABLED}
- SM_CXFOCUSBORDER = 83;
- {$EXTERNALSYM SM_CXFOCUSBORDER}
- SM_CYFOCUSBORDER = 84;
- {$EXTERNALSYM SM_CYFOCUSBORDER}
- //#if(_WIN32_WINNT >= 0x0501)
- SM_TABLETPC = 86;
- {$EXTERNALSYM SM_TABLETPC}
- SM_MEDIACENTER = 87;
- {$EXTERNALSYM SM_MEDIACENTER}
- //#endif /* _WIN32_WINNT >= 0x0501 */
- { TODO
- #if (WINVER < 0x0500) && (!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0400))
- #define SM_CMETRICS 76
- #elif WINVER == 0x500
- #define SM_CMETRICS 83
- #else
- #define SM_CMETRICS 88
- #endif
- }
- const
- SM_CMETRICS = 76;
- {$EXTERNALSYM SM_CMETRICS}
- SM_REMOTESESSION = $1000;
- {$EXTERNALSYM SM_REMOTESESSION}
- SM_SHUTTINGDOWN = $2000;
- {$EXTERNALSYM SM_SHUTTINGDOWN}
- //#if(WINVER >= 0x0501)
- SM_REMOTECONTROL = $2001;
- {$EXTERNALSYM SM_REMOTECONTROL}
- //#endif /* WINVER >= 0x0501 */
- function GetSystemMetrics(nIndex: Integer): Integer; stdcall;
- {$EXTERNALSYM GetSystemMetrics}
- function LoadMenuA(hInstance: HINSTANCE; lpMenuName: LPCSTR): HMENU; stdcall;
- {$EXTERNALSYM LoadMenuA}
- function LoadMenuW(hInstance: HINSTANCE; lpMenuName: LPCWSTR): HMENU; stdcall;
- {$EXTERNALSYM LoadMenuW}
- {$IFDEF UNICODE}
- function LoadMenu(hInstance: HINSTANCE; lpMenuName: LPCWSTR): HMENU; stdcall;
- {$EXTERNALSYM LoadMenu}
- {$ELSE}
- function LoadMenu(hInstance: HINSTANCE; lpMenuName: LPCSTR): HMENU; stdcall;
- {$EXTERNALSYM LoadMenu}
- {$ENDIF}
- function LoadMenuIndirectA(lpMenuTemplate: LPMENUTEMPLATEA): HMENU; stdcall;
- {$EXTERNALSYM LoadMenuIndirectA}
- function LoadMenuIndirectW(lpMenuTemplate: LPMENUTEMPLATEW): HMENU; stdcall;
- {$EXTERNALSYM LoadMenuIndirectW}
- {$IFDEF UNICODE}
- function LoadMenuIndirect(lpMenuTemplate: LPMENUTEMPLATEW): HMENU; stdcall;
- {$EXTERNALSYM LoadMenuIndirect}
- {$ELSE}
- function LoadMenuIndirect(lpMenuTemplate: LPMENUTEMPLATEA): HMENU; stdcall;
- {$EXTERNALSYM LoadMenuIndirect}
- {$ENDIF}
- function GetMenu(hWnd: HWND): HMENU; stdcall;
- {$EXTERNALSYM GetMenu}
- function SetMenu(hWnd: HWND; hMenu: HMENU): BOOL; stdcall;
- {$EXTERNALSYM SetMenu}
- function ChangeMenuA(hMenu: HMENU; cmd: UINT; lpszNewItem: LPCSTR;
- cmdInsert: UINT; flags: UINT): BOOL; stdcall;
- {$EXTERNALSYM ChangeMenuA}
- function ChangeMenuW(hMenu: HMENU; cmd: UINT; lpszNewItem: LPCWSTR;
- cmdInsert: UINT; flags: UINT): BOOL; stdcall;
- {$EXTERNALSYM ChangeMenuW}
- {$IFDEF UNICODE}
- function ChangeMenu(hMenu: HMENU; cmd: UINT; lpszNewItem: LPCWSTR;
- cmdInsert: UINT; flags: UINT): BOOL; stdcall;
- {$EXTERNALSYM ChangeMenu}
- {$ELSE}
- function ChangeMenu(hMenu: HMENU; cmd: UINT; lpszNewItem: LPCSTR;
- cmdInsert: UINT; flags: UINT): BOOL; stdcall;
- {$EXTERNALSYM ChangeMenu}
- {$ENDIF}
- function HiliteMenuItem(hWnd: HWND; hMenu: HMENU; uIDHiliteItem: UINT; uHilite: UINT): BOOL; stdcall;
- {$EXTERNALSYM HiliteMenuItem}
- function GetMenuStringA(hMenu: HMENU; uIDItem: UINT; lpString: LPSTR;
- nMaxCount: Integer; uFlag: UINT): Integer; stdcall;
- {$EXTERNALSYM GetMenuStringA}
- function GetMenuStringW(hMenu: HMENU; uIDItem: UINT; lpString: LPWSTR;
- nMaxCount: Integer; uFlag: UINT): Integer; stdcall;
- {$EXTERNALSYM GetMenuStringW}
- {$IFDEF UNICODE}
- function GetMenuString(hMenu: HMENU; uIDItem: UINT; lpString: LPWSTR;
- nMaxCount: Integer; uFlag: UINT): Integer; stdcall;
- {$EXTERNALSYM GetMenuString}
- {$ELSE}
- function GetMenuString(hMenu: HMENU; uIDItem: UINT; lpString: LPSTR;
- nMaxCount: Integer; uFlag: UINT): Integer; stdcall;
- {$EXTERNALSYM GetMenuString}
- {$ENDIF}
- function GetMenuState(hMenu: HMENU; uId, uFlags: UINT): UINT; stdcall;
- {$EXTERNALSYM GetMenuState}
- function DrawMenuBar(hWnd: HWND): BOOL; stdcall;
- {$EXTERNALSYM DrawMenuBar}
- const
- PMB_ACTIVE = $00000001;
- {$EXTERNALSYM PMB_ACTIVE}
- function GetSystemMenu(hWnd: HWND; bRevert: BOOL): HMENU; stdcall;
- {$EXTERNALSYM GetSystemMenu}
- function CreateMenu: HMENU; stdcall;
- {$EXTERNALSYM CreateMenu}
- function CreatePopupMenu: HMENU; stdcall;
- {$EXTERNALSYM CreatePopupMenu}
- function DestroyMenu(hMenu: HMENU): BOOL; stdcall;
- {$EXTERNALSYM DestroyMenu}
- function CheckMenuItem(hMenu: HMENU; uIDCheckItem, uCheck: UINT): DWORD; stdcall;
- {$EXTERNALSYM CheckMenuItem}
- function EnableMenuItem(hMenu: HMENU; uIDEnableItem, uEnable: UINT): BOOL; stdcall;
- {$EXTERNALSYM EnableMenuItem}
- function GetSubMenu(hMenu: HMENU; nPos: Integer): HMENU; stdcall;
- {$EXTERNALSYM GetSubMenu}
- function GetMenuItemID(hMenu: HMENU; nPos: Integer): UINT; stdcall;
- {$EXTERNALSYM GetMenuItemID}
- function GetMenuItemCount(hMenu: HMENU): Integer; stdcall;
- {$EXTERNALSYM GetMenuItemCount}
- function InsertMenuA(hMenu: HMENU; uPosition, uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM InsertMenuA}
- function InsertMenuW(hMenu: HMENU; uPosition, uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM InsertMenuW}
- {$IFDEF UNICODE}
- function InsertMenu(hMenu: HMENU; uPosition, uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM InsertMenu}
- {$ELSE}
- function InsertMenu(hMenu: HMENU; uPosition, uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM InsertMenu}
- {$ENDIF}
- function AppendMenuA(hMenu: HMENU; uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM AppendMenuA}
- function AppendMenuW(hMenu: HMENU; uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM AppendMenuW}
- {$IFDEF UNICODE}
- function AppendMenu(hMenu: HMENU; uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM AppendMenu}
- {$ELSE}
- function AppendMenu(hMenu: HMENU; uFlags: UINT; uIDNewItem: UINT_PTR;
- lpNewItem: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM AppendMenu}
- {$ENDIF}
- function ModifyMenuA(hMnu: HMENU; uPosition: UINT; uFlags: UINT;
- uIDNewItem: UINT_PTR; lpNewItem: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM ModifyMenuA}
- function ModifyMenuW(hMnu: HMENU; uPosition: UINT; uFlags: UINT;
- uIDNewItem: UINT_PTR; lpNewItem: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM ModifyMenuW}
- {$IFDEF UNICODE}
- function ModifyMenu(hMnu: HMENU; uPosition: UINT; uFlags: UINT;
- uIDNewItem: UINT_PTR; lpNewItem: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM ModifyMenu}
- {$ELSE}
- function ModifyMenu(hMnu: HMENU; uPosition: UINT; uFlags: UINT;
- uIDNewItem: UINT_PTR; lpNewItem: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM ModifyMenu}
- {$ENDIF}
- function RemoveMenu(hMenu: HMENU; uPosition: UINT; uFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM RemoveMenu}
- function DeleteMenu(hMenu: HMENU; uPosition: UINT; uFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM DeleteMenu}
- function SetMenuItemBitmaps(hMenu: HMENU; uPosition: UINT; uFlags: UINT;
- hBitmapUnchecked: HBITMAP; hBitmapChecked: HBITMAP): BOOL; stdcall;
- {$EXTERNALSYM SetMenuItemBitmaps}
- function GetMenuCheckMarkDimensions: LONG; stdcall;
- {$EXTERNALSYM GetMenuCheckMarkDimensions}
- function TrackPopupMenu(hMenu: HMENU; uFlags: UINT; x: Integer; y: Integer;
- nReserved: Integer; hWnd: HWND; prcRect: LPRECT): BOOL; stdcall;
- {$EXTERNALSYM TrackPopupMenu}
- // return codes for WM_MENUCHAR//
- const
- MNC_IGNORE = 0;
- {$EXTERNALSYM MNC_IGNORE}
- MNC_CLOSE = 1;
- {$EXTERNALSYM MNC_CLOSE}
- MNC_EXECUTE = 2;
- {$EXTERNALSYM MNC_EXECUTE}
- MNC_SELECT = 3;
- {$EXTERNALSYM MNC_SELECT}
- type
- LPTPMPARAMS = ^TPMPARAMS;
- {$EXTERNALSYM LPTPMPARAMS}
- tagTPMPARAMS = record
- cbSize: UINT; // Size of structure
- rcExclude: RECT; // Screen coordinates of rectangle to exclude when positioning
- end;
- {$EXTERNALSYM tagTPMPARAMS}
- TPMPARAMS = tagTPMPARAMS;
- {$EXTERNALSYM TPMPARAMS}
- TTPMParams = TPMPARAMS;
- PTPMParams = LPTPMPARAMS;
- function TrackPopupMenuEx(hmenu: HMENU; fuflags: UINT; x, y: Integer;
- hwnd: HWND; lptpm: LPTPMPARAMS): BOOL; stdcall;
- {$EXTERNALSYM TrackPopupMenuEx}
- const
- MNS_NOCHECK = $80000000;
- {$EXTERNALSYM MNS_NOCHECK}
- MNS_MODELESS = $40000000;
- {$EXTERNALSYM MNS_MODELESS}
- MNS_DRAGDROP = $20000000;
- {$EXTERNALSYM MNS_DRAGDROP}
- MNS_AUTODISMISS = $10000000;
- {$EXTERNALSYM MNS_AUTODISMISS}
- MNS_NOTIFYBYPOS = $08000000;
- {$EXTERNALSYM MNS_NOTIFYBYPOS}
- MNS_CHECKORBMP = $04000000;
- {$EXTERNALSYM MNS_CHECKORBMP}
- MIM_MAXHEIGHT = $00000001;
- {$EXTERNALSYM MIM_MAXHEIGHT}
- MIM_BACKGROUND = $00000002;
- {$EXTERNALSYM MIM_BACKGROUND}
- MIM_HELPID = $00000004;
- {$EXTERNALSYM MIM_HELPID}
- MIM_MENUDATA = $00000008;
- {$EXTERNALSYM MIM_MENUDATA}
- MIM_STYLE = $00000010;
- {$EXTERNALSYM MIM_STYLE}
- MIM_APPLYTOSUBMENUS = $80000000;
- {$EXTERNALSYM MIM_APPLYTOSUBMENUS}
- type
- LPMENUINFO = ^MENUINFO;
- {$EXTERNALSYM LPMENUINFO}
- tagMENUINFO = record
- cbSize: DWORD;
- fMask: DWORD;
- dwStyle: DWORD;
- cyMax: UINT;
- hbrBack: HBRUSH;
- dwContextHelpID: DWORD;
- dwMenuData: ULONG_PTR;
- end;
- {$EXTERNALSYM tagMENUINFO}
- MENUINFO = tagMENUINFO;
- {$EXTERNALSYM MENUINFO}
- TMenuinfo = MENUINFO;
- PMenuinfo = LPMENUINFO;
- LPCMENUINFO = ^MENUINFO;
- {$EXTERNALSYM LPCMENUINFO}
- function GetMenuInfo(hmenu: HMENU; var lpcmi: MENUINFO): BOOL; stdcall;
- {$EXTERNALSYM GetMenuInfo}
- function SetMenuInfo(hemnu: HMENU; const lpcmi: MENUINFO): BOOL; stdcall;
- {$EXTERNALSYM SetMenuInfo}
- function EndMenu: BOOL; stdcall;
- {$EXTERNALSYM EndMenu}
- //
- // WM_MENUDRAG return values.
- //
- const
- MND_CONTINUE = 0;
- {$EXTERNALSYM MND_CONTINUE}
- MND_ENDMENU = 1;
- {$EXTERNALSYM MND_ENDMENU}
- type
- PMENUGETOBJECTINFO = ^MENUGETOBJECTINFO;
- tagMENUGETOBJECTINFO = record
- dwFlags: DWORD;
- uPos: UINT;
- hmenu: HMENU;
- riid: PVOID;
- pvObj: PVOID;
- end;
- {$EXTERNALSYM tagMENUGETOBJECTINFO}
- MENUGETOBJECTINFO = tagMENUGETOBJECTINFO;
- {$EXTERNALSYM MENUGETOBJECTINFO}
- TMenuGetObjectInfo = MENUGETOBJECTINFO;
- //
- // MENUGETOBJECTINFO dwFlags values
- //
- const
- MNGOF_TOPGAP = $00000001;
- {$EXTERNALSYM MNGOF_TOPGAP}
- MNGOF_BOTTOMGAP = $00000002;
- {$EXTERNALSYM MNGOF_BOTTOMGAP}
- //
- // WM_MENUGETOBJECT return values
- //
- MNGO_NOINTERFACE = $00000000;
- {$EXTERNALSYM MNGO_NOINTERFACE}
- MNGO_NOERROR = $00000001;
- {$EXTERNALSYM MNGO_NOERROR}
- MIIM_STATE = $00000001;
- {$EXTERNALSYM MIIM_STATE}
- MIIM_ID = $00000002;
- {$EXTERNALSYM MIIM_ID}
- MIIM_SUBMENU = $00000004;
- {$EXTERNALSYM MIIM_SUBMENU}
- MIIM_CHECKMARKS = $00000008;
- {$EXTERNALSYM MIIM_CHECKMARKS}
- MIIM_TYPE = $00000010;
- {$EXTERNALSYM MIIM_TYPE}
- MIIM_DATA = $00000020;
- {$EXTERNALSYM MIIM_DATA}
- MIIM_STRING = $00000040;
- {$EXTERNALSYM MIIM_STRING}
- MIIM_BITMAP = $00000080;
- {$EXTERNALSYM MIIM_BITMAP}
- MIIM_FTYPE = $00000100;
- {$EXTERNALSYM MIIM_FTYPE}
- HBMMENU_CALLBACK = HBITMAP(-1);
- {$EXTERNALSYM HBMMENU_CALLBACK}
- HBMMENU_SYSTEM = HBITMAP(1);
- {$EXTERNALSYM HBMMENU_SYSTEM}
- HBMMENU_MBAR_RESTORE = HBITMAP(2);
- {$EXTERNALSYM HBMMENU_MBAR_RESTORE}
- HBMMENU_MBAR_MINIMIZE = HBITMAP(3);
- {$EXTERNALSYM HBMMENU_MBAR_MINIMIZE}
- HBMMENU_MBAR_CLOSE = HBITMAP(5);
- {$EXTERNALSYM HBMMENU_MBAR_CLOSE}
- HBMMENU_MBAR_CLOSE_D = HBITMAP(6);
- {$EXTERNALSYM HBMMENU_MBAR_CLOSE_D}
- HBMMENU_MBAR_MINIMIZE_D = HBITMAP(7);
- {$EXTERNALSYM HBMMENU_MBAR_MINIMIZE_D}
- HBMMENU_POPUP_CLOSE = HBITMAP(8);
- {$EXTERNALSYM HBMMENU_POPUP_CLOSE}
- HBMMENU_POPUP_RESTORE = HBITMAP(9);
- {$EXTERNALSYM HBMMENU_POPUP_RESTORE}
- HBMMENU_POPUP_MAXIMIZE = HBITMAP(10);
- {$EXTERNALSYM HBMMENU_POPUP_MAXIMIZE}
- HBMMENU_POPUP_MINIMIZE = HBITMAP(11);
- {$EXTERNALSYM HBMMENU_POPUP_MINIMIZE}
- type
- LPMENUITEMINFOA = ^MENUITEMINFOA;
- {$EXTERNALSYM LPMENUITEMINFOA}
- tagMENUITEMINFOA = record
- cbSize: UINT;
- fMask: UINT;
- fType: UINT; // used if MIIM_TYPE (4.0) or MIIM_FTYPE (>4.0)
- fState: UINT; // used if MIIM_STATE
- wID: UINT; // used if MIIM_ID
- hSubMenu: HMENU; // used if MIIM_SUBMENU
- hbmpChecked: HBITMAP; // used if MIIM_CHECKMARKS
- hbmpUnchecked: HBITMAP; // used if MIIM_CHECKMARKS
- dwItemData: ULONG_PTR; // used if MIIM_DATA
- dwTypeData: LPSTR; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- cch: UINT; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- {$IFDEF WINVER_0500_GREATER}
- hbmpItem: HBITMAP; // used if MIIM_BITMAP
- {$ENDIF}
- end;
- {$EXTERNALSYM tagMENUITEMINFOA}
- MENUITEMINFOA = tagMENUITEMINFOA;
- {$EXTERNALSYM MENUITEMINFOA}
- TMenuItemInfoA = MENUITEMINFOA;
- PMenuItemInfoA = LPMENUITEMINFOA;
- LPMENUITEMINFOW = ^MENUITEMINFOW;
- {$EXTERNALSYM LPMENUITEMINFOW}
- tagMENUITEMINFOW = record
- cbSize: UINT;
- fMask: UINT;
- fType: UINT; // used if MIIM_TYPE (4.0) or MIIM_FTYPE (>4.0)
- fState: UINT; // used if MIIM_STATE
- wID: UINT; // used if MIIM_ID
- hSubMenu: HMENU; // used if MIIM_SUBMENU
- hbmpChecked: HBITMAP; // used if MIIM_CHECKMARKS
- hbmpUnchecked: HBITMAP; // used if MIIM_CHECKMARKS
- dwItemData: ULONG_PTR; // used if MIIM_DATA
- dwTypeData: LPWSTR; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- cch: UINT; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- {$IFDEF WINVER_0500_GREATER}
- hbmpItem: HBITMAP; // used if MIIM_BITMAP
- {$ENDIF}
- end;
- {$EXTERNALSYM tagMENUITEMINFOW}
- MENUITEMINFOW = tagMENUITEMINFOW;
- {$EXTERNALSYM MENUITEMINFOW}
- TMenuItemInfoW = MENUITEMINFOW;
- PMenuItemInfoW = LPMENUITEMINFOW;
- LPCMENUITEMINFOA = ^MENUITEMINFOA;
- {$EXTERNALSYM LPCMENUITEMINFOA}
- LPCMENUITEMINFOW = ^MENUITEMINFOW;
- {$EXTERNALSYM LPCMENUITEMINFOW}
- {$IFDEF UNICODE}
- MENUITEMINFO = MENUITEMINFOW;
- {$EXTERNALSYM MENUITEMINFO}
- LPMENUITEMINFO = LPMENUITEMINFOW;
- {$EXTERNALSYM LPMENUITEMINFO}
- TMenuItemInfo = TMenuItemInfoW;
- PMenuItemInfo = PMenuItemInfoW;
- LPCMENUITEMINFO = LPCMENUITEMINFOW;
- {$EXTERNALSYM LPCMENUITEMINFO}
- {$ELSE}
- MENUITEMINFO = MENUITEMINFOA;
- {$EXTERNALSYM MENUITEMINFO}
- LPMENUITEMINFO = LPMENUITEMINFOA;
- {$EXTERNALSYM LPMENUITEMINFO}
- TMenuItemInfo = TMenuItemInfoA;
- PMenuItemInfo = PMenuItemInfoA;
- LPCMENUITEMINFO = LPCMENUITEMINFOA;
- {$EXTERNALSYM LPCMENUITEMINFO}
- {$ENDIF}
- function InsertMenuItemA(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOA): BOOL; stdcall;
- {$EXTERNALSYM InsertMenuItemA}
- function InsertMenuItemW(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOW): BOOL; stdcall;
- {$EXTERNALSYM InsertMenuItemW}
- {$IFDEF UNICODE}
- function InsertMenuItem(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOW): BOOL; stdcall;
- {$EXTERNALSYM InsertMenuItem}
- {$ELSE}
- function InsertMenuItem(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOA): BOOL; stdcall;
- {$EXTERNALSYM InsertMenuItem}
- {$ENDIF}
- function GetMenuItemInfoA(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- var lpmii: MENUITEMINFOA): BOOL; stdcall;
- {$EXTERNALSYM GetMenuItemInfoA}
- function GetMenuItemInfoW(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- var lpmii: MENUITEMINFOW): BOOL; stdcall;
- {$EXTERNALSYM GetMenuItemInfoW}
- {$IFDEF UNICODE}
- function GetMenuItemInfo(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- var lpmii: MENUITEMINFOW): BOOL; stdcall;
- {$EXTERNALSYM GetMenuItemInfo}
- {$ELSE}
- function GetMenuItemInfo(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- var lpmii: MENUITEMINFOA): BOOL; stdcall;
- {$EXTERNALSYM GetMenuItemInfo}
- {$ENDIF}
- function SetMenuItemInfoA(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOA): BOOL; stdcall;
- {$EXTERNALSYM SetMenuItemInfoA}
- function SetMenuItemInfoW(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOW): BOOL; stdcall;
- {$EXTERNALSYM SetMenuItemInfoW}
- {$IFDEF UNICODE}
- function SetMenuItemInfo(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOW): BOOL; stdcall;
- {$EXTERNALSYM SetMenuItemInfo}
- {$ELSE}
- function SetMenuItemInfo(hMenu: HMENU; uItem: UINT; fByPosition: BOOL;
- const lpmii: MENUITEMINFOA): BOOL; stdcall;
- {$EXTERNALSYM SetMenuItemInfo}
- {$ENDIF}
- const
- GMDI_USEDISABLED = $0001;
- {$EXTERNALSYM GMDI_USEDISABLED}
- GMDI_GOINTOPOPUPS = $0002;
- {$EXTERNALSYM GMDI_GOINTOPOPUPS}
- function GetMenuDefaultItem(hMenu: HMENU; fByPos, gmdiFlags: UINT): UINT; stdcall;
- {$EXTERNALSYM GetMenuDefaultItem}
- function SetMenuDefaultItem(hMenu: HMENU; uItem, fByPos: UINT): BOOL; stdcall;
- {$EXTERNALSYM SetMenuDefaultItem}
- function GetMenuItemRect(hWnd: HWND; hMenu: HMENU; uItem: UINT; var lprcItem: RECT): BOOL; stdcall;
- {$EXTERNALSYM GetMenuItemRect}
- function MenuItemFromPoint(hWnd: HWND; hMenu: HMENU; ptScreen: POINT): Integer; stdcall;
- {$EXTERNALSYM MenuItemFromPoint}
- //
- // Flags for TrackPopupMenu
- //
- const
- TPM_LEFTBUTTON = $0000;
- {$EXTERNALSYM TPM_LEFTBUTTON}
- TPM_RIGHTBUTTON = $0002;
- {$EXTERNALSYM TPM_RIGHTBUTTON}
- TPM_LEFTALIGN = $0000;
- {$EXTERNALSYM TPM_LEFTALIGN}
- TPM_CENTERALIGN = $0004;
- {$EXTERNALSYM TPM_CENTERALIGN}
- TPM_RIGHTALIGN = $0008;
- {$EXTERNALSYM TPM_RIGHTALIGN}
- TPM_TOPALIGN = $0000;
- {$EXTERNALSYM TPM_TOPALIGN}
- TPM_VCENTERALIGN = $0010;
- {$EXTERNALSYM TPM_VCENTERALIGN}
- TPM_BOTTOMALIGN = $0020;
- {$EXTERNALSYM TPM_BOTTOMALIGN}
- TPM_HORIZONTAL = $0000; // Horz alignment matters more
- {$EXTERNALSYM TPM_HORIZONTAL}
- TPM_VERTICAL = $0040; // Vert alignment matters more
- {$EXTERNALSYM TPM_VERTICAL}
- TPM_NONOTIFY = $0080; // Don't send any notification msgs
- {$EXTERNALSYM TPM_NONOTIFY}
- TPM_RETURNCMD = $0100;
- {$EXTERNALSYM TPM_RETURNCMD}
- TPM_RECURSE = $0001;
- {$EXTERNALSYM TPM_RECURSE}
- TPM_HORPOSANIMATION = $0400;
- {$EXTERNALSYM TPM_HORPOSANIMATION}
- TPM_HORNEGANIMATION = $0800;
- {$EXTERNALSYM TPM_HORNEGANIMATION}
- TPM_VERPOSANIMATION = $1000;
- {$EXTERNALSYM TPM_VERPOSANIMATION}
- TPM_VERNEGANIMATION = $2000;
- {$EXTERNALSYM TPM_VERNEGANIMATION}
- TPM_NOANIMATION = $4000;
- {$EXTERNALSYM TPM_NOANIMATION}
- TPM_LAYOUTRTL = $8000;
- {$EXTERNALSYM TPM_LAYOUTRTL}
- //
- // Drag-and-drop support
- // Obsolete - use OLE instead
- //
- type
- LPDROPSTRUCT = ^DROPSTRUCT;
- {$EXTERNALSYM LPDROPSTRUCT}
- tagDROPSTRUCT = record
- hwndSource: HWND;
- hwndSink: HWND;
- wFmt: DWORD;
- dwData: ULONG_PTR;
- ptDrop: POINT;
- dwControlData: DWORD;
- end;
- {$EXTERNALSYM tagDROPSTRUCT}
- DROPSTRUCT = tagDROPSTRUCT;
- {$EXTERNALSYM DROPSTRUCT}
- TDropStruct = DROPSTRUCT;
- PDropStruct = LPDROPSTRUCT;
- const
- DOF_EXECUTABLE = $8001; // wFmt flags
- {$EXTERNALSYM DOF_EXECUTABLE}
- DOF_DOCUMENT = $8002;
- {$EXTERNALSYM DOF_DOCUMENT}
- DOF_DIRECTORY = $8003;
- {$EXTERNALSYM DOF_DIRECTORY}
- DOF_MULTIPLE = $8004;
- {$EXTERNALSYM DOF_MULTIPLE}
- DOF_PROGMAN = $0001;
- {$EXTERNALSYM DOF_PROGMAN}
- DOF_SHELLDATA = $0002;
- {$EXTERNALSYM DOF_SHELLDATA}
- DO_DROPFILE = $454C4946;
- {$EXTERNALSYM DO_DROPFILE}
- DO_PRINTFILE = $544E5250;
- {$EXTERNALSYM DO_PRINTFILE}
- function DragObject(hwnd1, hwnd2: HWND; i: UINT; u: ULONG_PTR; hcursor: HCURSOR): DWORD; stdcall;
- {$EXTERNALSYM DragObject}
- function DragDetect(hwnd: HWND; pt: POINT): BOOL; stdcall;
- {$EXTERNALSYM DragDetect}
- function DrawIcon(hDC: HDC; X, Y: Integer; hIcon: HICON): BOOL; stdcall;
- {$EXTERNALSYM DrawIcon}
- //
- // DrawText() Format Flags
- //
- const
- DT_TOP = $00000000;
- {$EXTERNALSYM DT_TOP}
- DT_LEFT = $00000000;
- {$EXTERNALSYM DT_LEFT}
- DT_CENTER = $00000001;
- {$EXTERNALSYM DT_CENTER}
- DT_RIGHT = $00000002;
- {$EXTERNALSYM DT_RIGHT}
- DT_VCENTER = $00000004;
- {$EXTERNALSYM DT_VCENTER}
- DT_BOTTOM = $00000008;
- {$EXTERNALSYM DT_BOTTOM}
- DT_WORDBREAK = $00000010;
- {$EXTERNALSYM DT_WORDBREAK}
- DT_SINGLELINE = $00000020;
- {$EXTERNALSYM DT_SINGLELINE}
- DT_EXPANDTABS = $00000040;
- {$EXTERNALSYM DT_EXPANDTABS}
- DT_TABSTOP = $00000080;
- {$EXTERNALSYM DT_TABSTOP}
- DT_NOCLIP = $00000100;
- {$EXTERNALSYM DT_NOCLIP}
- DT_EXTERNALLEADING = $00000200;
- {$EXTERNALSYM DT_EXTERNALLEADING}
- DT_CALCRECT = $00000400;
- {$EXTERNALSYM DT_CALCRECT}
- DT_NOPREFIX = $00000800;
- {$EXTERNALSYM DT_NOPREFIX}
- DT_INTERNAL = $00001000;
- {$EXTERNALSYM DT_INTERNAL}
- DT_EDITCONTROL = $00002000;
- {$EXTERNALSYM DT_EDITCONTROL}
- DT_PATH_ELLIPSIS = $00004000;
- {$EXTERNALSYM DT_PATH_ELLIPSIS}
- DT_END_ELLIPSIS = $00008000;
- {$EXTERNALSYM DT_END_ELLIPSIS}
- DT_MODIFYSTRING = $00010000;
- {$EXTERNALSYM DT_MODIFYSTRING}
- DT_RTLREADING = $00020000;
- {$EXTERNALSYM DT_RTLREADING}
- DT_WORD_ELLIPSIS = $00040000;
- {$EXTERNALSYM DT_WORD_ELLIPSIS}
- DT_NOFULLWIDTHCHARBREAK = $00080000;
- {$EXTERNALSYM DT_NOFULLWIDTHCHARBREAK}
- DT_HIDEPREFIX = $00100000;
- {$EXTERNALSYM DT_HIDEPREFIX}
- DT_PREFIXONLY = $00200000;
- {$EXTERNALSYM DT_PREFIXONLY}
- type
- LPDRAWTEXTPARAMS = ^DRAWTEXTPARAMS;
- {$EXTERNALSYM LPDRAWTEXTPARAMS}
- tagDRAWTEXTPARAMS = record
- cbSize: UINT;
- iTabLength: Integer;
- iLeftMargin: Integer;
- iRightMargin: Integer;
- uiLengthDrawn: UINT;
- end;
- {$EXTERNALSYM tagDRAWTEXTPARAMS}
- DRAWTEXTPARAMS = tagDRAWTEXTPARAMS;
- {$EXTERNALSYM DRAWTEXTPARAMS}
- TDrawTextParams = DRAWTEXTPARAMS;
- PDrawTextParams = LPDRAWTEXTPARAMS;
- function DrawTextA(hDC: HDC; lpString: LPCSTR; nCount: Integer;
- var lpRect: RECT; uFormat: UINT): Integer; stdcall;
- {$EXTERNALSYM DrawTextA}
- function DrawTextW(hDC: HDC; lpString: LPCWSTR; nCount: Integer;
- var lpRect: RECT; uFormat: UINT): Integer; stdcall;
- {$EXTERNALSYM DrawTextW}
- {$IFDEF UNICODE}
- function DrawText(hDC: HDC; lpString: LPCWSTR; nCount: Integer;
- var lpRect: RECT; uFormat: UINT): Integer; stdcall;
- {$EXTERNALSYM DrawText}
- {$ELSE}
- function DrawText(hDC: HDC; lpString: LPCSTR; nCount: Integer;
- var lpRect: RECT; uFormat: UINT): Integer; stdcall;
- {$EXTERNALSYM DrawText}
- {$ENDIF}
- function DrawTextExA(hDc: HDC; lpchText: LPSTR; cchText: Integer;
- var lprc: RECT; dwDTFormat: UINT; lpDTParams: LPDRAWTEXTPARAMS): Integer; stdcall;
- {$EXTERNALSYM DrawTextExA}
- function DrawTextExW(hDc: HDC; lpchText: LPWSTR; cchText: Integer;
- var lprc: RECT; dwDTFormat: UINT; lpDTParams: LPDRAWTEXTPARAMS): Integer; stdcall;
- {$EXTERNALSYM DrawTextExW}
- {$IFDEF UNICODE}
- function DrawTextEx(hDc: HDC; lpchText: LPWSTR; cchText: Integer;
- var lprc: LPRECT; dwDTFormat: UINT; lpDTParams: LPDRAWTEXTPARAMS): Integer; stdcall;
- {$EXTERNALSYM DrawTextEx}
- {$ELSE}
- function DrawTextEx(hDc: HDC; lpchText: LPSTR; cchText: Integer;
- var lprc: RECT; dwDTFormat: UINT; lpDTParams: LPDRAWTEXTPARAMS): Integer; stdcall;
- {$EXTERNALSYM DrawTextEx}
- {$ENDIF}
- function GrayStringA(hDC: HDC; hBrush: HBRUSH; lpOutputFunc: GRAYSTRINGPROC;
- lpData: LPARAM; nCount, X, Y, nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM GrayStringA}
- function GrayStringW(hDC: HDC; hBrush: HBRUSH; lpOutputFunc: GRAYSTRINGPROC;
- lpData: LPARAM; nCount, X, Y, nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM GrayStringW}
- {$IFDEF UNICODE}
- function GrayString(hDC: HDC; hBrush: HBRUSH; lpOutputFunc: GRAYSTRINGPROC;
- lpData: LPARAM; nCount, X, Y, nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM GrayString}
- {$ELSE}
- function GrayString(hDC: HDC; hBrush: HBRUSH; lpOutputFunc: GRAYSTRINGPROC;
- lpData: LPARAM; nCount, X, Y, nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM GrayString}
- {$ENDIF}
- // Monolithic state-drawing routine//
- // Image type//
- const
- DST_COMPLEX = $0000;
- {$EXTERNALSYM DST_COMPLEX}
- DST_TEXT = $0001;
- {$EXTERNALSYM DST_TEXT}
- DST_PREFIXTEXT = $0002;
- {$EXTERNALSYM DST_PREFIXTEXT}
- DST_ICON = $0003;
- {$EXTERNALSYM DST_ICON}
- DST_BITMAP = $0004;
- {$EXTERNALSYM DST_BITMAP}
- // State type//
- DSS_NORMAL = $0000;
- {$EXTERNALSYM DSS_NORMAL}
- DSS_UNION = $0010; // Gray string appearance
- {$EXTERNALSYM DSS_UNION}
- DSS_DISABLED = $0020;
- {$EXTERNALSYM DSS_DISABLED}
- DSS_MONO = $0080;
- {$EXTERNALSYM DSS_MONO}
- DSS_HIDEPREFIX = $0200;
- {$EXTERNALSYM DSS_HIDEPREFIX}
- DSS_PREFIXONLY = $0400;
- {$EXTERNALSYM DSS_PREFIXONLY}
- DSS_RIGHT = $8000;
- {$EXTERNALSYM DSS_RIGHT}
- function DrawStateA(hdc: HDC; hbr: HBRUSH; lputputFunc: DRAWSTATEPROC;
- lData: LPARAM; wData: WPARAM; x, y, cx, cy: Integer; fuFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM DrawStateA}
- function DrawStateW(hdc: HDC; hbr: HBRUSH; lputputFunc: DRAWSTATEPROC;
- lData: LPARAM; wData: WPARAM; x, y, cx, cy: Integer; fuFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM DrawStateW}
- {$IFDEF UNICODE}
- function DrawState(hdc: HDC; hbr: HBRUSH; lputputFunc: DRAWSTATEPROC;
- lData: LPARAM; wData: WPARAM; x, y, cx, cy: Integer; fuFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM DrawState}
- {$ELSE}
- function DrawState(hdc: HDC; hbr: HBRUSH; lputputFunc: DRAWSTATEPROC;
- lData: LPARAM; wData: WPARAM; x, y, cx, cy: Integer; fuFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM DrawState}
- {$ENDIF}
- function TabbedTextOutA(hDC: HDC; X, Y: Integer; lpString: LPCSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT; nTabOrigin: Integer): LONG; stdcall;
- {$EXTERNALSYM TabbedTextOutA}
- function TabbedTextOutW(hDC: HDC; X, Y: Integer; lpString: LPCWSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT; nTabOrigin: Integer): LONG; stdcall;
- {$EXTERNALSYM TabbedTextOutW}
- {$IFDEF UNICODE}
- function TabbedTextOut(hDC: HDC; X, Y: Integer; lpString: LPCWSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT; nTabOrigin: Integer): LONG; stdcall;
- {$EXTERNALSYM TabbedTextOut}
- {$ELSE}
- function TabbedTextOut(hDC: HDC; X, Y: Integer; lpString: LPCSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT; nTabOrigin: Integer): LONG; stdcall;
- {$EXTERNALSYM TabbedTextOut}
- {$ENDIF}
- function GetTabbedTextExtentA(hDC: HDC; lpString: LPCSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT): DWORD; stdcall;
- {$EXTERNALSYM GetTabbedTextExtentA}
- function GetTabbedTextExtentW(hDC: HDC; lpString: LPCWSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT): DWORD; stdcall;
- {$EXTERNALSYM GetTabbedTextExtentW}
- {$IFDEF UNICODE}
- function GetTabbedTextExtent(hDC: HDC; lpString: LPCWSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT): DWORD; stdcall;
- {$EXTERNALSYM GetTabbedTextExtent}
- {$ELSE}
- function GetTabbedTextExtent(hDC: HDC; lpString: LPCSTR; nCount,
- nTabPositions: Integer; lpnTabStopPositions: LPINT): DWORD; stdcall;
- {$EXTERNALSYM GetTabbedTextExtent}
- {$ENDIF}
- function UpdateWindow(hWnd: HWND): BOOL; stdcall;
- {$EXTERNALSYM UpdateWindow}
- function SetActiveWindow(hWnd: HWND): HWND; stdcall;
- {$EXTERNALSYM SetActiveWindow}
- function GetForegroundWindow: HWND; stdcall;
- {$EXTERNALSYM GetForegroundWindow}
- function PaintDesktop(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM PaintDesktop}
- procedure SwitchToThisWindow(hwnd: HWND; fUnknown: BOOL); stdcall;
- {$EXTERNALSYM SwitchToThisWindow}
- function SetForegroundWindow(hWnd: HWND): BOOL; stdcall;
- {$EXTERNALSYM SetForegroundWindow}
- function AllowSetForegroundWindow(dwProcessId: DWORD): BOOL; stdcall;
- {$EXTERNALSYM AllowSetForegroundWindow}
- const
- ASFW_ANY = DWORD(-1);
- {$EXTERNALSYM ASFW_ANY}
- function LockSetForegroundWindow(uLockCode: UINT): BOOL; stdcall;
- {$EXTERNALSYM LockSetForegroundWindow}
- const
- LSFW_LOCK = 1;
- {$EXTERNALSYM LSFW_LOCK}
- LSFW_UNLOCK = 2;
- {$EXTERNALSYM LSFW_UNLOCK}
- function WindowFromDC(hDC: HDC): HWND; stdcall;
- {$EXTERNALSYM WindowFromDC}
- function GetDC(hWnd: HWND): HDC; stdcall;
- {$EXTERNALSYM GetDC}
- function GetDCEx(hWnd: HWND; hrgnClip: HRGN; flags: DWORD): HDC; stdcall;
- {$EXTERNALSYM GetDCEx}
- //
- // GetDCEx() flags
- //
- const
- DCX_WINDOW = $00000001;
- {$EXTERNALSYM DCX_WINDOW}
- DCX_CACHE = $00000002;
- {$EXTERNALSYM DCX_CACHE}
- DCX_NORESETATTRS = $00000004;
- {$EXTERNALSYM DCX_NORESETATTRS}
- DCX_CLIPCHILDREN = $00000008;
- {$EXTERNALSYM DCX_CLIPCHILDREN}
- DCX_CLIPSIBLINGS = $00000010;
- {$EXTERNALSYM DCX_CLIPSIBLINGS}
- DCX_PARENTCLIP = $00000020;
- {$EXTERNALSYM DCX_PARENTCLIP}
- DCX_EXCLUDERGN = $00000040;
- {$EXTERNALSYM DCX_EXCLUDERGN}
- DCX_INTERSECTRGN = $00000080;
- {$EXTERNALSYM DCX_INTERSECTRGN}
- DCX_EXCLUDEUPDATE = $00000100;
- {$EXTERNALSYM DCX_EXCLUDEUPDATE}
- DCX_INTERSECTUPDATE = $00000200;
- {$EXTERNALSYM DCX_INTERSECTUPDATE}
- DCX_LOCKWINDOWUPDATE = $00000400;
- {$EXTERNALSYM DCX_LOCKWINDOWUPDATE}
- DCX_VALIDATE = $00200000;
- {$EXTERNALSYM DCX_VALIDATE}
- function GetWindowDC(hWnd: HWND): HDC; stdcall;
- {$EXTERNALSYM GetWindowDC}
- function ReleaseDC(hWnd: HWND; hDC: HDC): Integer; stdcall;
- {$EXTERNALSYM ReleaseDC}
- function BeginPaint(hWnd: HWND; var lpPaint: PAINTSTRUCT): HDC; stdcall;
- {$EXTERNALSYM BeginPaint}
- function EndPaint(hWnd: HWND; const lpPaint: PAINTSTRUCT): BOOL; stdcall;
- {$EXTERNALSYM EndPaint}
- function GetUpdateRect(hWnd: HWND; var lpRect: RECT; bErase: BOOL): BOOL; stdcall;
- {$EXTERNALSYM GetUpdateRect}
- function GetUpdateRgn(hWnd: HWND; hRgn: HRGN; bErase: BOOL): Integer; stdcall;
- {$EXTERNALSYM GetUpdateRgn}
- function SetWindowRgn(hWnd: HWND; hRgn: HRGN; bRedraw: BOOL): Integer; stdcall;
- {$EXTERNALSYM SetWindowRgn}
- function GetWindowRgn(hWnd: HWND; hRgn: HRGN): Integer; stdcall;
- {$EXTERNALSYM GetWindowRgn}
- function GetWindowRgnBox(hWnd: HWND; var lprc: RECT): Integer; stdcall;
- {$EXTERNALSYM GetWindowRgnBox}
- function ExcludeUpdateRgn(hDC: HDC; hWnd: HWND): Integer; stdcall;
- {$EXTERNALSYM ExcludeUpdateRgn}
- function InvalidateRect(hWnd: HWND; lpRect: LPRECT; bErase: BOOL): BOOL; stdcall;
- {$EXTERNALSYM InvalidateRect}
- function ValidateRect(hWnd: HWND; lpRect: LPRECT): BOOL; stdcall;
- {$EXTERNALSYM ValidateRect}
- function InvalidateRgn(hWnd: HWND; hRgn: HRGN; bErase: BOOL): BOOL; stdcall;
- {$EXTERNALSYM InvalidateRgn}
- function ValidateRgn(hWnd: HWND; hRgn: HRGN): BOOL; stdcall;
- {$EXTERNALSYM ValidateRgn}
- function RedrawWindow(hWnd: HWND; lprcUpdate: LPRECT; hrgnUpdate: HRGN; flags: UINT): BOOL; stdcall;
- {$EXTERNALSYM RedrawWindow}
- //
- // RedrawWindow() flags
- //
- const
- RDW_INVALIDATE = $0001;
- {$EXTERNALSYM RDW_INVALIDATE}
- RDW_INTERNALPAINT = $0002;
- {$EXTERNALSYM RDW_INTERNALPAINT}
- RDW_ERASE = $0004;
- {$EXTERNALSYM RDW_ERASE}
- RDW_VALIDATE = $0008;
- {$EXTERNALSYM RDW_VALIDATE}
- RDW_NOINTERNALPAINT = $0010;
- {$EXTERNALSYM RDW_NOINTERNALPAINT}
- RDW_NOERASE = $0020;
- {$EXTERNALSYM RDW_NOERASE}
- RDW_NOCHILDREN = $0040;
- {$EXTERNALSYM RDW_NOCHILDREN}
- RDW_ALLCHILDREN = $0080;
- {$EXTERNALSYM RDW_ALLCHILDREN}
- RDW_UPDATENOW = $0100;
- {$EXTERNALSYM RDW_UPDATENOW}
- RDW_ERASENOW = $0200;
- {$EXTERNALSYM RDW_ERASENOW}
- RDW_FRAME = $0400;
- {$EXTERNALSYM RDW_FRAME}
- RDW_NOFRAME = $0800;
- {$EXTERNALSYM RDW_NOFRAME}
- //
- // LockWindowUpdate API
- //
- function LockWindowUpdate(hWndLock: HWND): BOOL; stdcall;
- {$EXTERNALSYM LockWindowUpdate}
- function ScrollWindow(hWnd: HWND; XAmount, YAmount: Integer; lpRect, lpClipRect: LPRECT): BOOL; stdcall;
- {$EXTERNALSYM ScrollWindow}
- function ScrollDC(hDC: HDC; dx, dy: Integer; lprcScroll, lprcClip: LPRECT;
- hrgnUpdate: HRGN; lprcUpdate: LPRECT): BOOL; stdcall;
- {$EXTERNALSYM ScrollDC}
- function ScrollWindowEx(hWnd: HWND; dx, dy: Integer; prcScroll, prcClip: LPRECT;
- hrgnUpdate: HRGN; prcUpdate: LPRECT; flags: UINT): Integer; stdcall;
- {$EXTERNALSYM ScrollWindowEx}
- const
- SW_SCROLLCHILDREN = $0001; // Scroll children within *lprcScroll.
- {$EXTERNALSYM SW_SCROLLCHILDREN}
- SW_INVALIDATE = $0002; // Invalidate after scrolling
- {$EXTERNALSYM SW_INVALIDATE}
- SW_ERASE = $0004; // If SW_INVALIDATE, don't send WM_ERASEBACKGROUND
- {$EXTERNALSYM SW_ERASE}
- SW_SMOOTHSCROLL = $0010; // Use smooth scrolling
- {$EXTERNALSYM SW_SMOOTHSCROLL}
- function SetScrollPos(hWnd: HWND; nBar, nPos: Integer; bRedraw: BOOL): Integer; stdcall;
- {$EXTERNALSYM SetScrollPos}
- function GetScrollPos(hWnd: HWND; nBar: Integer): Integer; stdcall;
- {$EXTERNALSYM GetScrollPos}
- function SetScrollRange(hWnd: HWND; nBar, nMinPos, nMaxPos: Integer; bRedraw: BOOL): BOOL; stdcall;
- {$EXTERNALSYM SetScrollRange}
- function GetScrollRange(hWnd: HWND; nBar: Integer; var lpMinPos, lpMaxPos: Integer): BOOL; stdcall;
- {$EXTERNALSYM GetScrollRange}
- function ShowScrollBar(hWnd: HWND; wBar: Integer; bShow: BOOL): BOOL; stdcall;
- {$EXTERNALSYM ShowScrollBar}
- function EnableScrollBar(hWnd: HWND; wSBflags, wArrows: UINT): BOOL; stdcall;
- {$EXTERNALSYM EnableScrollBar}
- //
- // EnableScrollBar() flags
- //
- const
- ESB_ENABLE_BOTH = $0000;
- {$EXTERNALSYM ESB_ENABLE_BOTH}
- ESB_DISABLE_BOTH = $0003;
- {$EXTERNALSYM ESB_DISABLE_BOTH}
- ESB_DISABLE_LEFT = $0001;
- {$EXTERNALSYM ESB_DISABLE_LEFT}
- ESB_DISABLE_RIGHT = $0002;
- {$EXTERNALSYM ESB_DISABLE_RIGHT}
- ESB_DISABLE_UP = $0001;
- {$EXTERNALSYM ESB_DISABLE_UP}
- ESB_DISABLE_DOWN = $0002;
- {$EXTERNALSYM ESB_DISABLE_DOWN}
- ESB_DISABLE_LTUP = ESB_DISABLE_LEFT;
- {$EXTERNALSYM ESB_DISABLE_LTUP}
- ESB_DISABLE_RTDN = ESB_DISABLE_RIGHT;
- {$EXTERNALSYM ESB_DISABLE_RTDN}
- function SetPropA(hWnd: HWND; lpString: LPCSTR; hData: HANDLE): BOOL; stdcall;
- {$EXTERNALSYM SetPropA}
- function SetPropW(hWnd: HWND; lpString: LPCWSTR; hData: HANDLE): BOOL; stdcall;
- {$EXTERNALSYM SetPropW}
- {$IFDEF UNICODE}
- function SetProp(hWnd: HWND; lpString: LPCWSTR; hData: HANDLE): BOOL; stdcall;
- {$EXTERNALSYM SetProp}
- {$ELSE}
- function SetProp(hWnd: HWND; lpString: LPCSTR; hData: HANDLE): BOOL; stdcall;
- {$EXTERNALSYM SetProp}
- {$ENDIF}
- function GetPropA(hWnd: HWND; lpString: LPCSTR): HANDLE; stdcall;
- {$EXTERNALSYM GetPropA}
- function GetPropW(hWnd: HWND; lpString: LPCWSTR): HANDLE; stdcall;
- {$EXTERNALSYM GetPropW}
- {$IFDEF UNICODE}
- function GetProp(hWnd: HWND; lpString: LPCWSTR): HANDLE; stdcall;
- {$EXTERNALSYM GetProp}
- {$ELSE}
- function GetProp(hWnd: HWND; lpString: LPCSTR): HANDLE; stdcall;
- {$EXTERNALSYM GetProp}
- {$ENDIF}
- function RemovePropA(hWnd: HWND; lpString: LPCSTR): HANDLE; stdcall;
- {$EXTERNALSYM RemovePropA}
- function RemovePropW(hWnd: HWND; lpString: LPCWSTR): HANDLE; stdcall;
- {$EXTERNALSYM RemovePropW}
- {$IFDEF UNICODE}
- function RemoveProp(hWnd: HWND; lpString: LPCWSTR): HANDLE; stdcall;
- {$EXTERNALSYM RemoveProp}
- {$ELSE}
- function RemoveProp(hWnd: HWND; lpString: LPCSTR): HANDLE; stdcall;
- {$EXTERNALSYM RemoveProp}
- {$ENDIF}
- function EnumPropsExA(hWnd: HWND; lpEnumFunc: PROPENUMPROCEXA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumPropsExA}
- function EnumPropsExW(hWnd: HWND; lpEnumFunc: PROPENUMPROCEXW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumPropsExW}
- {$IFDEF UNICODE}
- function EnumPropsEx(hWnd: HWND; lpEnumFunc: PROPENUMPROCEXW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumPropsEx}
- {$ELSE}
- function EnumPropsEx(hWnd: HWND; lpEnumFunc: PROPENUMPROCEXA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumPropsEx}
- {$ENDIF}
- function EnumPropsA(hWnd: HWND; lpEnumFunc: PROPENUMPROCA): Integer; stdcall;
- {$EXTERNALSYM EnumPropsA}
- function EnumPropsW(hWnd: HWND; lpEnumFunc: PROPENUMPROCW): Integer; stdcall;
- {$EXTERNALSYM EnumPropsW}
- {$IFDEF UNICODE}
- function EnumProps(hWnd: HWND; lpEnumFunc: PROPENUMPROCW): Integer; stdcall;
- {$EXTERNALSYM EnumProps}
- {$ELSE}
- function EnumProps(hWnd: HWND; lpEnumFunc: PROPENUMPROCA): Integer; stdcall;
- {$EXTERNALSYM EnumProps}
- {$ENDIF}
- function SetWindowTextA(hWnd: HWND; lpString: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM SetWindowTextA}
- function SetWindowTextW(hWnd: HWND; lpString: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM SetWindowTextW}
- {$IFDEF UNICODE}
- function SetWindowText(hWnd: HWND; lpString: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM SetWindowText}
- {$ELSE}
- function SetWindowText(hWnd: HWND; lpString: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM SetWindowText}
- {$ENDIF}
- function GetWindowTextA(hWnd: HWND; lpString: LPSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetWindowTextA}
- function GetWindowTextW(hWnd: HWND; lpString: LPWSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetWindowTextW}
- {$IFDEF UNICODE}
- function GetWindowText(hWnd: HWND; lpString: LPWSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetWindowText}
- {$ELSE}
- function GetWindowText(hWnd: HWND; lpString: LPSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetWindowText}
- {$ENDIF}
- function GetWindowTextLengthA(hWnd: HWND): Integer; stdcall;
- {$EXTERNALSYM GetWindowTextLengthA}
- function GetWindowTextLengthW(hWnd: HWND): Integer; stdcall;
- {$EXTERNALSYM GetWindowTextLengthW}
- {$IFDEF UNICODE}
- function GetWindowTextLength(hWnd: HWND): Integer; stdcall;
- {$EXTERNALSYM GetWindowTextLength}
- {$ELSE}
- function GetWindowTextLength(hWnd: HWND): Integer; stdcall;
- {$EXTERNALSYM GetWindowTextLength}
- {$ENDIF}
- function GetClientRect(hWnd: HWND; var lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM GetClientRect}
- function GetWindowRect(hWnd: HWND; var lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM GetWindowRect}
- function AdjustWindowRect(var lpRect: RECT; dwStyle: DWORD; bMenu: BOOL): BOOL; stdcall;
- {$EXTERNALSYM AdjustWindowRect}
- function AdjustWindowRectEx(var lpRect: RECT; dwStyle: DWORD;
- bMenu: BOOL; dwExStyle: DWORD): BOOL; stdcall;
- {$EXTERNALSYM AdjustWindowRectEx}
- const
- HELPINFO_WINDOW = $0001;
- {$EXTERNALSYM HELPINFO_WINDOW}
- HELPINFO_MENUITEM = $0002;
- {$EXTERNALSYM HELPINFO_MENUITEM}
- type
- LPHELPINFO = ^HELPINFO;
- {$EXTERNALSYM LPHELPINFO}
- tagHELPINFO = record // Structure pointed to by lParam of WM_HELP//
- cbSize: UINT; // Size in bytes of this struct //
- iContextType: Integer; // Either HELPINFO_WINDOW or HELPINFO_MENUITEM//
- iCtrlId: Integer; // Control Id or a Menu item Id.//
- hItemHandle: HANDLE; // hWnd of control or hMenu. //
- dwContextId: DWORD_PTR; // Context Id associated with this item//
- MousePos: POINT; // Mouse Position in screen co-ordinates//
- end;
- {$EXTERNALSYM tagHELPINFO}
- HELPINFO = tagHELPINFO;
- {$EXTERNALSYM HELPINFO}
- THelpInfo = HELPINFO;
- PHelpInfo = LPHELPINFO;
- function SetWindowContextHelpId(hwnd: HWND; dwContextHelpId: DWORD): BOOL; stdcall;
- {$EXTERNALSYM SetWindowContextHelpId}
- function GetWindowContextHelpId(hwnd: HWND): DWORD; stdcall;
- {$EXTERNALSYM GetWindowContextHelpId}
- function SetMenuContextHelpId(hmenu: HMENU; dwContextHelpId: DWORD): BOOL; stdcall;
- {$EXTERNALSYM SetMenuContextHelpId}
- function GetMenuContextHelpId(hmenu: HMENU): DWORD; stdcall;
- {$EXTERNALSYM GetMenuContextHelpId}
- //
- // MessageBox() Flags
- //
- const
- MB_OK = $00000000;
- {$EXTERNALSYM MB_OK}
- MB_OKCANCEL = $00000001;
- {$EXTERNALSYM MB_OKCANCEL}
- MB_ABORTRETRYIGNORE = $00000002;
- {$EXTERNALSYM MB_ABORTRETRYIGNORE}
- MB_YESNOCANCEL = $00000003;
- {$EXTERNALSYM MB_YESNOCANCEL}
- MB_YESNO = $00000004;
- {$EXTERNALSYM MB_YESNO}
- MB_RETRYCANCEL = $00000005;
- {$EXTERNALSYM MB_RETRYCANCEL}
- MB_CANCELTRYCONTINUE = $00000006;
- {$EXTERNALSYM MB_CANCELTRYCONTINUE}
- MB_ICONHAND = $00000010;
- {$EXTERNALSYM MB_ICONHAND}
- MB_ICONQUESTION = $00000020;
- {$EXTERNALSYM MB_ICONQUESTION}
- MB_ICONEXCLAMATION = $00000030;
- {$EXTERNALSYM MB_ICONEXCLAMATION}
- MB_ICONASTERISK = $00000040;
- {$EXTERNALSYM MB_ICONASTERISK}
- MB_USERICON = $00000080;
- {$EXTERNALSYM MB_USERICON}
- MB_ICONWARNING = MB_ICONEXCLAMATION;
- {$EXTERNALSYM MB_ICONWARNING}
- MB_ICONERROR = MB_ICONHAND;
- {$EXTERNALSYM MB_ICONERROR}
- MB_ICONINFORMATION = MB_ICONASTERISK;
- {$EXTERNALSYM MB_ICONINFORMATION}
- MB_ICONSTOP = MB_ICONHAND;
- {$EXTERNALSYM MB_ICONSTOP}
- MB_DEFBUTTON1 = $00000000;
- {$EXTERNALSYM MB_DEFBUTTON1}
- MB_DEFBUTTON2 = $00000100;
- {$EXTERNALSYM MB_DEFBUTTON2}
- MB_DEFBUTTON3 = $00000200;
- {$EXTERNALSYM MB_DEFBUTTON3}
- MB_DEFBUTTON4 = $00000300;
- {$EXTERNALSYM MB_DEFBUTTON4}
- MB_APPLMODAL = $00000000;
- {$EXTERNALSYM MB_APPLMODAL}
- MB_SYSTEMMODAL = $00001000;
- {$EXTERNALSYM MB_SYSTEMMODAL}
- MB_TASKMODAL = $00002000;
- {$EXTERNALSYM MB_TASKMODAL}
- MB_HELP = $00004000; // Help Button
- {$EXTERNALSYM MB_HELP}
- MB_NOFOCUS = $00008000;
- {$EXTERNALSYM MB_NOFOCUS}
- MB_SETFOREGROUND = $00010000;
- {$EXTERNALSYM MB_SETFOREGROUND}
- MB_DEFAULT_DESKTOP_ONLY = $00020000;
- {$EXTERNALSYM MB_DEFAULT_DESKTOP_ONLY}
- MB_TOPMOST = $00040000;
- {$EXTERNALSYM MB_TOPMOST}
- MB_RIGHT = $00080000;
- {$EXTERNALSYM MB_RIGHT}
- MB_RTLREADING = $00100000;
- {$EXTERNALSYM MB_RTLREADING}
- const
- {$IFDEF WINNT}
- {$IFDEF WINNT_0400_GREATER}
- MB_SERVICE_NOTIFICATION = $00200000;
- {$EXTERNALSYM MB_SERVICE_NOTIFICATION}
- {$ELSE}
- MB_SERVICE_NOTIFICATION = $00040000;
- {$EXTERNALSYM MB_SERVICE_NOTIFICATION}
- {$ENDIF}
- {$ELSE}
- MB_SERVICE_NOTIFICATION_NT3X = $00040000;
- {$EXTERNALSYM MB_SERVICE_NOTIFICATION_NT3X}
- {$ENDIF}
- MB_TYPEMASK = $0000000F;
- {$EXTERNALSYM MB_TYPEMASK}
- MB_ICONMASK = $000000F0;
- {$EXTERNALSYM MB_ICONMASK}
- MB_DEFMASK = $00000F00;
- {$EXTERNALSYM MB_DEFMASK}
- MB_MODEMASK = $00003000;
- {$EXTERNALSYM MB_MODEMASK}
- MB_MISCMASK = $0000C000;
- {$EXTERNALSYM MB_MISCMASK}
- function MessageBoxA(hWnd: HWND; lpText, lpCaption: LPCSTR; uType: UINT): Integer; stdcall;
- {$EXTERNALSYM MessageBoxA}
- function MessageBoxW(hWnd: HWND; lpText, lpCaption: LPCWSTR; uType: UINT): Integer; stdcall;
- {$EXTERNALSYM MessageBoxW}
- {$IFDEF UNICODE}
- function MessageBox(hWnd: HWND; lpText, lpCaption: LPCWSTR; uType: UINT): Integer; stdcall;
- {$EXTERNALSYM MessageBox}
- {$ELSE}
- function MessageBox(hWnd: HWND; lpText, lpCaption: LPCSTR; uType: UINT): Integer; stdcall;
- {$EXTERNALSYM MessageBox}
- {$ENDIF}
- function MessageBoxExA(hWnd: HWND; lpText, lpCaption: LPCSTR; uType: UINT;
- wLanguageId: WORD): Integer; stdcall;
- {$EXTERNALSYM MessageBoxExA}
- function MessageBoxExW(hWnd: HWND; lpText, lpCaption: LPCWSTR; uType: UINT;
- wLanguageId: WORD): Integer; stdcall;
- {$EXTERNALSYM MessageBoxExW}
- {$IFDEF UNICODE}
- function MessageBoxEx(hWnd: HWND; lpText, lpCaption: LPCWSTR; uType: UINT;
- wLanguageId: WORD): Integer; stdcall;
- {$EXTERNALSYM MessageBoxEx}
- {$ELSE}
- function MessageBoxEx(hWnd: HWND; lpText, lpCaption: LPCSTR; uType: UINT;
- wLanguageId: WORD): Integer; stdcall;
- {$EXTERNALSYM MessageBoxEx}
- {$ENDIF}
- type
- MSGBOXCALLBACK = procedure (var lpHelpInfo: HELPINFO); stdcall;
- {$EXTERNALSYM MSGBOXCALLBACK}
- TMsgBoxCallback = MSGBOXCALLBACK;
- LPMSGBOXPARAMSA = ^MSGBOXPARAMSA;
- {$EXTERNALSYM LPMSGBOXPARAMSA}
- tagMSGBOXPARAMSA = record
- cbSize: UINT;
- hwndOwner: HWND;
- hInstance: HINSTANCE;
- lpszText: LPCSTR;
- lpszCaption: LPCSTR;
- dwStyle: DWORD;
- lpszIcon: LPCSTR;
- dwContextHelpId: DWORD_PTR;
- lpfnMsgBoxCallback: MSGBOXCALLBACK;
- dwLanguageId: DWORD;
- end;
- {$EXTERNALSYM tagMSGBOXPARAMSA}
- MSGBOXPARAMSA = tagMSGBOXPARAMSA;
- {$EXTERNALSYM MSGBOXPARAMSA}
- TMsgBoxParamsA = MSGBOXPARAMSA;
- PMsgBoxParamsA = LPMSGBOXPARAMSA;
- LPMSGBOXPARAMSW = ^MSGBOXPARAMSW;
- {$EXTERNALSYM LPMSGBOXPARAMSW}
- tagMSGBOXPARAMSW = record
- cbSize: UINT;
- hwndOwner: HWND;
- hInstance: HINSTANCE;
- lpszText: LPCWSTR;
- lpszCaption: LPCWSTR;
- dwStyle: DWORD;
- lpszIcon: LPCWSTR;
- dwContextHelpId: DWORD_PTR;
- lpfnMsgBoxCallback: MSGBOXCALLBACK;
- dwLanguageId: DWORD;
- end;
- {$EXTERNALSYM tagMSGBOXPARAMSW}
- MSGBOXPARAMSW = tagMSGBOXPARAMSW;
- {$EXTERNALSYM MSGBOXPARAMSW}
- TMsgBoxParamsW = MSGBOXPARAMSW;
- PMsgBoxParamsW = LPMSGBOXPARAMSW;
- {$IFDEF UNICODE}
- MSGBOXPARAMS = MSGBOXPARAMSW;
- {$EXTERNALSYM MSGBOXPARAMS}
- LPMSGBOXPARAMS = LPMSGBOXPARAMSW;
- {$EXTERNALSYM LPMSGBOXPARAMS}
- TMsgBoxParams = TMsgBoxParamsW;
- PMsgBoxParams = PMsgBoxParamsW;
- {$ELSE}
- MSGBOXPARAMS = MSGBOXPARAMSA;
- {$EXTERNALSYM MSGBOXPARAMS}
- LPMSGBOXPARAMS = LPMSGBOXPARAMSA;
- {$EXTERNALSYM LPMSGBOXPARAMS}
- TMsgBoxParams = TMsgBoxParamsA;
- PMsgBoxParams = PMsgBoxParamsA;
- {$ENDIF}
- function MessageBoxIndirectA(const lpMsgBoxParams: MSGBOXPARAMSA): Integer; stdcall;
- {$EXTERNALSYM MessageBoxIndirectA}
- function MessageBoxIndirectW(const lpMsgBoxParams: MSGBOXPARAMSW): Integer; stdcall;
- {$EXTERNALSYM MessageBoxIndirectW}
- {$IFDEF UNICODE}
- function MessageBoxIndirect(const lpMsgBoxParams: MSGBOXPARAMSW): Integer; stdcall;
- {$EXTERNALSYM MessageBoxIndirect}
- {$ELSE}
- function MessageBoxIndirect(const lpMsgBoxParams: MSGBOXPARAMSA): Integer; stdcall;
- {$EXTERNALSYM MessageBoxIndirect}
- {$ENDIF}
- function MessageBeep(uType: UINT): BOOL; stdcall;
- {$EXTERNALSYM MessageBeep}
- function ShowCursor(bShow: BOOL): Integer; stdcall;
- {$EXTERNALSYM ShowCursor}
- function SetCursorPos(X, Y: Integer): BOOL; stdcall;
- {$EXTERNALSYM SetCursorPos}
- function SetCursor(hCursor: HCURSOR): HCURSOR; stdcall;
- {$EXTERNALSYM SetCursor}
- function GetCursorPos(var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetCursorPos}
- function ClipCursor(lpRect: LPRECT): BOOL; stdcall;
- {$EXTERNALSYM ClipCursor}
- function GetClipCursor(var lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM GetClipCursor}
- function GetCursor: HCURSOR; stdcall;
- {$EXTERNALSYM GetCursor}
- function CreateCaret(hWnd: HWND; hBitmap: HBITMAP; nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM CreateCaret}
- function GetCaretBlinkTime: UINT; stdcall;
- {$EXTERNALSYM GetCaretBlinkTime}
- function SetCaretBlinkTime(uMSeconds: UINT): BOOL; stdcall;
- {$EXTERNALSYM SetCaretBlinkTime}
- function DestroyCaret: BOOL; stdcall;
- {$EXTERNALSYM DestroyCaret}
- function HideCaret(hWnd: HWND): BOOL; stdcall;
- {$EXTERNALSYM HideCaret}
- function ShowCaret(hWnd: HWND): BOOL; stdcall;
- {$EXTERNALSYM ShowCaret}
- function SetCaretPos(X, Y: Integer): BOOL; stdcall;
- {$EXTERNALSYM SetCaretPos}
- function GetCaretPos(var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetCaretPos}
- function ClientToScreen(hWnd: HWND; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM ClientToScreen}
- function ScreenToClient(hWnd: HWND; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM ScreenToClient}
- function MapWindowPoints(hWndFrom, hWndTo: HWND; lpPoints: LPPOINT; cPoints: UINT): Integer; stdcall;
- {$EXTERNALSYM MapWindowPoints}
- function WindowFromPoint(Point: POINT): HWND; stdcall;
- {$EXTERNALSYM WindowFromPoint}
- function ChildWindowFromPoint(hWndParent: HWND; Point: POINT): HWND; stdcall;
- {$EXTERNALSYM ChildWindowFromPoint}
- const
- CWP_ALL = $0000;
- {$EXTERNALSYM CWP_ALL}
- CWP_SKIPINVISIBLE = $0001;
- {$EXTERNALSYM CWP_SKIPINVISIBLE}
- CWP_SKIPDISABLED = $0002;
- {$EXTERNALSYM CWP_SKIPDISABLED}
- CWP_SKIPTRANSPARENT = $0004;
- {$EXTERNALSYM CWP_SKIPTRANSPARENT}
- function ChildWindowFromPointEx(hwndParent: HWND; pt: POINT; uFlags: UINT): HWND; stdcall;
- {$EXTERNALSYM ChildWindowFromPointEx}
- //
- // Color Types
- //
- const
- CTLCOLOR_MSGBOX = 0;
- {$EXTERNALSYM CTLCOLOR_MSGBOX}
- CTLCOLOR_EDIT = 1;
- {$EXTERNALSYM CTLCOLOR_EDIT}
- CTLCOLOR_LISTBOX = 2;
- {$EXTERNALSYM CTLCOLOR_LISTBOX}
- CTLCOLOR_BTN = 3;
- {$EXTERNALSYM CTLCOLOR_BTN}
- CTLCOLOR_DLG = 4;
- {$EXTERNALSYM CTLCOLOR_DLG}
- CTLCOLOR_SCROLLBAR = 5;
- {$EXTERNALSYM CTLCOLOR_SCROLLBAR}
- CTLCOLOR_STATIC = 6;
- {$EXTERNALSYM CTLCOLOR_STATIC}
- CTLCOLOR_MAX = 7;
- {$EXTERNALSYM CTLCOLOR_MAX}
- COLOR_SCROLLBAR = 0;
- {$EXTERNALSYM COLOR_SCROLLBAR}
- COLOR_BACKGROUND = 1;
- {$EXTERNALSYM COLOR_BACKGROUND}
- COLOR_ACTIVECAPTION = 2;
- {$EXTERNALSYM COLOR_ACTIVECAPTION}
- COLOR_INACTIVECAPTION = 3;
- {$EXTERNALSYM COLOR_INACTIVECAPTION}
- COLOR_MENU = 4;
- {$EXTERNALSYM COLOR_MENU}
- COLOR_WINDOW = 5;
- {$EXTERNALSYM COLOR_WINDOW}
- COLOR_WINDOWFRAME = 6;
- {$EXTERNALSYM COLOR_WINDOWFRAME}
- COLOR_MENUTEXT = 7;
- {$EXTERNALSYM COLOR_MENUTEXT}
- COLOR_WINDOWTEXT = 8;
- {$EXTERNALSYM COLOR_WINDOWTEXT}
- COLOR_CAPTIONTEXT = 9;
- {$EXTERNALSYM COLOR_CAPTIONTEXT}
- COLOR_ACTIVEBORDER = 10;
- {$EXTERNALSYM COLOR_ACTIVEBORDER}
- COLOR_INACTIVEBORDER = 11;
- {$EXTERNALSYM COLOR_INACTIVEBORDER}
- COLOR_APPWORKSPACE = 12;
- {$EXTERNALSYM COLOR_APPWORKSPACE}
- COLOR_HIGHLIGHT = 13;
- {$EXTERNALSYM COLOR_HIGHLIGHT}
- COLOR_HIGHLIGHTTEXT = 14;
- {$EXTERNALSYM COLOR_HIGHLIGHTTEXT}
- COLOR_BTNFACE = 15;
- {$EXTERNALSYM COLOR_BTNFACE}
- COLOR_BTNSHADOW = 16;
- {$EXTERNALSYM COLOR_BTNSHADOW}
- COLOR_GRAYTEXT = 17;
- {$EXTERNALSYM COLOR_GRAYTEXT}
- COLOR_BTNTEXT = 18;
- {$EXTERNALSYM COLOR_BTNTEXT}
- COLOR_INACTIVECAPTIONTEXT = 19;
- {$EXTERNALSYM COLOR_INACTIVECAPTIONTEXT}
- COLOR_BTNHIGHLIGHT = 20;
- {$EXTERNALSYM COLOR_BTNHIGHLIGHT}
- COLOR_3DDKSHADOW = 21;
- {$EXTERNALSYM COLOR_3DDKSHADOW}
- COLOR_3DLIGHT = 22;
- {$EXTERNALSYM COLOR_3DLIGHT}
- COLOR_INFOTEXT = 23;
- {$EXTERNALSYM COLOR_INFOTEXT}
- COLOR_INFOBK = 24;
- {$EXTERNALSYM COLOR_INFOBK}
- COLOR_HOTLIGHT = 26;
- {$EXTERNALSYM COLOR_HOTLIGHT}
- COLOR_GRADIENTACTIVECAPTION = 27;
- {$EXTERNALSYM COLOR_GRADIENTACTIVECAPTION}
- COLOR_GRADIENTINACTIVECAPTION = 28;
- {$EXTERNALSYM COLOR_GRADIENTINACTIVECAPTION}
- COLOR_MENUHILIGHT = 29;
- {$EXTERNALSYM COLOR_MENUHILIGHT}
- COLOR_MENUBAR = 30;
- {$EXTERNALSYM COLOR_MENUBAR}
- COLOR_DESKTOP = COLOR_BACKGROUND;
- {$EXTERNALSYM COLOR_DESKTOP}
- COLOR_3DFACE = COLOR_BTNFACE;
- {$EXTERNALSYM COLOR_3DFACE}
- COLOR_3DSHADOW = COLOR_BTNSHADOW;
- {$EXTERNALSYM COLOR_3DSHADOW}
- COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT;
- {$EXTERNALSYM COLOR_3DHIGHLIGHT}
- COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT;
- {$EXTERNALSYM COLOR_3DHILIGHT}
- COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT;
- {$EXTERNALSYM COLOR_BTNHILIGHT}
- function GetSysColor(nIndex: Integer): DWORD; stdcall;
- {$EXTERNALSYM GetSysColor}
- function GetSysColorBrush(nIndex: Integer): HBRUSH; stdcall;
- {$EXTERNALSYM GetSysColorBrush}
- function SetSysColors(cElements: Integer; lpaElements: LPINT;
- lpaRgbValues: LPCOLORREF): BOOL; stdcall;
- {$EXTERNALSYM SetSysColors}
- function DrawFocusRect(hDC: HDC; const lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM DrawFocusRect}
- function FillRect(hDC: HDC; const lprc: RECT; hbr: HBRUSH): Integer; stdcall;
- {$EXTERNALSYM FillRect}
- function FrameRect(hDC: HDC; const lprc: RECT; hbr: HBRUSH): Integer; stdcall;
- {$EXTERNALSYM FrameRect}
- function InvertRect(hDC: HDC; const lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM InvertRect}
- function SetRect(var lprc: RECT; xLeft, yTop, xRight, yBottom: Integer): BOOL; stdcall;
- {$EXTERNALSYM SetRect}
- function SetRectEmpty(var lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM SetRectEmpty}
- function CopyRect(var lprcDst: RECT; const lprcSrc: RECT): BOOL; stdcall;
- {$EXTERNALSYM CopyRect}
- function InflateRect(var lprc: RECT; dx, dy: Integer): BOOL; stdcall;
- {$EXTERNALSYM InflateRect}
- function IntersectRect(var lprcDst: RECT; const lprcSrc1, lprcSrc2: RECT): BOOL; stdcall;
- {$EXTERNALSYM IntersectRect}
- function UnionRect(var lprcDst: RECT; const lprcSrc1, lprcSrc2: RECT): BOOL; stdcall;
- {$EXTERNALSYM UnionRect}
- function SubtractRect(var lprcDst: RECT; const lprcSrc1, lprcSrc2: RECT): BOOL; stdcall;
- {$EXTERNALSYM SubtractRect}
- function OffsetRect(var lprc: RECT; dx, dy: Integer): BOOL; stdcall;
- {$EXTERNALSYM OffsetRect}
- function IsRectEmpty(const lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM IsRectEmpty}
- function EqualRect(const lprc1, lprc2: RECT): BOOL; stdcall;
- {$EXTERNALSYM EqualRect}
- function PtInRect(const lprc: RECT; pt: POINT): BOOL; stdcall;
- {$EXTERNALSYM PtInRect}
- function GetWindowWord(hWnd: HWND; nIndex: Integer): WORD; stdcall;
- {$EXTERNALSYM GetWindowWord}
- function SetWindowWord(hWnd: HWND; nIndex: Integer; wNewWord: WORD): WORD; stdcall;
- {$EXTERNALSYM SetWindowWord}
- function GetWindowLongA(hWnd: HWND; nIndex: Integer): LONG; stdcall;
- {$EXTERNALSYM GetWindowLongA}
- function GetWindowLongW(hWnd: HWND; nIndex: Integer): LONG; stdcall;
- {$EXTERNALSYM GetWindowLongW}
- {$IFDEF UNICODE}
- function GetWindowLong(hWnd: HWND; nIndex: Integer): LONG; stdcall;
- {$EXTERNALSYM GetWindowLong}
- {$ELSE}
- function GetWindowLong(hWnd: HWND; nIndex: Integer): LONG; stdcall;
- {$EXTERNALSYM GetWindowLong}
- {$ENDIF}
- function SetWindowLongA(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): LONG; stdcall;
- {$EXTERNALSYM SetWindowLongA}
- function SetWindowLongW(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): LONG; stdcall;
- {$EXTERNALSYM SetWindowLongW}
- {$IFDEF UNICODE}
- function SetWindowLong(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): LONG; stdcall;
- {$EXTERNALSYM SetWindowLong}
- {$ELSE}
- function SetWindowLong(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): LONG; stdcall;
- {$EXTERNALSYM SetWindowLong}
- {$ENDIF}
- function GetWindowLongPtrA(hWnd: HWND; nIndex: Integer): LONG_PTR;
- {$EXTERNALSYM GetWindowLongPtrA}
- function GetWindowLongPtrW(hWnd: HWND; nIndex: Integer): LONG_PTR;
- {$EXTERNALSYM GetWindowLongPtrW}
- {$IFDEF UNICODE}
- function GetWindowLongPtr(hWnd: HWND; nIndex: Integer): LONG_PTR;
- {$EXTERNALSYM GetWindowLongPtr}
- {$ELSE}
- function GetWindowLongPtr(hWnd: HWND; nIndex: Integer): LONG_PTR;
- {$EXTERNALSYM GetWindowLongPtr}
- {$ENDIF}
- function SetWindowLongPtrA(hWnd: HWND; nIndex: Integer; dwNewLong: LONG_PTR): LONG_PTR;
- {$EXTERNALSYM SetWindowLongPtrA}
- function SetWindowLongPtrW(hWnd: HWND; nIndex: Integer; dwNewLong: LONG_PTR): LONG_PTR;
- {$EXTERNALSYM SetWindowLongPtrW}
- {$IFDEF UNICODE}
- function SetWindowLongPtr(hWnd: HWND; nIndex: Integer; dwNewLong: LONG_PTR): LONG_PTR;
- {$EXTERNALSYM SetWindowLongPtr}
- {$ELSE}
- function SetWindowLongPtr(hWnd: HWND; nIndex: Integer; dwNewLong: LONG_PTR): LONG_PTR;
- {$EXTERNALSYM SetWindowLongPtr}
- {$ENDIF}
- function GetClassWord(hWnd: HWND; nIndex: Integer): WORD; stdcall;
- {$EXTERNALSYM GetClassWord}
- function SetClassWord(hWnd: HWND; nIndex: Integer; wNewWord: WORD): WORD; stdcall;
- {$EXTERNALSYM SetClassWord}
- function GetClassLongA(hWnd: HWND; nIndex: Integer): DWORD; stdcall;
- {$EXTERNALSYM GetClassLongA}
- function GetClassLongW(hWnd: HWND; nIndex: Integer): DWORD; stdcall;
- {$EXTERNALSYM GetClassLongW}
- {$IFDEF UNICODE}
- function GetClassLong(hWnd: HWND; nIndex: Integer): DWORD; stdcall;
- {$EXTERNALSYM GetClassLong}
- {$ELSE}
- function GetClassLong(hWnd: HWND; nIndex: Integer): DWORD; stdcall;
- {$EXTERNALSYM GetClassLong}
- {$ENDIF}
- function SetClassLongA(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): DWORD; stdcall;
- {$EXTERNALSYM SetClassLongA}
- function SetClassLongW(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): DWORD; stdcall;
- {$EXTERNALSYM SetClassLongW}
- {$IFDEF UNICODE}
- function SetClassLong(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): DWORD; stdcall;
- {$EXTERNALSYM SetClassLong}
- {$ELSE}
- function SetClassLong(hWnd: HWND; nIndex: Integer; dwNewLong: LONG): DWORD; stdcall;
- {$EXTERNALSYM SetClassLong}
- {$ENDIF}
- function GetClassLongPtrA(hWnd: HWND; nIndex: Integer): ULONG_PTR;
- {$EXTERNALSYM GetClassLongPtrA}
- function GetClassLongPtrW(hWnd: HWND; nIndex: Integer): ULONG_PTR;
- {$EXTERNALSYM GetClassLongPtrW}
- {$IFDEF UNICODE}
- function GetClassLongPtr(hWnd: HWND; nIndex: Integer): ULONG_PTR;
- {$EXTERNALSYM GetClassLongPtr}
- {$ELSE}
- function GetClassLongPtr(hWnd: HWND; nIndex: Integer): ULONG_PTR;
- {$EXTERNALSYM GetClassLongPtr}
- {$ENDIF}
- function SetClassLongPtrA(hWnd: HWND; nIndex: Integer; dwNewLong: ULONG_PTR): ULONG_PTR;
- {$EXTERNALSYM SetClassLongPtrA}
- function SetClassLongPtrW(hWnd: HWND; nIndex: Integer; dwNewLong: ULONG_PTR): ULONG_PTR;
- {$EXTERNALSYM SetClassLongPtrW}
- {$IFDEF UNICODE}
- function SetClassLongPtr(hWnd: HWND; nIndex: Integer; dwNewLong: ULONG_PTR): ULONG_PTR;
- {$EXTERNALSYM SetClassLongPtr}
- {$ELSE}
- function SetClassLongPtr(hWnd: HWND; nIndex: Integer; dwNewLong: ULONG_PTR): ULONG_PTR;
- {$EXTERNALSYM SetClassLongPtr}
- {$ENDIF}
- function GetProcessDefaultLayout(var pdwDefaultLayout: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetProcessDefaultLayout}
- function SetProcessDefaultLayout(dwDefaultLayout: DWORD): BOOL; stdcall;
- {$EXTERNALSYM SetProcessDefaultLayout}
- function GetDesktopWindow: HWND; stdcall;
- {$EXTERNALSYM GetDesktopWindow}
- function GetParent(hWnd: HWND): HWND; stdcall;
- {$EXTERNALSYM GetParent}
- function SetParent(hWndChild, hWndNewParent: HWND): HWND; stdcall;
- {$EXTERNALSYM SetParent}
- function EnumChildWindows(hWndParent: HWND; lpEnumFunc: WNDENUMPROC; lParam: LPARAM): BOOL; stdcall;
- {$EXTERNALSYM EnumChildWindows}
- function FindWindowA(lpClassName, lpWindowName: LPCSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindowA}
- function FindWindowW(lpClassName, lpWindowName: LPCWSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindowW}
- {$IFDEF UNICODE}
- function FindWindow(lpClassName, lpWindowName: LPCWSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindow}
- {$ELSE}
- function FindWindow(lpClassName, lpWindowName: LPCSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindow}
- {$ENDIF}
- function FindWindowExA(hwndParent, hwndChildAfter: HWND; lpszClass, lpszWindow: LPCSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindowExA}
- function FindWindowExW(hwndParent, hwndChildAfter: HWND; lpszClass, lpszWindow: LPCWSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindowExW}
- {$IFDEF UNICODE}
- function FindWindowEx(hwndParent, hwndChildAfter: HWND; lpszClass, lpszWindow: LPCWSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindowEx}
- {$ELSE}
- function FindWindowEx(hwndParent, hwndChildAfter: HWND; lpszClass, lpszWindow: LPCSTR): HWND; stdcall;
- {$EXTERNALSYM FindWindowEx}
- {$ENDIF}
- function GetShellWindow: HWND; stdcall;
- {$EXTERNALSYM GetShellWindow}
- function EnumWindows(lpEnumFunc: WNDENUMPROC; lParam: LPARAM): BOOL; stdcall;
- {$EXTERNALSYM EnumWindows}
- function EnumThreadWindows(dwThreadId: DWORD; lpfn: WNDENUMPROC; lParam: LPARAM): BOOL; stdcall;
- {$EXTERNALSYM EnumThreadWindows}
- function EnumTaskWindows(hTask: HANDLE; lpfn: WNDENUMPROC; lParam: LPARAM): BOOL;
- {$EXTERNALSYM EnumTaskWindows}
- function GetClassNameA(hWnd: HWND; lpClassName: LPSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClassNameA}
- function GetClassNameW(hWnd: HWND; lpClassName: LPWSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClassNameW}
- {$IFDEF UNICODE}
- function GetClassName(hWnd: HWND; lpClassName: LPWSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClassName}
- {$ELSE}
- function GetClassName(hWnd: HWND; lpClassName: LPSTR; nMaxCount: Integer): Integer; stdcall;
- {$EXTERNALSYM GetClassName}
- {$ENDIF}
- function GetTopWindow(hWnd: HWND): HWND; stdcall;
- {$EXTERNALSYM GetTopWindow}
- function GetNextWindow(hWnd: HWND; wCmd: UINT): HWND;
- {$EXTERNALSYM GetNextWindow}
- function GetWindowThreadProcessId(hWnd: HWND; lpdwProcessId: LPDWORD): DWORD; stdcall;
- {$EXTERNALSYM GetWindowThreadProcessId}
- function IsGUIThread(bConvert: BOOL): BOOL; stdcall;
- {$EXTERNALSYM IsGUIThread}
- function GetWindowTask(hWnd: HWND): HANDLE;
- {$EXTERNALSYM GetWindowTask}
- function GetLastActivePopup(hWnd: HWND): HWND; stdcall;
- {$EXTERNALSYM GetLastActivePopup}
- //
- // GetWindow() Constants
- //
- const
- GW_HWNDFIRST = 0;
- {$EXTERNALSYM GW_HWNDFIRST}
- GW_HWNDLAST = 1;
- {$EXTERNALSYM GW_HWNDLAST}
- GW_HWNDNEXT = 2;
- {$EXTERNALSYM GW_HWNDNEXT}
- GW_HWNDPREV = 3;
- {$EXTERNALSYM GW_HWNDPREV}
- GW_OWNER = 4;
- {$EXTERNALSYM GW_OWNER}
- GW_CHILD = 5;
- {$EXTERNALSYM GW_CHILD}
- {$IFNDEF WINVER_0500_GREATER} // #if(WINVER <= 0x0400)
- GW_MAX = 5;
- {$EXTERNALSYM GW_MAX}
- {$ELSE}
- GW_ENABLEDPOPUP = 6;
- {$EXTERNALSYM GW_ENABLEDPOPUP}
- GW_MAX = 6;
- {$EXTERNALSYM GW_MAX}
- {$ENDIF}
- function GetWindow(hWnd: HWND; uCmd: UINT): HWND; stdcall;
- {$EXTERNALSYM GetWindow}
- function SetWindowsHookA(nFilterType: Integer; pfnFilterProc: HOOKPROC): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHookA}
- function SetWindowsHookW(nFilterType: Integer; pfnFilterProc: HOOKPROC): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHookW}
- {$IFDEF UNICODE}
- function SetWindowsHook(nFilterType: Integer; pfnFilterProc: HOOKPROC): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHook}
- {$ELSE}
- function SetWindowsHook(nFilterType: Integer; pfnFilterProc: HOOKPROC): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHook}
- {$ENDIF}
- function UnhookWindowsHook(nCode: Integer; pfnFilterProc: HOOKPROC): BOOL; stdcall;
- {$EXTERNALSYM UnhookWindowsHook}
- function SetWindowsHookExA(idHook: Integer; lpfn: HOOKPROC; hmod: HINSTANCE;
- dwThreadId: DWORD): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHookExA}
- function SetWindowsHookExW(idHook: Integer; lpfn: HOOKPROC; hmod: HINSTANCE;
- dwThreadId: DWORD): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHookExW}
- {$IFDEF UNICODE}
- function SetWindowsHookEx(idHook: Integer; lpfn: HOOKPROC; hmod: HINSTANCE;
- dwThreadId: DWORD): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHookEx}
- {$ELSE}
- function SetWindowsHookEx(idHook: Integer; lpfn: HOOKPROC; hmod: HINSTANCE;
- dwThreadId: DWORD): HHOOK; stdcall;
- {$EXTERNALSYM SetWindowsHookEx}
- {$ENDIF}
- function UnhookWindowsHookEx(hhk: HHOOK): BOOL; stdcall;
- {$EXTERNALSYM UnhookWindowsHookEx}
- function CallNextHookEx(hhk: HHOOK; nCode: Integer; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
- {$EXTERNALSYM CallNextHookEx}
- //
- // Macros for source-level compatibility with old functions.
- //
- function DefHookProc(nCode: Integer; wParam: WPARAM; lParam: LPARAM; phhk: LPHHOOK): LRESULT;
- {$EXTERNALSYM DefHookProc}
- // ;win40 -- A lot of MF_* flags have been renamed as MFT_* and MFS_* flags//
- //
- // Menu flags for Add/Check/EnableMenuItem()
- ///)
- const
- MF_INSERT = $00000000;
- {$EXTERNALSYM MF_INSERT}
- MF_CHANGE = $00000080;
- {$EXTERNALSYM MF_CHANGE}
- MF_APPEND = $00000100;
- {$EXTERNALSYM MF_APPEND}
- MF_DELETE = $00000200;
- {$EXTERNALSYM MF_DELETE}
- MF_REMOVE = $00001000;
- {$EXTERNALSYM MF_REMOVE}
- MF_BYCOMMAND = $00000000;
- {$EXTERNALSYM MF_BYCOMMAND}
- MF_BYPOSITION = $00000400;
- {$EXTERNALSYM MF_BYPOSITION}
- MF_SEPARATOR = $00000800;
- {$EXTERNALSYM MF_SEPARATOR}
- MF_ENABLED = $00000000;
- {$EXTERNALSYM MF_ENABLED}
- MF_GRAYED = $00000001;
- {$EXTERNALSYM MF_GRAYED}
- MF_DISABLED = $00000002;
- {$EXTERNALSYM MF_DISABLED}
- MF_UNCHECKED = $00000000;
- {$EXTERNALSYM MF_UNCHECKED}
- MF_CHECKED = $00000008;
- {$EXTERNALSYM MF_CHECKED}
- MF_USECHECKBITMAPS = $00000200;
- {$EXTERNALSYM MF_USECHECKBITMAPS}
- MF_STRING = $00000000;
- {$EXTERNALSYM MF_STRING}
- MF_BITMAP = $00000004;
- {$EXTERNALSYM MF_BITMAP}
- MF_OWNERDRAW = $00000100;
- {$EXTERNALSYM MF_OWNERDRAW}
- MF_POPUP = $00000010;
- {$EXTERNALSYM MF_POPUP}
- MF_MENUBARBREAK = $00000020;
- {$EXTERNALSYM MF_MENUBARBREAK}
- MF_MENUBREAK = $00000040;
- {$EXTERNALSYM MF_MENUBREAK}
- MF_UNHILITE = $00000000;
- {$EXTERNALSYM MF_UNHILITE}
- MF_HILITE = $00000080;
- {$EXTERNALSYM MF_HILITE}
- MF_DEFAULT = $00001000;
- {$EXTERNALSYM MF_DEFAULT}
- MF_SYSMENU = $00002000;
- {$EXTERNALSYM MF_SYSMENU}
- MF_HELP = $00004000;
- {$EXTERNALSYM MF_HELP}
- MF_RIGHTJUSTIFY = $00004000;
- {$EXTERNALSYM MF_RIGHTJUSTIFY}
- MF_MOUSESELECT = $00008000;
- {$EXTERNALSYM MF_MOUSESELECT}
- MF_END = $00000080; // Obsolete -- only used by old RES files
- {$EXTERNALSYM MF_END}
- MFT_STRING = MF_STRING;
- {$EXTERNALSYM MFT_STRING}
- MFT_BITMAP = MF_BITMAP;
- {$EXTERNALSYM MFT_BITMAP}
- MFT_MENUBARBREAK = MF_MENUBARBREAK;
- {$EXTERNALSYM MFT_MENUBARBREAK}
- MFT_MENUBREAK = MF_MENUBREAK;
- {$EXTERNALSYM MFT_MENUBREAK}
- MFT_OWNERDRAW = MF_OWNERDRAW;
- {$EXTERNALSYM MFT_OWNERDRAW}
- MFT_RADIOCHECK = $00000200;
- {$EXTERNALSYM MFT_RADIOCHECK}
- MFT_SEPARATOR = MF_SEPARATOR;
- {$EXTERNALSYM MFT_SEPARATOR}
- MFT_RIGHTORDER = $00002000;
- {$EXTERNALSYM MFT_RIGHTORDER}
- MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY;
- {$EXTERNALSYM MFT_RIGHTJUSTIFY}
- // Menu flags for Add/Check/EnableMenuItem()
- MFS_GRAYED = $00000003;
- {$EXTERNALSYM MFS_GRAYED}
- MFS_DISABLED = MFS_GRAYED;
- {$EXTERNALSYM MFS_DISABLED}
- MFS_CHECKED = MF_CHECKED;
- {$EXTERNALSYM MFS_CHECKED}
- MFS_HILITE = MF_HILITE;
- {$EXTERNALSYM MFS_HILITE}
- MFS_ENABLED = MF_ENABLED;
- {$EXTERNALSYM MFS_ENABLED}
- MFS_UNCHECKED = MF_UNCHECKED;
- {$EXTERNALSYM MFS_UNCHECKED}
- MFS_UNHILITE = MF_UNHILITE;
- {$EXTERNALSYM MFS_UNHILITE}
- MFS_DEFAULT = MF_DEFAULT;
- {$EXTERNALSYM MFS_DEFAULT}
- function CheckMenuRadioItem(hmenu: HMENU; idFirst, idLast, idCheck, uFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM CheckMenuRadioItem}
- //
- // Menu item resource format
- //
- type
- PMENUITEMTEMPLATEHEADER = ^MENUITEMTEMPLATEHEADER;
- MENUITEMTEMPLATEHEADER = record
- versionNumber: WORD;
- offset: WORD;
- end;
- {$EXTERNALSYM MENUITEMTEMPLATEHEADER}
- TMenuItemTemplateHeader = MENUITEMTEMPLATEHEADER;
- PMENUITEMTEMPLATE = ^MENUITEMTEMPLATE; // version 0
- MENUITEMTEMPLATE = record
- mtOption: WORD;
- mtID: WORD;
- mtString: array [0..0] of WCHAR;
- end;
- {$EXTERNALSYM MENUITEMTEMPLATE}
- TMenuItemTemplate = MENUITEMTEMPLATE;
- //
- // System Menu Command Values
- //
- const
- SC_SIZE = $F000;
- {$EXTERNALSYM SC_SIZE}
- SC_MOVE = $F010;
- {$EXTERNALSYM SC_MOVE}
- SC_MINIMIZE = $F020;
- {$EXTERNALSYM SC_MINIMIZE}
- SC_MAXIMIZE = $F030;
- {$EXTERNALSYM SC_MAXIMIZE}
- SC_NEXTWINDOW = $F040;
- {$EXTERNALSYM SC_NEXTWINDOW}
- SC_PREVWINDOW = $F050;
- {$EXTERNALSYM SC_PREVWINDOW}
- SC_CLOSE = $F060;
- {$EXTERNALSYM SC_CLOSE}
- SC_VSCROLL = $F070;
- {$EXTERNALSYM SC_VSCROLL}
- SC_HSCROLL = $F080;
- {$EXTERNALSYM SC_HSCROLL}
- SC_MOUSEMENU = $F090;
- {$EXTERNALSYM SC_MOUSEMENU}
- SC_KEYMENU = $F100;
- {$EXTERNALSYM SC_KEYMENU}
- SC_ARRANGE = $F110;
- {$EXTERNALSYM SC_ARRANGE}
- SC_RESTORE = $F120;
- {$EXTERNALSYM SC_RESTORE}
- SC_TASKLIST = $F130;
- {$EXTERNALSYM SC_TASKLIST}
- SC_SCREENSAVE = $F140;
- {$EXTERNALSYM SC_SCREENSAVE}
- SC_HOTKEY = $F150;
- {$EXTERNALSYM SC_HOTKEY}
- SC_DEFAULT = $F160;
- {$EXTERNALSYM SC_DEFAULT}
- SC_MONITORPOWER = $F170;
- {$EXTERNALSYM SC_MONITORPOWER}
- SC_CONTEXTHELP = $F180;
- {$EXTERNALSYM SC_CONTEXTHELP}
- SC_SEPARATOR = $F00F;
- {$EXTERNALSYM SC_SEPARATOR}
- //
- // Obsolete names
- //
- const
- SC_ICON = SC_MINIMIZE;
- {$EXTERNALSYM SC_ICON}
- SC_ZOOM = SC_MAXIMIZE;
- {$EXTERNALSYM SC_ZOOM}
- //
- // Resource Loading Routines
- //
- function LoadBitmapA(hInstance: HINSTANCE; lpBitmapName: LPCSTR): HBITMAP; stdcall;
- {$EXTERNALSYM LoadBitmapA}
- function LoadBitmapW(hInstance: HINSTANCE; lpBitmapName: LPCWSTR): HBITMAP; stdcall;
- {$EXTERNALSYM LoadBitmapW}
- {$IFDEF UNICODE}
- function LoadBitmap(hInstance: HINSTANCE; lpBitmapName: LPCWSTR): HBITMAP; stdcall;
- {$EXTERNALSYM LoadBitmap}
- {$ELSE}
- function LoadBitmap(hInstance: HINSTANCE; lpBitmapName: LPCSTR): HBITMAP; stdcall;
- {$EXTERNALSYM LoadBitmap}
- {$ENDIF}
- function LoadCursorA(hInstance: HINSTANCE; lpCursorName: LPCSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursorA}
- function LoadCursorW(hInstance: HINSTANCE; lpCursorName: LPCWSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursorW}
- {$IFDEF UNICODE}
- function LoadCursor(hInstance: HINSTANCE; lpCursorName: LPCWSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursor}
- {$ELSE}
- function LoadCursor(hInstance: HINSTANCE; lpCursorName: LPCSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursor}
- {$ENDIF}
- function LoadCursorFromFileA(lpFileName: LPCSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursorFromFileA}
- function LoadCursorFromFileW(lpFileName: LPCWSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursorFromFileW}
- {$IFDEF UNICODE}
- function LoadCursorFromFile(lpFileName: LPCWSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursorFromFile}
- {$ELSE}
- function LoadCursorFromFile(lpFileName: LPCSTR): HCURSOR; stdcall;
- {$EXTERNALSYM LoadCursorFromFile}
- {$ENDIF}
- function CreateCursor(hInst: HINSTANCE; xHotSpot, yHotSpot, nWidth, nHeight: Integer;
- pvANDPlane: PVOID; pvXORPlane: PVOID): HCURSOR; stdcall;
- {$EXTERNALSYM CreateCursor}
- function DestroyCursor(hCursor: HCURSOR): BOOL; stdcall;
- {$EXTERNALSYM DestroyCursor}
- function CopyCursor(pcur: HCURSOR): HCURSOR;
- {$EXTERNALSYM CopyCursor}
- //
- // Standard Cursor IDs
- //
- const
- IDC_ARROW = MAKEINTRESOURCE(32512);
- {$EXTERNALSYM IDC_ARROW}
- IDC_IBEAM = MAKEINTRESOURCE(32513);
- {$EXTERNALSYM IDC_IBEAM}
- IDC_WAIT = MAKEINTRESOURCE(32514);
- {$EXTERNALSYM IDC_WAIT}
- IDC_CROSS = MAKEINTRESOURCE(32515);
- {$EXTERNALSYM IDC_CROSS}
- IDC_UPARROW = MAKEINTRESOURCE(32516);
- {$EXTERNALSYM IDC_UPARROW}
- IDC_SIZE = MAKEINTRESOURCE(32640); // OBSOLETE: use IDC_SIZEALL
- {$EXTERNALSYM IDC_SIZE}
- IDC_ICON = MAKEINTRESOURCE(32641); // OBSOLETE: use IDC_ARROW
- {$EXTERNALSYM IDC_ICON}
- IDC_SIZENWSE = MAKEINTRESOURCE(32642);
- {$EXTERNALSYM IDC_SIZENWSE}
- IDC_SIZENESW = MAKEINTRESOURCE(32643);
- {$EXTERNALSYM IDC_SIZENESW}
- IDC_SIZEWE = MAKEINTRESOURCE(32644);
- {$EXTERNALSYM IDC_SIZEWE}
- IDC_SIZENS = MAKEINTRESOURCE(32645);
- {$EXTERNALSYM IDC_SIZENS}
- IDC_SIZEALL = MAKEINTRESOURCE(32646);
- {$EXTERNALSYM IDC_SIZEALL}
- IDC_NO = MAKEINTRESOURCE(32648); // not in win3.1
- {$EXTERNALSYM IDC_NO}
- IDC_HAND = MAKEINTRESOURCE(32649);
- {$EXTERNALSYM IDC_HAND}
- IDC_APPSTARTING = MAKEINTRESOURCE(32650); // not in win3.1
- {$EXTERNALSYM IDC_APPSTARTING}
- IDC_HELP = MAKEINTRESOURCE(32651);
- {$EXTERNALSYM IDC_HELP}
- function SetSystemCursor(hcur: HCURSOR; id: DWORD): BOOL; stdcall;
- {$EXTERNALSYM SetSystemCursor}
- type
- PICONINFO = ^ICONINFO;
- _ICONINFO = record
- fIcon: BOOL;
- xHotspot: DWORD;
- yHotspot: DWORD;
- hbmMask: HBITMAP;
- hbmColor: HBITMAP;
- end;
- {$EXTERNALSYM _ICONINFO}
- ICONINFO = _ICONINFO;
- {$EXTERNALSYM ICONINFO}
- TIconInfo = ICONINFO;
- function LoadIconA(hInstance: HINSTANCE; lpIconName: LPCSTR): HICON; stdcall;
- {$EXTERNALSYM LoadIconA}
- function LoadIconW(hInstance: HINSTANCE; lpIconName: LPCWSTR): HICON; stdcall;
- {$EXTERNALSYM LoadIconW}
- {$IFDEF UNICODE}
- function LoadIcon(hInstance: HINSTANCE; lpIconName: LPCWSTR): HICON; stdcall;
- {$EXTERNALSYM LoadIcon}
- {$ELSE}
- function LoadIcon(hInstance: HINSTANCE; lpIconName: LPCSTR): HICON; stdcall;
- {$EXTERNALSYM LoadIcon}
- {$ENDIF}
- function PrivateExtractIconsA(szFileName: LPCSTR; nIconIndex, cxIcon, cyIcon: Integer; var phicon: HICON;
- var piconid: UINT; nIcons, flags: UINT): UINT; stdcall;
- {$EXTERNALSYM PrivateExtractIconsA}
- function PrivateExtractIconsW(szFileName: LPCWSTR; nIconIndex, cxIcon, cyIcon: Integer; var phicon: HICON;
- var piconid: UINT; nIcons, flags: UINT): UINT; stdcall;
- {$EXTERNALSYM PrivateExtractIconsW}
- {$IFDEF UNICODE}
- function PrivateExtractIcons(szFileName: LPCWSTR; nIconIndex, cxIcon, cyIcon: Integer; var phicon: HICON;
- var piconid: UINT; nIcons, flags: UINT): UINT; stdcall;
- {$EXTERNALSYM PrivateExtractIcons}
- {$ELSE}
- function PrivateExtractIcons(szFileName: LPCSTR; nIconIndex, cxIcon, cyIcon: Integer; var phicon: HICON;
- var piconid: UINT; nIcons, flags: UINT): UINT; stdcall;
- {$EXTERNALSYM PrivateExtractIcons}
- {$ENDIF}
- function CreateIcon(hInstance: HINSTANCE; nWidth, nHeight: Integer; cPlanes,
- cBitsPixel: BYTE; lpbANDbits: LPBYTE; lpbXORbits: LPBYTE): HICON; stdcall;
- {$EXTERNALSYM CreateIcon}
- function DestroyIcon(hIcon: HICON): BOOL; stdcall;
- {$EXTERNALSYM DestroyIcon}
- function LookupIconIdFromDirectory(presbits: PBYTE; fIcon: BOOL): Integer; stdcall;
- {$EXTERNALSYM LookupIconIdFromDirectory}
- function LookupIconIdFromDirectoryEx(presbits: PBYTE; fIcon: BOOL;
- cxDesired, cyDesired: Integer; Flags: UINT): Integer; stdcall;
- {$EXTERNALSYM LookupIconIdFromDirectoryEx}
- function CreateIconFromResource(presbits: PBYTE; dwResSize: DWORD;
- fIcon: BOOL; dwVer: DWORD): HICON; stdcall;
- {$EXTERNALSYM CreateIconFromResource}
- function CreateIconFromResourceEx(presbits: PBYTE; dwResSize: DWORD; fIcon: BOOL;
- dwVer: DWORD; cxDesired, cyDesired: Integer; Flags: UINT): HICON; stdcall;
- {$EXTERNALSYM CreateIconFromResourceEx}
- // Icon/Cursor header//
- type
- LPCURSORSHAPE = ^CURSORSHAPE;
- {$EXTERNALSYM LPCURSORSHAPE}
- tagCURSORSHAPE = record
- xHotSpot: Integer;
- yHotSpot: Integer;
- cx: Integer;
- cy: Integer;
- cbWidth: Integer;
- Planes: BYTE;
- BitsPixel: BYTE;
- end;
- {$EXTERNALSYM tagCURSORSHAPE}
- CURSORSHAPE = tagCURSORSHAPE;
- {$EXTERNALSYM CURSORSHAPE}
- TCursorShape = CURSORSHAPE;
- PCursorShape = LPCURSORSHAPE;
- const
- IMAGE_BITMAP = 0;
- {$EXTERNALSYM IMAGE_BITMAP}
- IMAGE_ICON = 1;
- {$EXTERNALSYM IMAGE_ICON}
- IMAGE_CURSOR = 2;
- {$EXTERNALSYM IMAGE_CURSOR}
- IMAGE_ENHMETAFILE = 3;
- {$EXTERNALSYM IMAGE_ENHMETAFILE}
- LR_DEFAULTCOLOR = $0000;
- {$EXTERNALSYM LR_DEFAULTCOLOR}
- LR_MONOCHROME = $0001;
- {$EXTERNALSYM LR_MONOCHROME}
- LR_COLOR = $0002;
- {$EXTERNALSYM LR_COLOR}
- LR_COPYRETURNORG = $0004;
- {$EXTERNALSYM LR_COPYRETURNORG}
- LR_COPYDELETEORG = $0008;
- {$EXTERNALSYM LR_COPYDELETEORG}
- LR_LOADFROMFILE = $0010;
- {$EXTERNALSYM LR_LOADFROMFILE}
- LR_LOADTRANSPARENT = $0020;
- {$EXTERNALSYM LR_LOADTRANSPARENT}
- LR_DEFAULTSIZE = $0040;
- {$EXTERNALSYM LR_DEFAULTSIZE}
- LR_VGACOLOR = $0080;
- {$EXTERNALSYM LR_VGACOLOR}
- LR_LOADMAP3DCOLORS = $1000;
- {$EXTERNALSYM LR_LOADMAP3DCOLORS}
- LR_CREATEDIBSECTION = $2000;
- {$EXTERNALSYM LR_CREATEDIBSECTION}
- LR_COPYFROMRESOURCE = $4000;
- {$EXTERNALSYM LR_COPYFROMRESOURCE}
- LR_SHARED = $8000;
- {$EXTERNALSYM LR_SHARED}
- function LoadImageA(hinst: HINSTANCE; lpszName: LPCSTR; uType: UINT;
- cxDesired, cyDesired: Integer; fuLoad: UINT): HANDLE; stdcall;
- {$EXTERNALSYM LoadImageA}
- function LoadImageW(hinst: HINSTANCE; lpszName: LPCWSTR; uType: UINT;
- cxDesired, cyDesired: Integer; fuLoad: UINT): HANDLE; stdcall;
- {$EXTERNALSYM LoadImageW}
- {$IFDEF UNICODE}
- function LoadImage(hinst: HINSTANCE; lpszName: LPCWSTR; uType: UINT;
- cxDesired, cyDesired: Integer; fuLoad: UINT): HANDLE; stdcall;
- {$EXTERNALSYM LoadImage}
- {$ELSE}
- function LoadImage(hinst: HINSTANCE; lpszName: LPCSTR; uType: UINT;
- cxDesired, cyDesired: Integer; fuLoad: UINT): HANDLE; stdcall;
- {$EXTERNALSYM LoadImage}
- {$ENDIF}
- function CopyImage(hinst: HANDLE; lpszName: UINT; cxDesired, cyDesired: Integer;
- fuFlags: UINT): HANDLE; stdcall;
- {$EXTERNALSYM CopyImage}
- const
- DI_MASK = $0001;
- {$EXTERNALSYM DI_MASK}
- DI_IMAGE = $0002;
- {$EXTERNALSYM DI_IMAGE}
- DI_NORMAL = $0003;
- {$EXTERNALSYM DI_NORMAL}
- DI_COMPAT = $0004;
- {$EXTERNALSYM DI_COMPAT}
- DI_DEFAULTSIZE = $0008;
- {$EXTERNALSYM DI_DEFAULTSIZE}
- DI_NOMIRROR = $0010;
- {$EXTERNALSYM DI_NOMIRROR}
- function DrawIconEx(hdc: HDC; xLeft, yTop: Integer; hIcon: HICON;
- cxWidth, cyWidth: Integer; istepIfAniCur: UINT; hbrFlickerFreeDraw: HBRUSH;
- diFlags: UINT): BOOL; stdcall;
- {$EXTERNALSYM DrawIconEx}
- function CreateIconIndirect(const piconinfo: ICONINFO): HICON; stdcall;
- {$EXTERNALSYM CreateIconIndirect}
- function CopyIcon(hIcon: HICON): HICON; stdcall;
- {$EXTERNALSYM CopyIcon}
- function GetIconInfo(hIcon: HICON; var piconinfo: ICONINFO): BOOL; stdcall;
- {$EXTERNALSYM GetIconInfo}
- const
- RES_ICON = 1;
- {$EXTERNALSYM RES_ICON}
- RES_CURSOR = 2;
- {$EXTERNALSYM RES_CURSOR}
- //
- // OEM Resource Ordinal Numbers
- //
- OBM_CLOSE = 32754;
- {$EXTERNALSYM OBM_CLOSE}
- OBM_UPARROW = 32753;
- {$EXTERNALSYM OBM_UPARROW}
- OBM_DNARROW = 32752;
- {$EXTERNALSYM OBM_DNARROW}
- OBM_RGARROW = 32751;
- {$EXTERNALSYM OBM_RGARROW}
- OBM_LFARROW = 32750;
- {$EXTERNALSYM OBM_LFARROW}
- OBM_REDUCE = 32749;
- {$EXTERNALSYM OBM_REDUCE}
- OBM_ZOOM = 32748;
- {$EXTERNALSYM OBM_ZOOM}
- OBM_RESTORE = 32747;
- {$EXTERNALSYM OBM_RESTORE}
- OBM_REDUCED = 32746;
- {$EXTERNALSYM OBM_REDUCED}
- OBM_ZOOMD = 32745;
- {$EXTERNALSYM OBM_ZOOMD}
- OBM_RESTORED = 32744;
- {$EXTERNALSYM OBM_RESTORED}
- OBM_UPARROWD = 32743;
- {$EXTERNALSYM OBM_UPARROWD}
- OBM_DNARROWD = 32742;
- {$EXTERNALSYM OBM_DNARROWD}
- OBM_RGARROWD = 32741;
- {$EXTERNALSYM OBM_RGARROWD}
- OBM_LFARROWD = 32740;
- {$EXTERNALSYM OBM_LFARROWD}
- OBM_MNARROW = 32739;
- {$EXTERNALSYM OBM_MNARROW}
- OBM_COMBO = 32738;
- {$EXTERNALSYM OBM_COMBO}
- OBM_UPARROWI = 32737;
- {$EXTERNALSYM OBM_UPARROWI}
- OBM_DNARROWI = 32736;
- {$EXTERNALSYM OBM_DNARROWI}
- OBM_RGARROWI = 32735;
- {$EXTERNALSYM OBM_RGARROWI}
- OBM_LFARROWI = 32734;
- {$EXTERNALSYM OBM_LFARROWI}
- OBM_OLD_CLOSE = 32767;
- {$EXTERNALSYM OBM_OLD_CLOSE}
- OBM_SIZE = 32766;
- {$EXTERNALSYM OBM_SIZE}
- OBM_OLD_UPARROW = 32765;
- {$EXTERNALSYM OBM_OLD_UPARROW}
- OBM_OLD_DNARROW = 32764;
- {$EXTERNALSYM OBM_OLD_DNARROW}
- OBM_OLD_RGARROW = 32763;
- {$EXTERNALSYM OBM_OLD_RGARROW}
- OBM_OLD_LFARROW = 32762;
- {$EXTERNALSYM OBM_OLD_LFARROW}
- OBM_BTSIZE = 32761;
- {$EXTERNALSYM OBM_BTSIZE}
- OBM_CHECK = 32760;
- {$EXTERNALSYM OBM_CHECK}
- OBM_CHECKBOXES = 32759;
- {$EXTERNALSYM OBM_CHECKBOXES}
- OBM_BTNCORNERS = 32758;
- {$EXTERNALSYM OBM_BTNCORNERS}
- OBM_OLD_REDUCE = 32757;
- {$EXTERNALSYM OBM_OLD_REDUCE}
- OBM_OLD_ZOOM = 32756;
- {$EXTERNALSYM OBM_OLD_ZOOM}
- OBM_OLD_RESTORE = 32755;
- {$EXTERNALSYM OBM_OLD_RESTORE}
- OCR_NORMAL = 32512;
- {$EXTERNALSYM OCR_NORMAL}
- OCR_IBEAM = 32513;
- {$EXTERNALSYM OCR_IBEAM}
- OCR_WAIT = 32514;
- {$EXTERNALSYM OCR_WAIT}
- OCR_CROSS = 32515;
- {$EXTERNALSYM OCR_CROSS}
- OCR_UP = 32516;
- {$EXTERNALSYM OCR_UP}
- OCR_SIZE = 32640; // OBSOLETE: use OCR_SIZEALL
- {$EXTERNALSYM OCR_SIZE}
- OCR_ICON = 32641; // OBSOLETE: use OCR_NORMAL
- {$EXTERNALSYM OCR_ICON}
- OCR_SIZENWSE = 32642;
- {$EXTERNALSYM OCR_SIZENWSE}
- OCR_SIZENESW = 32643;
- {$EXTERNALSYM OCR_SIZENESW}
- OCR_SIZEWE = 32644;
- {$EXTERNALSYM OCR_SIZEWE}
- OCR_SIZENS = 32645;
- {$EXTERNALSYM OCR_SIZENS}
- OCR_SIZEALL = 32646;
- {$EXTERNALSYM OCR_SIZEALL}
- OCR_ICOCUR = 32647; // OBSOLETE: use OIC_WINLOGO
- {$EXTERNALSYM OCR_ICOCUR}
- OCR_NO = 32648;
- {$EXTERNALSYM OCR_NO}
- OCR_HAND = 32649;
- {$EXTERNALSYM OCR_HAND}
- OCR_APPSTARTING = 32650;
- {$EXTERNALSYM OCR_APPSTARTING}
- OIC_SAMPLE = 32512;
- {$EXTERNALSYM OIC_SAMPLE}
- OIC_HAND = 32513;
- {$EXTERNALSYM OIC_HAND}
- OIC_QUES = 32514;
- {$EXTERNALSYM OIC_QUES}
- OIC_BANG = 32515;
- {$EXTERNALSYM OIC_BANG}
- OIC_NOTE = 32516;
- {$EXTERNALSYM OIC_NOTE}
- OIC_WINLOGO = 32517;
- {$EXTERNALSYM OIC_WINLOGO}
- OIC_WARNING = OIC_BANG;
- {$EXTERNALSYM OIC_WARNING}
- OIC_ERROR = OIC_HAND;
- {$EXTERNALSYM OIC_ERROR}
- OIC_INFORMATION = OIC_NOTE;
- {$EXTERNALSYM OIC_INFORMATION}
- ORD_LANGDRIVER = 1; // The ordinal number for the entry point of language drivers.
- {$EXTERNALSYM ORD_LANGDRIVER}
- //
- // Standard Icon IDs
- //
- IDI_APPLICATION = MAKEINTRESOURCE(32512);
- {$EXTERNALSYM IDI_APPLICATION}
- IDI_HAND = MAKEINTRESOURCE(32513);
- {$EXTERNALSYM IDI_HAND}
- IDI_QUESTION = MAKEINTRESOURCE(32514);
- {$EXTERNALSYM IDI_QUESTION}
- IDI_EXCLAMATION = MAKEINTRESOURCE(32515);
- {$EXTERNALSYM IDI_EXCLAMATION}
- IDI_ASTERISK = MAKEINTRESOURCE(32516);
- {$EXTERNALSYM IDI_ASTERISK}
- IDI_WINLOGO = MAKEINTRESOURCE(32517);
- {$EXTERNALSYM IDI_WINLOGO}
- IDI_WARNING = IDI_EXCLAMATION;
- {$EXTERNALSYM IDI_WARNING}
- IDI_ERROR = IDI_HAND;
- {$EXTERNALSYM IDI_ERROR}
- IDI_INFORMATION = IDI_ASTERISK;
- {$EXTERNALSYM IDI_INFORMATION}
- function LoadStringA(hInstance: HINSTANCE; uID: UINT; lpBuffer: LPSTR;
- nBufferMax: Integer): Integer; stdcall;
- {$EXTERNALSYM LoadStringA}
- function LoadStringW(hInstance: HINSTANCE; uID: UINT; lpBuffer: LPWSTR;
- nBufferMax: Integer): Integer; stdcall;
- {$EXTERNALSYM LoadStringW}
- {$IFDEF UNICODE}
- function LoadString(hInstance: HINSTANCE; uID: UINT; lpBuffer: LPWSTR;
- nBufferMax: Integer): Integer; stdcall;
- {$EXTERNALSYM LoadString}
- {$ELSE}
- function LoadString(hInstance: HINSTANCE; uID: UINT; lpBuffer: LPSTR;
- nBufferMax: Integer): Integer; stdcall;
- {$EXTERNALSYM LoadString}
- {$ENDIF}
- //
- // Dialog Box Command IDs
- //
- const
- IDOK = 1;
- {$EXTERNALSYM IDOK}
- IDCANCEL = 2;
- {$EXTERNALSYM IDCANCEL}
- IDABORT = 3;
- {$EXTERNALSYM IDABORT}
- IDRETRY = 4;
- {$EXTERNALSYM IDRETRY}
- IDIGNORE = 5;
- {$EXTERNALSYM IDIGNORE}
- IDYES = 6;
- {$EXTERNALSYM IDYES}
- IDNO = 7;
- {$EXTERNALSYM IDNO}
- IDCLOSE = 8;
- {$EXTERNALSYM IDCLOSE}
- IDHELP = 9;
- {$EXTERNALSYM IDHELP}
- IDTRYAGAIN = 10;
- {$EXTERNALSYM IDTRYAGAIN}
- IDCONTINUE = 11;
- {$EXTERNALSYM IDCONTINUE}
- IDTIMEOUT = 32000;
- {$EXTERNALSYM IDTIMEOUT}
- //
- // Control Manager Structures and Definitions
- //
- //
- // Edit Control Styles
- //
- ES_LEFT = $0000;
- {$EXTERNALSYM ES_LEFT}
- ES_CENTER = $0001;
- {$EXTERNALSYM ES_CENTER}
- ES_RIGHT = $0002;
- {$EXTERNALSYM ES_RIGHT}
- ES_MULTILINE = $0004;
- {$EXTERNALSYM ES_MULTILINE}
- ES_UPPERCASE = $0008;
- {$EXTERNALSYM ES_UPPERCASE}
- ES_LOWERCASE = $0010;
- {$EXTERNALSYM ES_LOWERCASE}
- ES_PASSWORD = $0020;
- {$EXTERNALSYM ES_PASSWORD}
- ES_AUTOVSCROLL = $0040;
- {$EXTERNALSYM ES_AUTOVSCROLL}
- ES_AUTOHSCROLL = $0080;
- {$EXTERNALSYM ES_AUTOHSCROLL}
- ES_NOHIDESEL = $0100;
- {$EXTERNALSYM ES_NOHIDESEL}
- ES_OEMCONVERT = $0400;
- {$EXTERNALSYM ES_OEMCONVERT}
- ES_READONLY = $0800;
- {$EXTERNALSYM ES_READONLY}
- ES_WANTRETURN = $1000;
- {$EXTERNALSYM ES_WANTRETURN}
- ES_NUMBER = $2000;
- {$EXTERNALSYM ES_NUMBER}
- //
- // Edit Control Notification Codes
- //
- EN_SETFOCUS = $0100;
- {$EXTERNALSYM EN_SETFOCUS}
- EN_KILLFOCUS = $0200;
- {$EXTERNALSYM EN_KILLFOCUS}
- EN_CHANGE = $0300;
- {$EXTERNALSYM EN_CHANGE}
- EN_UPDATE = $0400;
- {$EXTERNALSYM EN_UPDATE}
- EN_ERRSPACE = $0500;
- {$EXTERNALSYM EN_ERRSPACE}
- EN_MAXTEXT = $0501;
- {$EXTERNALSYM EN_MAXTEXT}
- EN_HSCROLL = $0601;
- {$EXTERNALSYM EN_HSCROLL}
- EN_VSCROLL = $0602;
- {$EXTERNALSYM EN_VSCROLL}
- EN_ALIGN_LTR_EC = $0700;
- {$EXTERNALSYM EN_ALIGN_LTR_EC}
- EN_ALIGN_RTL_EC = $0701;
- {$EXTERNALSYM EN_ALIGN_RTL_EC}
- // Edit control EM_SETMARGIN parameters//
- EC_LEFTMARGIN = $0001;
- {$EXTERNALSYM EC_LEFTMARGIN}
- EC_RIGHTMARGIN = $0002;
- {$EXTERNALSYM EC_RIGHTMARGIN}
- EC_USEFONTINFO = $ffff;
- {$EXTERNALSYM EC_USEFONTINFO}
- // wParam of EM_GET/SETIMESTATUS //
- EMSIS_COMPOSITIONSTRING = $0001;
- {$EXTERNALSYM EMSIS_COMPOSITIONSTRING}
- // lParam for EMSIS_COMPOSITIONSTRING //
- EIMES_GETCOMPSTRATONCE = $0001;
- {$EXTERNALSYM EIMES_GETCOMPSTRATONCE}
- EIMES_CANCELCOMPSTRINFOCUS = $0002;
- {$EXTERNALSYM EIMES_CANCELCOMPSTRINFOCUS}
- EIMES_COMPLETECOMPSTRKILLFOCUS = $0004;
- {$EXTERNALSYM EIMES_COMPLETECOMPSTRKILLFOCUS}
- //
- // Edit Control Messages
- //
- EM_GETSEL = $00B0;
- {$EXTERNALSYM EM_GETSEL}
- EM_SETSEL = $00B1;
- {$EXTERNALSYM EM_SETSEL}
- EM_GETRECT = $00B2;
- {$EXTERNALSYM EM_GETRECT}
- EM_SETRECT = $00B3;
- {$EXTERNALSYM EM_SETRECT}
- EM_SETRECTNP = $00B4;
- {$EXTERNALSYM EM_SETRECTNP}
- EM_SCROLL = $00B5;
- {$EXTERNALSYM EM_SCROLL}
- EM_LINESCROLL = $00B6;
- {$EXTERNALSYM EM_LINESCROLL}
- EM_SCROLLCARET = $00B7;
- {$EXTERNALSYM EM_SCROLLCARET}
- EM_GETMODIFY = $00B8;
- {$EXTERNALSYM EM_GETMODIFY}
- EM_SETMODIFY = $00B9;
- {$EXTERNALSYM EM_SETMODIFY}
- EM_GETLINECOUNT = $00BA;
- {$EXTERNALSYM EM_GETLINECOUNT}
- EM_LINEINDEX = $00BB;
- {$EXTERNALSYM EM_LINEINDEX}
- EM_SETHANDLE = $00BC;
- {$EXTERNALSYM EM_SETHANDLE}
- EM_GETHANDLE = $00BD;
- {$EXTERNALSYM EM_GETHANDLE}
- EM_GETTHUMB = $00BE;
- {$EXTERNALSYM EM_GETTHUMB}
- EM_LINELENGTH = $00C1;
- {$EXTERNALSYM EM_LINELENGTH}
- EM_REPLACESEL = $00C2;
- {$EXTERNALSYM EM_REPLACESEL}
- EM_GETLINE = $00C4;
- {$EXTERNALSYM EM_GETLINE}
- EM_LIMITTEXT = $00C5;
- {$EXTERNALSYM EM_LIMITTEXT}
- EM_CANUNDO = $00C6;
- {$EXTERNALSYM EM_CANUNDO}
- EM_UNDO = $00C7;
- {$EXTERNALSYM EM_UNDO}
- EM_FMTLINES = $00C8;
- {$EXTERNALSYM EM_FMTLINES}
- EM_LINEFROMCHAR = $00C9;
- {$EXTERNALSYM EM_LINEFROMCHAR}
- EM_SETTABSTOPS = $00CB;
- {$EXTERNALSYM EM_SETTABSTOPS}
- EM_SETPASSWORDCHAR = $00CC;
- {$EXTERNALSYM EM_SETPASSWORDCHAR}
- EM_EMPTYUNDOBUFFER = $00CD;
- {$EXTERNALSYM EM_EMPTYUNDOBUFFER}
- EM_GETFIRSTVISIBLELINE = $00CE;
- {$EXTERNALSYM EM_GETFIRSTVISIBLELINE}
- EM_SETREADONLY = $00CF;
- {$EXTERNALSYM EM_SETREADONLY}
- EM_SETWORDBREAKPROC = $00D0;
- {$EXTERNALSYM EM_SETWORDBREAKPROC}
- EM_GETWORDBREAKPROC = $00D1;
- {$EXTERNALSYM EM_GETWORDBREAKPROC}
- EM_GETPASSWORDCHAR = $00D2;
- {$EXTERNALSYM EM_GETPASSWORDCHAR}
- EM_SETMARGINS = $00D3;
- {$EXTERNALSYM EM_SETMARGINS}
- EM_GETMARGINS = $00D4;
- {$EXTERNALSYM EM_GETMARGINS}
- EM_SETLIMITTEXT = EM_LIMITTEXT; // ;win40 Name change
- {$EXTERNALSYM EM_SETLIMITTEXT}
- EM_GETLIMITTEXT = $00D5;
- {$EXTERNALSYM EM_GETLIMITTEXT}
- EM_POSFROMCHAR = $00D6;
- {$EXTERNALSYM EM_POSFROMCHAR}
- EM_CHARFROMPOS = $00D7;
- {$EXTERNALSYM EM_CHARFROMPOS}
- EM_SETIMESTATUS = $00D8;
- {$EXTERNALSYM EM_SETIMESTATUS}
- EM_GETIMESTATUS = $00D9;
- {$EXTERNALSYM EM_GETIMESTATUS}
- //
- // EDITWORDBREAKPROC code values
- //
- WB_LEFT = 0;
- {$EXTERNALSYM WB_LEFT}
- WB_RIGHT = 1;
- {$EXTERNALSYM WB_RIGHT}
- WB_ISDELIMITER = 2;
- {$EXTERNALSYM WB_ISDELIMITER}
- //
- // Button Control Styles
- //
- BS_PUSHBUTTON = $00000000;
- {$EXTERNALSYM BS_PUSHBUTTON}
- BS_DEFPUSHBUTTON = $00000001;
- {$EXTERNALSYM BS_DEFPUSHBUTTON}
- BS_CHECKBOX = $00000002;
- {$EXTERNALSYM BS_CHECKBOX}
- BS_AUTOCHECKBOX = $00000003;
- {$EXTERNALSYM BS_AUTOCHECKBOX}
- BS_RADIOBUTTON = $00000004;
- {$EXTERNALSYM BS_RADIOBUTTON}
- BS_3STATE = $00000005;
- {$EXTERNALSYM BS_3STATE}
- BS_AUTO3STATE = $00000006;
- {$EXTERNALSYM BS_AUTO3STATE}
- BS_GROUPBOX = $00000007;
- {$EXTERNALSYM BS_GROUPBOX}
- BS_USERBUTTON = $00000008;
- {$EXTERNALSYM BS_USERBUTTON}
- BS_AUTORADIOBUTTON = $00000009;
- {$EXTERNALSYM BS_AUTORADIOBUTTON}
- BS_PUSHBOX = $0000000A;
- {$EXTERNALSYM BS_PUSHBOX}
- BS_OWNERDRAW = $0000000B;
- {$EXTERNALSYM BS_OWNERDRAW}
- BS_TYPEMASK = $0000000F;
- {$EXTERNALSYM BS_TYPEMASK}
- BS_LEFTTEXT = $00000020;
- {$EXTERNALSYM BS_LEFTTEXT}
- BS_TEXT = $00000000;
- {$EXTERNALSYM BS_TEXT}
- BS_ICON = $00000040;
- {$EXTERNALSYM BS_ICON}
- BS_BITMAP = $00000080;
- {$EXTERNALSYM BS_BITMAP}
- BS_LEFT = $00000100;
- {$EXTERNALSYM BS_LEFT}
- BS_RIGHT = $00000200;
- {$EXTERNALSYM BS_RIGHT}
- BS_CENTER = $00000300;
- {$EXTERNALSYM BS_CENTER}
- BS_TOP = $00000400;
- {$EXTERNALSYM BS_TOP}
- BS_BOTTOM = $00000800;
- {$EXTERNALSYM BS_BOTTOM}
- BS_VCENTER = $00000C00;
- {$EXTERNALSYM BS_VCENTER}
- BS_PUSHLIKE = $00001000;
- {$EXTERNALSYM BS_PUSHLIKE}
- BS_MULTILINE = $00002000;
- {$EXTERNALSYM BS_MULTILINE}
- BS_NOTIFY = $00004000;
- {$EXTERNALSYM BS_NOTIFY}
- BS_FLAT = $00008000;
- {$EXTERNALSYM BS_FLAT}
- BS_RIGHTBUTTON = BS_LEFTTEXT;
- {$EXTERNALSYM BS_RIGHTBUTTON}
- //
- // User Button Notification Codes
- //
- BN_CLICKED = 0;
- {$EXTERNALSYM BN_CLICKED}
- BN_PAINT = 1;
- {$EXTERNALSYM BN_PAINT}
- BN_HILITE = 2;
- {$EXTERNALSYM BN_HILITE}
- BN_UNHILITE = 3;
- {$EXTERNALSYM BN_UNHILITE}
- BN_DISABLE = 4;
- {$EXTERNALSYM BN_DISABLE}
- BN_DOUBLECLICKED = 5;
- {$EXTERNALSYM BN_DOUBLECLICKED}
- BN_PUSHED = BN_HILITE;
- {$EXTERNALSYM BN_PUSHED}
- BN_UNPUSHED = BN_UNHILITE;
- {$EXTERNALSYM BN_UNPUSHED}
- BN_DBLCLK = BN_DOUBLECLICKED;
- {$EXTERNALSYM BN_DBLCLK}
- BN_SETFOCUS = 6;
- {$EXTERNALSYM BN_SETFOCUS}
- BN_KILLFOCUS = 7;
- {$EXTERNALSYM BN_KILLFOCUS}
- //
- // Button Control Messages
- //
- BM_GETCHECK = $00F0;
- {$EXTERNALSYM BM_GETCHECK}
- BM_SETCHECK = $00F1;
- {$EXTERNALSYM BM_SETCHECK}
- BM_GETSTATE = $00F2;
- {$EXTERNALSYM BM_GETSTATE}
- BM_SETSTATE = $00F3;
- {$EXTERNALSYM BM_SETSTATE}
- BM_SETSTYLE = $00F4;
- {$EXTERNALSYM BM_SETSTYLE}
- BM_CLICK = $00F5;
- {$EXTERNALSYM BM_CLICK}
- BM_GETIMAGE = $00F6;
- {$EXTERNALSYM BM_GETIMAGE}
- BM_SETIMAGE = $00F7;
- {$EXTERNALSYM BM_SETIMAGE}
- BST_UNCHECKED = $0000;
- {$EXTERNALSYM BST_UNCHECKED}
- BST_CHECKED = $0001;
- {$EXTERNALSYM BST_CHECKED}
- BST_INDETERMINATE = $0002;
- {$EXTERNALSYM BST_INDETERMINATE}
- BST_PUSHED = $0004;
- {$EXTERNALSYM BST_PUSHED}
- BST_FOCUS = $0008;
- {$EXTERNALSYM BST_FOCUS}
- //
- // Static Control Constants
- //
- SS_LEFT = $00000000;
- {$EXTERNALSYM SS_LEFT}
- SS_CENTER = $00000001;
- {$EXTERNALSYM SS_CENTER}
- SS_RIGHT = $00000002;
- {$EXTERNALSYM SS_RIGHT}
- SS_ICON = $00000003;
- {$EXTERNALSYM SS_ICON}
- SS_BLACKRECT = $00000004;
- {$EXTERNALSYM SS_BLACKRECT}
- SS_GRAYRECT = $00000005;
- {$EXTERNALSYM SS_GRAYRECT}
- SS_WHITERECT = $00000006;
- {$EXTERNALSYM SS_WHITERECT}
- SS_BLACKFRAME = $00000007;
- {$EXTERNALSYM SS_BLACKFRAME}
- SS_GRAYFRAME = $00000008;
- {$EXTERNALSYM SS_GRAYFRAME}
- SS_WHITEFRAME = $00000009;
- {$EXTERNALSYM SS_WHITEFRAME}
- SS_USERITEM = $0000000A;
- {$EXTERNALSYM SS_USERITEM}
- SS_SIMPLE = $0000000B;
- {$EXTERNALSYM SS_SIMPLE}
- SS_LEFTNOWORDWRAP = $0000000C;
- {$EXTERNALSYM SS_LEFTNOWORDWRAP}
- SS_OWNERDRAW = $0000000D;
- {$EXTERNALSYM SS_OWNERDRAW}
- SS_BITMAP = $0000000E;
- {$EXTERNALSYM SS_BITMAP}
- SS_ENHMETAFILE = $0000000F;
- {$EXTERNALSYM SS_ENHMETAFILE}
- SS_ETCHEDHORZ = $00000010;
- {$EXTERNALSYM SS_ETCHEDHORZ}
- SS_ETCHEDVERT = $00000011;
- {$EXTERNALSYM SS_ETCHEDVERT}
- SS_ETCHEDFRAME = $00000012;
- {$EXTERNALSYM SS_ETCHEDFRAME}
- SS_TYPEMASK = $0000001F;
- {$EXTERNALSYM SS_TYPEMASK}
- SS_REALSIZECONTROL = $00000040;
- {$EXTERNALSYM SS_REALSIZECONTROL}
- SS_NOPREFIX = $00000080; // Don't do "&" character translation
- {$EXTERNALSYM SS_NOPREFIX}
- SS_NOTIFY = $00000100;
- {$EXTERNALSYM SS_NOTIFY}
- SS_CENTERIMAGE = $00000200;
- {$EXTERNALSYM SS_CENTERIMAGE}
- SS_RIGHTJUST = $00000400;
- {$EXTERNALSYM SS_RIGHTJUST}
- SS_REALSIZEIMAGE = $00000800;
- {$EXTERNALSYM SS_REALSIZEIMAGE}
- SS_SUNKEN = $00001000;
- {$EXTERNALSYM SS_SUNKEN}
- SS_EDITCONTROL = $00002000;
- {$EXTERNALSYM SS_EDITCONTROL}
- SS_ENDELLIPSIS = $00004000;
- {$EXTERNALSYM SS_ENDELLIPSIS}
- SS_PATHELLIPSIS = $00008000;
- {$EXTERNALSYM SS_PATHELLIPSIS}
- SS_WORDELLIPSIS = $0000C000;
- {$EXTERNALSYM SS_WORDELLIPSIS}
- SS_ELLIPSISMASK = $0000C000;
- {$EXTERNALSYM SS_ELLIPSISMASK}
- //
- // Static Control Mesages
- //
- STM_SETICON = $0170;
- {$EXTERNALSYM STM_SETICON}
- STM_GETICON = $0171;
- {$EXTERNALSYM STM_GETICON}
- STM_SETIMAGE = $0172;
- {$EXTERNALSYM STM_SETIMAGE}
- STM_GETIMAGE = $0173;
- {$EXTERNALSYM STM_GETIMAGE}
- STN_CLICKED = 0;
- {$EXTERNALSYM STN_CLICKED}
- STN_DBLCLK = 1;
- {$EXTERNALSYM STN_DBLCLK}
- STN_ENABLE = 2;
- {$EXTERNALSYM STN_ENABLE}
- STN_DISABLE = 3;
- {$EXTERNALSYM STN_DISABLE}
- STM_MSGMAX = $0174;
- {$EXTERNALSYM STM_MSGMAX}
- //
- // Dialog window class
- //
- WC_DIALOG = (MAKEINTATOM($8002));
- {$EXTERNALSYM WC_DIALOG}
- //
- // Get/SetWindowWord/Long offsets for use with WC_DIALOG windows
- //
- DWL_MSGRESULT = 0;
- {$EXTERNALSYM DWL_MSGRESULT}
- DWL_DLGPROC = 4;
- {$EXTERNALSYM DWL_DLGPROC}
- DWL_USER = 8;
- {$EXTERNALSYM DWL_USER}
- DWLP_MSGRESULT = 0;
- {$EXTERNALSYM DWLP_MSGRESULT}
- DWLP_DLGPROC = DWLP_MSGRESULT + SizeOf(LRESULT);
- {$EXTERNALSYM DWLP_DLGPROC}
- DWLP_USER = DWLP_DLGPROC + SizeOf(DLGPROC);
- {$EXTERNALSYM DWLP_USER}
- //
- // Dialog Manager Routines
- //
- function IsDialogMessageA(hDlg: HWND; const lpMsg: MSG): BOOL; stdcall;
- {$EXTERNALSYM IsDialogMessageA}
- function IsDialogMessageW(hDlg: HWND; const lpMsg: MSG): BOOL; stdcall;
- {$EXTERNALSYM IsDialogMessageW}
- {$IFDEF UNICODE}
- function IsDialogMessage(hDlg: HWND; const lpMsg: MSG): BOOL; stdcall;
- {$EXTERNALSYM IsDialogMessage}
- {$ELSE}
- function IsDialogMessage(hDlg: HWND; const lpMsg: MSG): BOOL; stdcall;
- {$EXTERNALSYM IsDialogMessage}
- {$ENDIF}
- function MapDialogRect(hDlg: HWND; var lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM MapDialogRect}
- function DlgDirListA(hDlg: HWND; lpPathSpec: LPSTR; nIDListBox: Integer;
- nIDStaticPath: Integer; uFileType: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirListA}
- function DlgDirListW(hDlg: HWND; lpPathSpec: LPWSTR; nIDListBox: Integer;
- nIDStaticPath: Integer; uFileType: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirListW}
- {$IFDEF UNICODE}
- function DlgDirList(hDlg: HWND; lpPathSpec: LPWSTR; nIDListBox: Integer;
- nIDStaticPath: Integer; uFileType: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirList}
- {$ELSE}
- function DlgDirList(hDlg: HWND; lpPathSpec: LPSTR; nIDListBox: Integer;
- nIDStaticPath: Integer; uFileType: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirList}
- {$ENDIF}
- //
- // DlgDirList, DlgDirListComboBox flags values
- //
- const
- DDL_READWRITE = $0000;
- {$EXTERNALSYM DDL_READWRITE}
- DDL_READONLY = $0001;
- {$EXTERNALSYM DDL_READONLY}
- DDL_HIDDEN = $0002;
- {$EXTERNALSYM DDL_HIDDEN}
- DDL_SYSTEM = $0004;
- {$EXTERNALSYM DDL_SYSTEM}
- DDL_DIRECTORY = $0010;
- {$EXTERNALSYM DDL_DIRECTORY}
- DDL_ARCHIVE = $0020;
- {$EXTERNALSYM DDL_ARCHIVE}
- DDL_POSTMSGS = $2000;
- {$EXTERNALSYM DDL_POSTMSGS}
- DDL_DRIVES = $4000;
- {$EXTERNALSYM DDL_DRIVES}
- DDL_EXCLUSIVE = $8000;
- {$EXTERNALSYM DDL_EXCLUSIVE}
- function DlgDirSelectExA(hDlg: HWND; lpString: LPSTR; nCount, nIDListBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectExA}
- function DlgDirSelectExW(hDlg: HWND; lpString: LPWSTR; nCount, nIDListBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectExW}
- {$IFDEF UNICODE}
- function DlgDirSelectEx(hDlg: HWND; lpString: LPWSTR; nCount, nIDListBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectEx}
- {$ELSE}
- function DlgDirSelectEx(hDlg: HWND; lpString: LPSTR; nCount, nIDListBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectEx}
- {$ENDIF}
- function DlgDirListComboBoxA(hDlg: HWND; lpPathSpec: LPSTR; nIDComboBox: Integer;
- nIDStaticPath: Integer; uFiletype: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirListComboBoxA}
- function DlgDirListComboBoxW(hDlg: HWND; lpPathSpec: LPWSTR; nIDComboBox: Integer;
- nIDStaticPath: Integer; uFiletype: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirListComboBoxW}
- {$IFDEF UNICODE}
- function DlgDirListComboBox(hDlg: HWND; lpPathSpec: LPWSTR; nIDComboBox: Integer;
- nIDStaticPath: Integer; uFiletype: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirListComboBox}
- {$ELSE}
- function DlgDirListComboBox(hDlg: HWND; lpPathSpec: LPSTR; nIDComboBox: Integer;
- nIDStaticPath: Integer; uFiletype: UINT): Integer; stdcall;
- {$EXTERNALSYM DlgDirListComboBox}
- {$ENDIF}
- function DlgDirSelectComboBoxExA(hDlg: HWND; lpString: LPSTR; nCount: Integer;
- nIDComboBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectComboBoxExA}
- function DlgDirSelectComboBoxExW(hDlg: HWND; lpString: LPWSTR; nCount: Integer;
- nIDComboBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectComboBoxExW}
- {$IFDEF UNICODE}
- function DlgDirSelectComboBoxEx(hDlg: HWND; lpString: LPWSTR; nCount: Integer;
- nIDComboBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectComboBoxEx}
- {$ELSE}
- function DlgDirSelectComboBoxEx(hDlg: HWND; lpString: LPSTR; nCount: Integer;
- nIDComboBox: Integer): BOOL; stdcall;
- {$EXTERNALSYM DlgDirSelectComboBoxEx}
- {$ENDIF}
- //
- // Dialog Styles
- //
- const
- DS_ABSALIGN = $01;
- {$EXTERNALSYM DS_ABSALIGN}
- DS_SYSMODAL = $02;
- {$EXTERNALSYM DS_SYSMODAL}
- DS_LOCALEDIT = $20; // Edit items get Local storage.
- {$EXTERNALSYM DS_LOCALEDIT}
- DS_SETFONT = $40; // User specified font for Dlg controls
- {$EXTERNALSYM DS_SETFONT}
- DS_MODALFRAME = $80; // Can be combined with WS_CAPTION
- {$EXTERNALSYM DS_MODALFRAME}
- DS_NOIDLEMSG = $100; // WM_ENTERIDLE message will not be sent
- {$EXTERNALSYM DS_NOIDLEMSG}
- DS_SETFOREGROUND = $200; // not in win3.1
- {$EXTERNALSYM DS_SETFOREGROUND}
- DS_3DLOOK = $0004;
- {$EXTERNALSYM DS_3DLOOK}
- DS_FIXEDSYS = $0008;
- {$EXTERNALSYM DS_FIXEDSYS}
- DS_NOFAILCREATE = $0010;
- {$EXTERNALSYM DS_NOFAILCREATE}
- DS_CONTROL = $0400;
- {$EXTERNALSYM DS_CONTROL}
- DS_CENTER = $0800;
- {$EXTERNALSYM DS_CENTER}
- DS_CENTERMOUSE = $1000;
- {$EXTERNALSYM DS_CENTERMOUSE}
- DS_CONTEXTHELP = $2000;
- {$EXTERNALSYM DS_CONTEXTHELP}
- DS_SHELLFONT = (DS_SETFONT or DS_FIXEDSYS);
- {$EXTERNALSYM DS_SHELLFONT}
- //#if(_WIN32_WCE >= 0x0500)
- DS_USEPIXELS = $8000;
- {$EXTERNALSYM DS_USEPIXELS}
- //#endif
- DM_GETDEFID = (WM_USER+0);
- {$EXTERNALSYM DM_GETDEFID}
- DM_SETDEFID = (WM_USER+1);
- {$EXTERNALSYM DM_SETDEFID}
- DM_REPOSITION = (WM_USER+2);
- {$EXTERNALSYM DM_REPOSITION}
- //
- // Returned in HIWORD() of DM_GETDEFID result if msg is supported
- //
- DC_HASDEFID = $534B;
- {$EXTERNALSYM DC_HASDEFID}
- //
- // Dialog Codes
- //
- DLGC_WANTARROWS = $0001; // Control wants arrow keys
- {$EXTERNALSYM DLGC_WANTARROWS}
- DLGC_WANTTAB = $0002; // Control wants tab keys
- {$EXTERNALSYM DLGC_WANTTAB}
- DLGC_WANTALLKEYS = $0004; // Control wants all keys
- {$EXTERNALSYM DLGC_WANTALLKEYS}
- DLGC_WANTMESSAGE = $0004; // Pass message to control
- {$EXTERNALSYM DLGC_WANTMESSAGE}
- DLGC_HASSETSEL = $0008; // Understands EM_SETSEL message
- {$EXTERNALSYM DLGC_HASSETSEL}
- DLGC_DEFPUSHBUTTON = $0010; // Default pushbutton
- {$EXTERNALSYM DLGC_DEFPUSHBUTTON}
- DLGC_UNDEFPUSHBUTTON = $0020; // Non-default pushbutton
- {$EXTERNALSYM DLGC_UNDEFPUSHBUTTON}
- DLGC_RADIOBUTTON = $0040; // Radio button
- {$EXTERNALSYM DLGC_RADIOBUTTON}
- DLGC_WANTCHARS = $0080; // Want WM_CHAR messages
- {$EXTERNALSYM DLGC_WANTCHARS}
- DLGC_STATIC = $0100; // Static item: don't include
- {$EXTERNALSYM DLGC_STATIC}
- DLGC_BUTTON = $2000; // Button item: can be checked
- {$EXTERNALSYM DLGC_BUTTON}
- LB_CTLCODE = 0;
- {$EXTERNALSYM LB_CTLCODE}
- //
- // Listbox Return Values
- //
- LB_OKAY = 0;
- {$EXTERNALSYM LB_OKAY}
- LB_ERR = DWORD(-1);
- {$EXTERNALSYM LB_ERR}
- LB_ERRSPACE = DWORD(-2);
- {$EXTERNALSYM LB_ERRSPACE}
- //
- // The idStaticPath parameter to DlgDirList can have the following values
- // ORed if the list box should show other details of the files along with
- // the name of the files;
- //
- // all other details also will be returned
- //
- // Listbox Notification Codes
- //
- LBN_ERRSPACE = DWORD(-2);
- {$EXTERNALSYM LBN_ERRSPACE}
- LBN_SELCHANGE = 1;
- {$EXTERNALSYM LBN_SELCHANGE}
- LBN_DBLCLK = 2;
- {$EXTERNALSYM LBN_DBLCLK}
- LBN_SELCANCEL = 3;
- {$EXTERNALSYM LBN_SELCANCEL}
- LBN_SETFOCUS = 4;
- {$EXTERNALSYM LBN_SETFOCUS}
- LBN_KILLFOCUS = 5;
- {$EXTERNALSYM LBN_KILLFOCUS}
- //
- // Listbox messages
- //
- LB_ADDSTRING = $0180;
- {$EXTERNALSYM LB_ADDSTRING}
- LB_INSERTSTRING = $0181;
- {$EXTERNALSYM LB_INSERTSTRING}
- LB_DELETESTRING = $0182;
- {$EXTERNALSYM LB_DELETESTRING}
- LB_SELITEMRANGEEX = $0183;
- {$EXTERNALSYM LB_SELITEMRANGEEX}
- LB_RESETCONTENT = $0184;
- {$EXTERNALSYM LB_RESETCONTENT}
- LB_SETSEL = $0185;
- {$EXTERNALSYM LB_SETSEL}
- LB_SETCURSEL = $0186;
- {$EXTERNALSYM LB_SETCURSEL}
- LB_GETSEL = $0187;
- {$EXTERNALSYM LB_GETSEL}
- LB_GETCURSEL = $0188;
- {$EXTERNALSYM LB_GETCURSEL}
- LB_GETTEXT = $0189;
- {$EXTERNALSYM LB_GETTEXT}
- LB_GETTEXTLEN = $018A;
- {$EXTERNALSYM LB_GETTEXTLEN}
- LB_GETCOUNT = $018B;
- {$EXTERNALSYM LB_GETCOUNT}
- LB_SELECTSTRING = $018C;
- {$EXTERNALSYM LB_SELECTSTRING}
- LB_DIR = $018D;
- {$EXTERNALSYM LB_DIR}
- LB_GETTOPINDEX = $018E;
- {$EXTERNALSYM LB_GETTOPINDEX}
- LB_FINDSTRING = $018F;
- {$EXTERNALSYM LB_FINDSTRING}
- LB_GETSELCOUNT = $0190;
- {$EXTERNALSYM LB_GETSELCOUNT}
- LB_GETSELITEMS = $0191;
- {$EXTERNALSYM LB_GETSELITEMS}
- LB_SETTABSTOPS = $0192;
- {$EXTERNALSYM LB_SETTABSTOPS}
- LB_GETHORIZONTALEXTENT = $0193;
- {$EXTERNALSYM LB_GETHORIZONTALEXTENT}
- LB_SETHORIZONTALEXTENT = $0194;
- {$EXTERNALSYM LB_SETHORIZONTALEXTENT}
- LB_SETCOLUMNWIDTH = $0195;
- {$EXTERNALSYM LB_SETCOLUMNWIDTH}
- LB_ADDFILE = $0196;
- {$EXTERNALSYM LB_ADDFILE}
- LB_SETTOPINDEX = $0197;
- {$EXTERNALSYM LB_SETTOPINDEX}
- LB_GETITEMRECT = $0198;
- {$EXTERNALSYM LB_GETITEMRECT}
- LB_GETITEMDATA = $0199;
- {$EXTERNALSYM LB_GETITEMDATA}
- LB_SETITEMDATA = $019A;
- {$EXTERNALSYM LB_SETITEMDATA}
- LB_SELITEMRANGE = $019B;
- {$EXTERNALSYM LB_SELITEMRANGE}
- LB_SETANCHORINDEX = $019C;
- {$EXTERNALSYM LB_SETANCHORINDEX}
- LB_GETANCHORINDEX = $019D;
- {$EXTERNALSYM LB_GETANCHORINDEX}
- LB_SETCARETINDEX = $019E;
- {$EXTERNALSYM LB_SETCARETINDEX}
- LB_GETCARETINDEX = $019F;
- {$EXTERNALSYM LB_GETCARETINDEX}
- LB_SETITEMHEIGHT = $01A0;
- {$EXTERNALSYM LB_SETITEMHEIGHT}
- LB_GETITEMHEIGHT = $01A1;
- {$EXTERNALSYM LB_GETITEMHEIGHT}
- LB_FINDSTRINGEXACT = $01A2;
- {$EXTERNALSYM LB_FINDSTRINGEXACT}
- LB_SETLOCALE = $01A5;
- {$EXTERNALSYM LB_SETLOCALE}
- LB_GETLOCALE = $01A6;
- {$EXTERNALSYM LB_GETLOCALE}
- LB_SETCOUNT = $01A7;
- {$EXTERNALSYM LB_SETCOUNT}
- LB_INITSTORAGE = $01A8;
- {$EXTERNALSYM LB_INITSTORAGE}
- LB_ITEMFROMPOINT = $01A9;
- {$EXTERNALSYM LB_ITEMFROMPOINT}
- LB_MULTIPLEADDSTRING = $01B1;
- {$EXTERNALSYM LB_MULTIPLEADDSTRING}
- LB_GETLISTBOXINFO = $01B2;
- {$EXTERNALSYM LB_GETLISTBOXINFO}
- {$IFDEF WINVER_0400_GREATER}
- LB_MSGMAX = $01B3;
- {$EXTERNALSYM LB_MSGMAX}
- {$ELSE}
- {$IFDEF WINVER_0400_GREATER}
- LB_MSGMAX = $01B0;
- {$EXTERNALSYM LB_MSGMAX}
- {$ELSE}
- LB_MSGMAX = $01A8;
- {$EXTERNALSYM LB_MSGMAX}
- {$ENDIF}
- {$ENDIF}
- //
- // Listbox Styles
- //
- LBS_NOTIFY = $0001;
- {$EXTERNALSYM LBS_NOTIFY}
- LBS_SORT = $0002;
- {$EXTERNALSYM LBS_SORT}
- LBS_NOREDRAW = $0004;
- {$EXTERNALSYM LBS_NOREDRAW}
- LBS_MULTIPLESEL = $0008;
- {$EXTERNALSYM LBS_MULTIPLESEL}
- LBS_OWNERDRAWFIXED = $0010;
- {$EXTERNALSYM LBS_OWNERDRAWFIXED}
- LBS_OWNERDRAWVARIABLE = $0020;
- {$EXTERNALSYM LBS_OWNERDRAWVARIABLE}
- LBS_HASSTRINGS = $0040;
- {$EXTERNALSYM LBS_HASSTRINGS}
- LBS_USETABSTOPS = $0080;
- {$EXTERNALSYM LBS_USETABSTOPS}
- LBS_NOINTEGRALHEIGHT = $0100;
- {$EXTERNALSYM LBS_NOINTEGRALHEIGHT}
- LBS_MULTICOLUMN = $0200;
- {$EXTERNALSYM LBS_MULTICOLUMN}
- LBS_WANTKEYBOARDINPUT = $0400;
- {$EXTERNALSYM LBS_WANTKEYBOARDINPUT}
- LBS_EXTENDEDSEL = $0800;
- {$EXTERNALSYM LBS_EXTENDEDSEL}
- LBS_DISABLENOSCROLL = $1000;
- {$EXTERNALSYM LBS_DISABLENOSCROLL}
- LBS_NODATA = $2000;
- {$EXTERNALSYM LBS_NODATA}
- LBS_NOSEL = $4000;
- {$EXTERNALSYM LBS_NOSEL}
- LBS_COMBOBOX = $8000;
- {$EXTERNALSYM LBS_COMBOBOX}
- LBS_STANDARD = (LBS_NOTIFY or LBS_SORT or WS_VSCROLL or WS_BORDER);
- {$EXTERNALSYM LBS_STANDARD}
- //
- // Combo Box return Values
- //
- CB_OKAY = 0;
- {$EXTERNALSYM CB_OKAY}
- CB_ERR = DWORD(-1);
- {$EXTERNALSYM CB_ERR}
- CB_ERRSPACE = DWORD(-2);
- {$EXTERNALSYM CB_ERRSPACE}
- //
- // Combo Box Notification Codes
- //
- CBN_ERRSPACE = DWORD(-1);
- {$EXTERNALSYM CBN_ERRSPACE}
- CBN_SELCHANGE = 1;
- {$EXTERNALSYM CBN_SELCHANGE}
- CBN_DBLCLK = 2;
- {$EXTERNALSYM CBN_DBLCLK}
- CBN_SETFOCUS = 3;
- {$EXTERNALSYM CBN_SETFOCUS}
- CBN_KILLFOCUS = 4;
- {$EXTERNALSYM CBN_KILLFOCUS}
- CBN_EDITCHANGE = 5;
- {$EXTERNALSYM CBN_EDITCHANGE}
- CBN_EDITUPDATE = 6;
- {$EXTERNALSYM CBN_EDITUPDATE}
- CBN_DROPDOWN = 7;
- {$EXTERNALSYM CBN_DROPDOWN}
- CBN_CLOSEUP = 8;
- {$EXTERNALSYM CBN_CLOSEUP}
- CBN_SELENDOK = 9;
- {$EXTERNALSYM CBN_SELENDOK}
- CBN_SELENDCANCEL = 10;
- {$EXTERNALSYM CBN_SELENDCANCEL}