📄 charttypelib.odl
字号:
} SHITEMID;
typedef struct ITEMIDLIST // idl
{
SHITEMID mkid;
} ITEMIDLIST;
typedef struct BROWSEINFO {
LONG hwndOwner;
LONG pidlRoot; //ITEMIDLIST pidlRoot;
LONG /* LPTSTR */ pszDisplayName;// Return display name of item selected.
LONG /* LPCTSTR */ lpszTitle; // text to go in the banner over the tree.
LONG ulFlags; // Flags that control the return stuff
LONG lpfn;
LONG lParam; // extra info that's passed back in callbacks
LONG iImage; // output var: where to return the Image index.
} BROWSEINFO;
typedef enum ECSIDL {
[ helpstring("SHGetSpecialFolderLocation: Desktop") ]
CSIDL_DESKTOP = 0x0000,
[ helpstring("SHGetSpecialFolderLocation: Internet") ]
CSIDL_INTERNET = 0x0001,
[ helpstring("SHGetSpecialFolderLocation: Programs") ]
CSIDL_PROGRAMS = 0x0002,
[ helpstring("SHGetSpecialFolderLocation: Control Panel") ]
CSIDL_CONTROLS = 0x0003,
[ helpstring("SHGetSpecialFolderLocation: Printers") ]
CSIDL_PRINTERS = 0x0004,
[ helpstring("SHGetSpecialFolderLocation: Documents") ]
CSIDL_PERSONAL = 0x0005,
[ helpstring("SHGetSpecialFolderLocation: User's favorite items") ]
CSIDL_FAVORITES = 0x0006,
[ helpstring("SHGetSpecialFolderLocation: Startup Directory") ]
CSIDL_STARTUP = 0x0007,
[ helpstring("SHGetSpecialFolderLocation: Most Recently Used Documents") ]
CSIDL_RECENT = 0x0008,
[ helpstring("SHGetSpecialFolderLocation: Send To Menu Items") ]
CSIDL_SENDTO = 0x0009,
[ helpstring("SHGetSpecialFolderLocation: Recycle Bin") ]
CSIDL_BITBUCKET = 0x000a,
[ helpstring("SHGetSpecialFolderLocation: Start Menu Directory") ]
CSIDL_STARTMENU = 0x000b,
[ helpstring("SHGetSpecialFolderLocation: Desktop Directory") ]
CSIDL_DESKTOPDIRECTORY = 0x0010,
[ helpstring("SHGetSpecialFolderLocation: My Computer") ]
CSIDL_DRIVES = 0x0011,
[ helpstring("SHGetSpecialFolderLocation: Network Neighborhood") ]
CSIDL_NETWORK = 0x0012,
[ helpstring("SHGetSpecialFolderLocation: Network Neighborhood Directory") ]
CSIDL_NETHOOD = 0x0013,
[ helpstring("SHGetSpecialFolderLocation: Fonts") ]
CSIDL_FONTS = 0x0014,
[ helpstring("SHGetSpecialFolderLocation: Templates") ]
CSIDL_TEMPLATES = 0x0015,
[ helpstring("SHGetSpecialFolderLocation: Common Start Menu") ]
CSIDL_COMMON_STARTMENU = 0x0016,
[ helpstring("SHGetSpecialFolderLocation: Common Programs") ]
CSIDL_COMMON_PROGRAMS = 0X0017,
[ helpstring("SHGetSpecialFolderLocation: Common Startup") ]
CSIDL_COMMON_STARTUP = 0x0018,
[ helpstring("SHGetSpecialFolderLocation: Common Desktop Directory") ]
CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019,
[ helpstring("SHGetSpecialFolderLocation: Common Application Data") ]
CSIDL_APPDATA = 0x001a,
[ helpstring("SHGetSpecialFolderLocation: Common Printer Neighborhood") ]
CSIDL_PRINTHOOD = 0x001b,
[ helpstring("SHGetSpecialFolderLocation: User's nonlocalized Startup program group") ]
CSIDL_ALTSTARTUP = 0x001d, // DBCS
[ helpstring("SHGetSpecialFolderLocation: Common nonlocalized Startup program group") ]
CSIDL_COMMON_ALTSTARTUP = 0x001e, // DBCS
[ helpstring("SHGetSpecialFolderLocation: Common favorite items") ]
CSIDL_COMMON_FAVORITES = 0x001f,
[ helpstring("SHGetSpecialFolderLocation: Temporary Internet files") ]
CSIDL_INTERNET_CACHE = 0x0020,
[ helpstring("SHGetSpecialFolderLocation: Internet cookies") ]
CSIDL_COOKIES = 0x0021,
[ helpstring("SHGetSpecialFolderLocation: Internet history items") ]
CSIDL_HISTORY = 0x0022
} ECSIDL;
//end HC types
typedef [helpstring("CWP Type for Hooks")]
struct tagCWPSTRUCT{
LONG lParam;
LONG wParam;
LONG message;
LONG hwnd;
}CWPSTRUCT;
typedef
struct _STARTUPINFO {
LONG cb;
LPSTR lpReserved;
LPSTR lpDesktop;
LPSTR lpTitle;
LONG dwX;
LONG dwY;
LONG dwXSize;
LONG dwYSize;
LONG dwXCountChars;
LONG dwYCountChars;
LONG dwFillAttribute;
LONG dwFlags;
int wShowWindow;
int cbReserved2;
LONG lpReserved2;
LONG hStdInput;
LONG hStdOutput;
LONG hStdError;
} STARTUPINFO;
typedef struct OSVERSIONINFO {
LONG dwOSVersionInfoSize;
LONG dwMajorVersion;
LONG dwMinorVersion;
LONG dwBuildNumber;
LONG dwPlatformId;
BYTE szCSDVersion[128]; // Maintenance string for PSS usage
} OSVERSIONINFO;
typedef struct SECURITY_ATTRIBUTES {
LONG nLength;
//[size_is(nLength)] LPVOID lpSecurityDescriptor;
LONG lpSecurityDescriptor;
bool bInheritHandle;
} SECURITY_ATTRIBUTES;
typedef struct SOCKADDR {
short sin_family;
short sin_port;
LONG sin_addr;
BYTE sin_zero[8];
} SOCKADDR;
typedef struct WSAData {
short wVersion;
short wHighVersion;
BYTE szDescription[256]; //szDescription[WSADESCRIPTION_LEN+1];
BYTE szSystemStatus[128]; //szSystemStatus[WSASYS_STATUS_LEN+1];
short iMaxSockets;
short iMaxUdpDg;
LONG lpVendorInfo;
} WSADATA;
typedef struct HOSTENT {
LONG h_name;
LONG h_aliases;
short h_addrtype;
short h_length;
LONG h_addr_list;
} HOSTENT;
typedef struct fd_set {
LONG fd_count; // how many are SET?
LONG fd_array[64]; // an array of SOCKETs
} fd_set;
typedef struct StockData {
BSTR sDate;
BSTR sTime;
DOUBLE dOpen;
DOUBLE dHigh;
DOUBLE dLow;
DOUBLE dClose;
LONG iVol;
} StockData;
typedef struct PbButtonSpecs {
BSTR sCaption;
LONG iCaptionX;
RECT recButton;
} PbButtonSpecs;
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
// You need to define string constants in a module.
// Modules also need to reference a dll name. In this case you don't
// need to, so just give it a bogus name.
[dllname("StringConst")]
module StringConstants
{
// Define a constant mystr and assign it the value StringConstant.
const LPSTR sUnknownSymbol = "???";
//const LPSTR sEmpty = "";
const LPSTR sSettingChange = "Settings Change";
//const LPSTR sQuote2 = """";
const LPSTR C_MDIFORMCLASS_IDE = "ThunderMDIForm";
const LPSTR C_MDIFORMCLASS_EXE = "ThunderRT6MDIForm";
const LPSTR C_MDIFORMCLASS5_IDE = "ThunderMDIForm";
};
// Now call a function located in the Windows API, specifically
// User32.dll. Now you see why you need a dll name here, this is
// where the API function will come from.
///////////////////////////////////////////////////////////////////////
[dllname("user32.dll")]
module user32Declare
{
// Give the API function a descriptive help line, this will
// be seen in the Object browser. Then, you can declare the
// function. The entry attribute specifies the identifier for the
// entry point into the dll.
// The in attribute specifies a parameter as a value going into
// the function.
[
usesgetlasterror,
entry("GetCursorPos"),
helpstring("Gets the mouse cursor position"),
]
BOOL GetCursorPos(POINTL * lpPoint);
[
usesgetlasterror,
entry("ClientToScreen"),
helpstring("Converts client coordinates of specified point to screen coordinates"),
]
BOOL ClientToScreen(LONG hwnd, POINTL * lpPoint);
[
usesgetlasterror,
entry("SendMessageA"),
helpstring(""),
]
LONG SendMessage (LONG hWnd,
LONG wMsg,
LONG wParam,
LPSTR lParam);
[
usesgetlasterror,
entry("GetAsyncKeyState"),
helpstring("Gets asynchronouse state of a Windows virtual keys"),
]
LONG GetAsyncKeyState(LONG nKeyState);
[
usesgetlasterror,
entry("ReleaseDC"),
helpstring("Releases a DC obtained with GetDC or GetWindowDC"),
]
LONG ReleaseDC(LONG hwnd, LONG hdc);
[
usesgetlasterror,
entry("GetWindowDC"),
helpstring("Gets entire DC of given window"),
]
LONG GetWindowDC(LONG hwnd);
[
usesgetlasterror,
entry("GetWindowLongA"),
helpstring("Gets the indexed LONG data of a window handle (see GWL_ constants)")
]
LONG GetWindowLong(LONG hwnd, LONG nIndex);
[
usesgetlasterror,
entry("SetWindowPos"),
helpstring("Changes the window size, position, and z-order of a window")
]
BOOL SetWindowPos(LONG hwnd, LONG hwndInsertAfter,
LONG x, LONG y,
LONG cx, LONG cy,
LONG fuFlags);
[
usesgetlasterror,
entry("GetClientRect"),
helpstring("Retrieves coordinates of a window's client area")
]
LONG GetClientRect(LONG hwnd, RECT * lpRect);
[
usesgetlasterror,
entry("GetWindowRect"),
helpstring("Retrieves coordinates of a window's bounding rectangle")
]
LONG GetWindowRect(LONG hwnd, RECT * lpRect);
[
usesgetlasterror,
entry("GetSystemMetrics"),
helpstring("Get Various system metrics and system configuration settings"),
]
LONG GetSystemMetrics(LONG nIndex);
[
usesgetlasterror,
entry("ClipCursor"),
helpstring("Confines the mouse cursor to a given rectangle"),
]
BOOL ClipCursor(LPVOID lpRect);
[
usesgetlasterror,
entry("SetCursorPos"),
helpstring("Sets the mouse cursor position"),
]
LONG SetCursorPos(LONG x, LONG y);
[
usesgetlasterror,
entry("GetClipCursor"),
helpstring("Gets the rectangle where the mouse cursor is confined"),
]
BOOL GetClipCursor(RECT * lpRect);
[
usesgetlasterror,
entry("ShowCursor"),
helpstring("Show or hide the mouse cursor"),
]
LONG ShowCursor(BOOL bShow);
[
usesgetlasterror,
entry("InflateRect"),
helpstring("Increases or decreases the width and height of the specified rectangle, adding dx units to the left and right ends and dy units to the top and bottom (signed dx and dy increase the width and height when positive, and decrease when negative)"),
]
BOOL InflateRect(RECT * lpRect, LONG x, LONG y);
[
usesgetlasterror,
entry("DrawEdge"),
helpstring("Draws a 3-D edge on a rectangle according to the given edge and border flags"),
]
BOOL DrawEdge(LONG hdc, RECT * lpRect,
LONG edge, LONG grfFlags);
[
usesgetlasterror,
entry("DrawFrameControl"),
helpstring("Draws a control frame of a specified type and style"),
]
BOOL DrawFrameControl(LONG hdc, RECT * lpRect,
LONG uType, LONG uState);
[
usesgetlasterror,
entry("UpdateWindow"),
helpstring("Updates the client area of the specified window"),
]
BOOL UpdateWindow(LONG hWnd);
[
usesgetlasterror,
entry("GetDC"),
helpstring("Gets client area DC of given window"),
]
LONG GetDC(LONG hwnd);
[
usesgetlasterror,
entry("DrawStateA"),
helpstring("Displays an image and applies a visual effect to indicate a state, such as a disabled or default state"),
]
BOOL DrawState(LONG hDC, LONG hbr,
LONG lpDrawStateProc,
LONG lParam, LONG wParam,
LONG x, LONG y, LONG cx, LONG cy, LONG fuFlags);
[
usesgetlasterror,
entry("SetWindowRgn"),
helpstring("The SetWindowRgn function sets the window region of a window. The window region determines the area within the window where the system permits drawing"),
]
LONG SetWindowRgn(LONG hWnd, LONG hRgn, BOOL bRedraw);
[
usesgetlasterror,
entry("GetSysColor"),
helpstring("Returns color of the specified display element"),
]
LONG GetSysColor(LONG nIndex);
[
usesgetlasterror,
entry("GetDesktopWindow"),
helpstring("Returns handle of desktop window"),
]
LONG GetDesktopWindow();
[
usesgetlasterror,
entry("DrawTextExA"),
helpstring("(ANSII)-Copies the text of item idItem (according to fuFlags) in menu hMenu into the buffer lpsz"),
]
LONG DrawTextEx(LONG hDC, LPSTR lpsz, LONG n,
RECT * lpRect, LONG dwDTFormat,
DRAWTEXTPARAMS *lpDTParams);
[helpstring("User32 Hook Declare"), entry("SetWindowsHookExA")] LONG
SetWindowsHookEx(
LONG idHook,
LONG lpfn,
LONG hmod,
LONG dwThreadId);
[helpstring("User32 unHook Declare"), entry("UnhookWindowsHookEx")] LONG
UnhookWindowsHookEx(
LONG hHook);
};
///////////////////////////////////////////////////////////////////////
[dllname("gdi32.dll")]
module gdi32Declare
{
[
usesgetlasterror,
entry("GetCharWidth32A"),
helpstring("Retrieves the widths, in logical coordinates, of consecutive characters in a specified range from the current font"),
]
BOOL GetCharWidth32(LONG hdc,
LONG iFirstChar,
LONG iLastChar,
LONG * lpBuffer);
[
usesgetlasterror,
entry("BitBlt"),
helpstring("Combines source, destination, and pattern of two DCs according to ROP mode"),
]
BOOL BitBlt(LONG hdcDest,
LONG nXDest, LONG nYDest,
LONG nWidth, LONG nHeight,
LONG hdcSrc,
LONG nXSrc, LONG nYSrc,
LONG dwRop);
[
usesgetlasterror,
entry("StretchDIBits"),
helpstring("Copies the color data for a rectangle of pixels in a device-independent bitmap (DIB) to the specified destination rectangle"),
]
LONG StretchDIBits(LONG hdc,
LONG XDest,
LONG YDest,
LONG nDestWidth,
LONG nDestHeight,
LONG XSrc,
LONG YSrc,
LONG nSrcWidth,
LONG nSrcHeight,
LPVOID lpBits,
BITMAPINFO lpBitsInfo,
LONG iUsage,
LONG dwRop);
[
usesgetlasterror,
entry("ExtCreateRegion"),
helpstring("Creates a region from the specified region and transformation data"),
]
LONG ExtCreateRegion(LONG lpXform,
LONG nCount,
LPVOID lpRgnData);
[
usesgetlasterror,
entry("SelectObject"),
helpstring("Selects a given GDI object into a DC, returning the previous object"),
]
LONG SelectObject(LONG hdc, LONG hObject);
[
usesgetlasterror,
entry("SetBkMode"),
helpstring("Set the background mode of a DC"),
]
LONG SetBkMode(LONG hdc, LONG fnBkMode);
[
usesgetlasterror,
entry("SetTextColor"),
helpstring("Sets the text (foreground) color of a DC"),
]
LONG SetTextColor(LONG hdc, LONG clrref);
[
usesgetlasterror,
entry("SetROP2"),
helpstring("Sets the current foreground mix mode"),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -