易语言VISTA模拟窗口源码
系统结构:MakeTrans,PaintForm,DrawCaptionAndIcon,ColorARGB,ASCII转Unicode,初始化变量,LoadResData_path,LoadResData_data,数据处理,ReadResData,取数量,WndProc,MousePos,CreateCompatibleDC,CreateDIBSection,DeleteObject,GdipCreateFont,GdipCreateFontFamilyFromName,GdipCreateFromHDC,GdipCreateSolidFill,GdipCreateStringFormat,GdipDeleteBrush,GdipDeleteFont,GdipDeleteFontFamily,GdipDeleteGraphics,GdipDeleteStringFormat,GdipDisposeImage,GdipDrawImageRectI,GdipDrawString,GdipGetImageHeight,GdipGetImageWidth,GdipLoadImageFromFile,GdiplusShutdown,GdipReleaseDC,GdiplusStartup,GdipSetInterpolationMode,GdipSetStringFormatAlign,GdipSetStringFormatLineAlign,GetCursorPos,GetWindowLong,LoadCursor,SelectObject,SetCursor,SetWindowLong,SetWindowPos,UpdateLayeredWindow,GetDC,MultiByteToWideChar,DeleteDC,Sleep,GetWindowRect,GdipCreatePen1,GdipSetTextRenderingHint,StrToIntEx,LoadCursorBynum,GdipGraphicsClear,GdipFillRectangleI,GdipDrawRectangleI,GdipSetSmoothingMode,GdipCreatePath,GdipAddPathString,取文本指针,取字节指针,取字节集指针,GdipDrawPath,GdipFillPath,GdipDeletePath,GdipDeletePen,GdipSetClipRectI,GdipResetClip,LoadImage,CallWindowProc,GdipSetSolidFillColor,Shell_NotifyIcon,GdipSetPenColor,API_创建线程,CoInitialize,CoUninitialize,GetTextMetrics,lstrlen,GdipStringFormatGetGenericDefault,GdipMeasureString,GdipSetStringFormatFlags,GdipSetStringFormatTrimming,GdipGetImageThumbnail,GdipDrawImageRect,BitBlt,GdipDrawImageRectRectI,PrintWindow,GetDIBits,SetDIBits,GetLastError,GetClientRect,GdipLoadImageFromStream,GlobalAlloc,GlobalLock,GlobalUnlock,CreateStreamOnHGlobal,StretchBlt,GetTextExtentPoint32,CreateCompatibleBitmap,TextOut,GetPixel,DrawIcon,GetModuleHandle,LoadIcon,CreateIconFromResource,
======窗口程序集1
| |
| |------ __启动窗口_创建完毕
| |
| |------ MakeTrans
| |
| |------ PaintForm
| |
| |------ __启动窗口_鼠标左键被按下
| |
| |------ __启动窗口_鼠标位置被移动
| |
| |------ DrawCaptionAndIcon
| |
| |------ __启动窗口_可否被关闭
| |
| |------ __启动窗口_尺寸被改变
| |
| |
======程序集1
| |
| |------ _16_10_
| |
| |------ ColorARGB
| |
| |------ ASCII转Unicode
| |
| |------ 初始化变量
| |
| |
======RES类
| |
| |------ _初始化
| |
| |------ _销毁
| |
| |------ LoadResData_path
| |
| |------ LoadResData_data
| |
| |------ 数据处理
| |
| |------ ReadResData
| |
| |------ 取数量
| |
| |
======系统
| |
| |------ WndProc
| |
| |------ MousePos
| |
| |
======调用的Dll
| |
| |---[dll]------ CreateCompatibleDC
| |
| |---[dll]------ CreateDIBSection
| |
| |---[dll]------ DeleteObject
| |
| |---[dll]------ GdipCreateFont
| |
| |---[dll]------ GdipCreateFontFamilyFromName
| |
| |---[dll]------ GdipCreateFromHDC
| |
| |---[dll]------ GdipCreateSolidFill
| |
| |---[dll]------ GdipCreateStringFormat
| |
| |---[dll]------ GdipDeleteBrush
| |
| |---[dll]------ GdipDeleteFont
| |
| |---[dll]------ GdipDeleteFontFamily
| |
| |---[dll]------ GdipDeleteGraphics
| |
| |---[dll]------ GdipDeleteStringFormat
| |
| |---[dll]------ GdipDisposeImage
| |
| |---[dll]------ GdipDrawImageRectI
| |
| |---[dll]------ GdipDrawString
| |
| |---[dll]------ GdipGetImageHeight
| |
| |---[dll]------ GdipGetImageWidth
| |
| |---[dll]------ GdipLoadImageFromFile
| |
| |---[dll]------ GdiplusShutdown
| |
| |---[dll]------ GdipReleaseDC
| |
| |---[dll]------ GdiplusStartup
| |
| |---[dll]------ GdipSetInterpolationMode
| |
| |---[dll]------ GdipSetStringFormatAlign
| |
| |---[dll]------ GdipSetStringFormatLineAlign
| |
| |---[dll]------ GetCursorPos
| |
| |---[dll]------ GetWindowLong
| |
| |---[dll]------ LoadCursor
| |
| |---[dll]------ SelectObject
| |
| |---[dll]------ SetCursor
| |
| |---[dll]------ SetWindowLong
| |
| |---[dll]------ SetWindowPos
| |
| |---[dll]------ UpdateLayeredWindow
| |
| |---[dll]------ GetDC
| |
| |---[dll]------ MultiByteToWideChar
| |
| |---[dll]------ DeleteDC
| |
| |---[dll]------ Sleep
| |
| |---[dll]------ GetWindowRect
| |
| |---[dll]------ GdipCreatePen1
| |
| |---[dll]------ GdipSetTextRenderingHint
| |
| |---[dll]------ StrToIntEx
| |
| |---[dll]------ LoadCursorBynum
| |
| |---[dll]------ GdipGraphicsClear
| |
| |---[dll]------ GdipFillRectangleI
| |
| |---[dll]------ GdipDrawRectangleI
| |
| |---[dll]------ GdipSetSmoothingMode
| |
| |---[dll]------ GdipCreatePath
| |
| |---[dll]------ GdipAddPathString
| |
| |---[dll]------ 取文本指针
| |
| |---[dll]------ 取字节指针
| |
| |---[dll]------ 取字节集指针
| |
| |---[dll]------ GdipDrawPath
| |
| |---[dll]------ GdipFillPath
| |
| |---[dll]------ GdipDeletePath
| |
| |---[dll]------ GdipDeletePen
| |
| |---[dll]------ GdipSetClipRectI
| |
| |---[dll]------ GdipResetClip
| |
| |---[dll]------ LoadImage
| |
| |---[dll]------ CallWindowProc
| |
| |---[dll]------ GdipSetSolidFillColor
| |
| |---[dll]------ Shell_NotifyIcon
| |
| |---[dll]------ GdipSetPenColor
| |
| |---[dll]------ API_创建线程
| |
| |---[dll]------ CoInitialize
| |
| |---[dll]------ CoUninitialize
| |
| |---[dll]------ GetTextMetrics
| |
| |---[dll]------ lstrlen
| |
| |---[dll]------ GdipStringFormatGetGenericDefault
| |
| |---[dll]------ GdipMeasureString
| |
| |---[dll]------ GdipSetStringFormatFlags
| |
| |---[dll]------ GdipSetStringFormatTrimming
| |
| |---[dll]------ GdipGetImageThumbnail
| |
| |---[dll]------ GdipDrawImageRect
| |
| |---[dll]------ BitBlt
| |
| |---[dll]------ GdipDrawImageRectRectI
| |
| |---[dll]------ PrintWindow
| |
| |---[dll]------ GetDIBits
| |
| |---[dll]------ SetDIBits
| |
| |---[dll]------ GetLastError
| |
| |---[dll]------ GetClientRect
| |
| |---[dll]------ GdipLoadImageFromStream
| |
| |---[dll]------ GlobalAlloc
| |
| |---[dll]------ GlobalLock
| |
| |---[dll]------ GlobalUnlock
| |
| |---[dll]------ CreateStreamOnHGlobal
| |
| |---[dll]------ StretchBlt
| |
| |---[dll]------ GetTextExtentPoint32
| |
| |---[dll]------ CreateCompatibleBitmap
| |
| |---[dll]------ TextOut
| |
| |---[dll]------ GetPixel
| |
| |---[dll]------ DrawIcon
| |
| |---[dll]------ GetModuleHandle
| |
| |---[dll]------ LoadIcon
| |
| |---[dll]------ CreateIconFromResource
调用的DLL命令:
.DLL命令 CreateCompatibleDC, 整数型, "gdi32.dll"
.参数 hdc, 整数型
.DLL命令 CreateDIBSection, 整数型, "gdi32.dll"
.参数 hdc, 整数型
.参数 pBitmapInfo, BITMAPINFO
.参数 un, 整数型
.参数 lplpVoid, , 传址
.参数 handle, 整数型
.参数 dw, 整数型
.DLL命令 DeleteObject, 整数型, "gdi32"
.参数 hObject, 整数型
.DLL命令 GdipCreateFont, 整数型, "gdiplus"
.参数 fontFamily, 整数型
.参数 emSize, 小数型
.参数 style
.参数 UNIT
.参数 createdfont, 整数型, 传址
.DLL命令 GdipCreateFontFamilyFromName, 整数型, "gdiplus"
.参数 name, 字节集
.参数 fontCollection, 整数型
.参数 fontFamily, 整数型, 传址
.DLL命令 GdipCreateFromHDC, 整数型, "gdiplus.dll"
.参数 hdc, 整数型
.参数 GpGraphics, 整数型, 传址
.DLL命令 GdipCreateSolidFill, 整数型, "gdiplus"
.参数 argb
.参数 brush, 整数型, 传址
.DLL命令 GdipCreateStringFormat, 整数型, "gdiplus"
.参数 formatAttributes, 整数型
.参数 language, 短整数型
.参数 StringFormat, 整数型, 传址
.DLL命令 GdipDeleteBrush, 整数型, "gdiplus"
.参数 brush, 整数型
.DLL命令 GdipDeleteFont, 整数型, "gdiplus"
.参数 curFont, 整数型
.DLL命令 GdipDeleteFontFamily, 整数型, "gdiplus"
.参数 fontFamily, 整数型
.DLL命令 GdipDeleteGraphics, 整数型, "gdiplus.dll"
.参数 graphics, 整数型
.DLL命令 GdipDeleteStringFormat, 整数型, "gdiplus"
.参数 StringFormat, 整数型
.DLL命令 GdipDisposeImage, 整数型, "gdiplus.dll"
.参数 Image, 整数型
.DLL命令 GdipDrawImageRectI, 整数型, "gdiplus.dll"
.参数 graphics, 整数型
.参数 Img, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 Width, 整数型
.参数 Height, 整数型
.DLL命令 GdipDrawString, 整数型, "GdiPlus.dll", "GdipDrawString"
.参数 graphics, 整数型
.参数 str, 字节集
.参数 length, 整数型
.参数 thefont, 整数型
.参数 layoutRect, RECTF, 传址
.参数 StringFormat, 整数型
.参数 brush, 整数型
.DLL命令 GdipGetImageHeight, 整数型, "gdiplus.dll"
.参数 Image, 整数型
.参数 Height, 整数型, 传址
.DLL命令 GdipGetImageWidth, 整数型, "gdiplus.dll"
.参数 Image, 整数型
.参数 Width, 整数型, 传址
.DLL命令 GdipLoadImageFromFile, 整数型, "gdiplus.dll"
.参数 FileName, 字节集
.参数 GpImage, 整数型, 传址
.DLL命令 GdiplusShutdown, 整数型, "gdiplus"
.参数 Token, 整数型
.DLL命令 GdipReleaseDC, 整数型, "gdiplus.dll"
.参数 graphics, 整数型
.参数 hdc, 整数型
.DLL命令 GdiplusStartup, 整数型, "gdiplus"
.参数 token, 整数型, 传址
.参数 inputbuf, GdiplusStartupInput, 传址
.参数 outputbuf, 整数型, 传址
.DLL命令 GdipSetInterpolationMode, 整数型, "gdiplus.dll"
.参数 graphics, 整数型
.参数 InterMode, 整数型
.DLL命令 GdipSetStringFormatAlign, 整数型, "gdiplus"
.参数 StringFormat, 整数型
.参数 align
.DLL命令 GdipSetStringFormatLineAlign, 整数型, "gdiplus"
.参数 StringFormat, 整数型
.参数 align
.DLL命令 GetCursorPos, 整数型, "user32"
.参数 lpPoint, POINTAPI, 传址
.DLL命令 GetWindowLong, 整数型, "user32.dll", "GetWindowLongA"
.参数 hwnd, 整数型
.参数 nIndex, 整数型
.DLL命令 LoadCursor, 整数型, "user32", "LoadCursorA"
.参数 hInstance, 整数型
.参数 lpCursorName, 整数型
.DLL命令 SelectObject, 整数型, "gdi32.dll"
.参数 hdc, 整数型
.参数 hObject, 整数型
.DLL命令 SetCursor, 整数型, "user32"
.参数 hCursor, 整数型
.DLL命令 SetWindowLong, 整数型, "user32", "SetWindowLongA"
.参数 hwnd, 整数型
.参数 nIndex, 整数型
.参数 dwNewLong, 整数型
.DLL命令 SetWindowPos, 整数型, "user32.dll"
.参数 hwnd, 整数型
.参数 hWndInsertAfter, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 cx, 整数型
.参数 cy, 整数型
.参数 wFlags, 整数型
.DLL命令 UpdateLayeredWindow, 整数型, "user32.dll"
.参数 hwnd, 整数型
.参数 hdcDst, 整数型
.参数 pptDst
.参数 psize, Size
.参数 hdcSrc, 整数型
.参数 pptSrc, POINTAPI
.参数 crKey, 整数型
.参数 pblend, BLENDFUNCTION, 传址
.参数 dwFlags, 整数型
.DLL命令 GetDC, 整数型, "user32.dll"
.参数 hwnd, 整数型
.DLL命令 MultiByteToWideChar, 整数型, , "MultiByteToWideChar"
.参数 CodePage, 整数型
.参数 dwFlags, 整数型
.参数 lpMultiByteStr, 文本型
.参数 cchMultiByte, 整数型
.参数 lpWideCharStr, 字节集
.参数 cchWideChar, 整数型
.DLL命令 DeleteDC, 整数型, "gdi32", "DeleteDC", , 删除专用设备场景或信息场景,释放所有相关窗口资源。不要将它用于GetDC函数取回的设备场景 执行成功则为非零,失败则为零
.参数 设备场景句柄, 整数型, , 将要删除的设备场景 在vb里使用不要将它用于由vb hdc属性获取的设备场景句柄
.DLL命令 Sleep, , "kernel32", "Sleep", , 暂停线索
.参数 dwMilliseconds, 整数型
.DLL命令 GetWindowRect, 整数型, "user32"
.参数 hwnd, 整数型
.参数 lpRect, Rect, 传址
.DLL命令 GdipCreatePen1, 整数型, "gdiplus"
.参数 color, 整数型
.参数 Width, 小数型
.参数 unit
.参数 pen, 整数型, 传址
.DLL命令 GdipSetTextRenderingHint, 整数型, "gdiplus"
.参数 graphics, 整数型
.参数 Mode
.DLL命令 StrToIntEx, 整数型, "shlwapi.dll", "StrToIntExA", 公开
.参数 转换文本, 文本型, , pszString
.参数 标志, 整数型, , dwFlags 10 0 16 1
.参数 返回值, 整数型, 传址, piRet
.DLL命令 LoadCursorBynum, 整数型, "user32", "LoadCursorA"
.参数 hInstance, 整数型
.参数 lpCursorName, 整数型
.DLL命令 GdipGraphicsClear, 整数型, "gdiplus"
.参数 graphics, 整数型
.参数 lColor, 整数型
.DLL命令 GdipFillRectangleI, 整数型, "gdiplus"
.参数 graphics, 整数型
.参数 brush, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 Width, 整数型
.参数 Height, 整数型
.DLL命令 GdipDrawRectangleI, , "gdiplus"
.参数 graphics, 整数型
.参数 pen, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 Width, 整数型
.参数 Height, 整数型
.DLL命令 GdipSetSmoothingMode, , "gdiplus"
.参数 graphics, 整数型
.参数 SmoothingMd
.DLL命令 GdipCreatePath, , "gdiplus"
.参数 brushmode
.参数 Path, 整数型, 传址
.DLL命令 GdipAddPathString, , "gdiplus"
.参数 Path, 整数型
.参数 str, 字节集
.参数 Length, 整数型
.参数 family, 整数型
.参数 style, 整数型
.参数 emSize, 小数型
.参数 layoutRect, RECTF, 传址
.参数 StringFormat, 整数型
.DLL命令 取文本指针, 整数型, , "SetHandleCount"
.参数 文本, 文本型, 传址
.DLL命令 取字节指针, 整数型, , "SetHandleCount"
.参数 字节, 字节型, 传址
.DLL命令 取字节集指针, 整数型, , "SetHandleCount"
.参数 字节集, 字节集
.DLL命令 GdipDrawPath, , "gdiplus"
.参数 graphics, 整数型
.参数 pen, 整数型
.参数 Path, 整数型
.DLL命令 GdipFillPath, , "gdiplus"
.参数 graphics, 整数型
.参数 brush, 整数型
.参数 Path, 整数型
.DLL命令 GdipDeletePath, , "gdiplus"
.参数 Path, 整数型
.DLL命令 GdipDeletePen, , "gdiplus"
.参数 pen, 整数型
.DLL命令 GdipSetClipRectI, , "gdiplus"
.参数 graphics, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 Width, 整数型
.参数 Height, 整数型
.参数 CombineMd
.DLL命令 GdipResetClip, , "gdiplus"
.参数 graphics, 整数型
.DLL命令 LoadImage, 整数型, "user32", "LoadImageA"
.参数 hInst, 整数型
.参数 lpsz, 文本型
.参数 iImageType, 整数型
.参数 cx, 整数型
.参数 cy, 整数型
.参数 fFlags, 整数型
.DLL命令 CallWindowProc, 整数型, "user32", "CallWindowProcA", , 将消息传答窗口函数
.参数 lpPrevWndFunc, 整数型
.参数 hwnd, 整数型
.参数 msg, 整数型
.参数 wParam, 整数型
.参数 lParam, 整数型
.DLL命令 GdipSetSolidFillColor, 整数型, "gdiplus"
.参数 brush, 整数型
.参数 argb, 整数型
.DLL命令 Shell_NotifyIcon, 整数型, "shell32.dll", "Shell_NotifyIconA"
.参数 dwMessage, 整数型
.参数 lpData, NOTIFYICONDATA, 传址
.DLL命令 GdipSetPenColor, 整数型, "gdiplus"
.参数 pen, 整数型
.参数 argb, 整数型
.DLL命令 API_创建线程, 整数型, , "CreateThread"
.参数 security属性, , , 0
.参数 堆栈尺寸, , , 0是跟主线程相同
.参数 子程序, 子程序指针, , 要启动的子程序
.参数 子程序参数, 整数型
.参数 挂起, 整数型, , 0立即执行 4 挂起
.参数 线程ID, 整数型, 传址, 提供变量
.DLL命令 CoInitialize, , "ole32.dll", "CoInitialize", ,
.参数 pvReserved, 整数型
.DLL命令 CoUninitialize, , "ole32.dll", "CoUninitialize", ,
.DLL命令 GetTextMetrics, 整数型, "gdi32", "GetTextMetricsA", , 获取与选入一种设备场景的物理字体有关的信息 非零表示成功,零表示失败。会设置GetLastError
.参数 设备场景, 整数型, , 设备场景的句柄
.参数 属性信息, TEXTMETRIC, , TEXTMETRIC,用于填充物理字体属性信息的一个结构
.DLL命令 lstrlen, 整数型, "kernel32", "lstrlenA"
.参数 lpString, 文本型
.DLL命令 GdipStringFormatGetGenericDefault, 整数型, "gdiplus"
.参数 StringFormat, 整数型, 传址
.DLL命令 GdipMeasureString, 整数型, "gdiplus"
.参数 graphics, 整数型
.参数 str, 整数型
.参数 Length, 整数型
.参数 thefont, 整数型
.参数 layoutRect, RECTF, 传址
.参数 StringFormat, 整数型
.参数 boundingBox, RECTF, 传址
.参数 codepointsFitted, 整数型, 传址
.参数 linesFilled, 整数型, 传址
.DLL命令 GdipSetStringFormatFlags, , "gdiplus.dll"
.参数 StringFormat, 整数型
.参数 flags, 整数型
.DLL命令 GdipSetStringFormatTrimming, , "gdiplus.dll"
.参数 StringFormat, 整数型
.参数 trimming, 整数型
.DLL命令 GdipGetImageThumbnail, 整数型, "gdiplus"
.参数 Image, 整数型
.参数 thumbWidth, 整数型
.参数 thumbHeight, 整数型
.参数 thumbImage, 整数型, 传址
.参数 callback
.参数 callbackdata
.DLL命令 GdipDrawImageRect, , "gdiplus"
.参数 graphics, 整数型
.参数 Image, 整数型
.参数 x, 小数型
.参数 y, 小数型
.参数 Width, 小数型
.参数 Height, 小数型
.DLL命令 BitBlt, 整数型, "gdi32.dll"
.参数 hDestDC, 整数型
.参数 x, 整数型
.参数 y, 整数型
.参数 nWidth, 整数型
.参数 nHeight, 整数型
.参数 hSrcDC, 整数型
.参数 xSrc, 整数型
.参数 ySrc, 整数型
.参数 dwRop, 整数型
.DLL命令 GdipDrawImageRectRectI, 整数型, "gdiplus"
.参数 graphics, 整数型
.参数 Image, 整数型
.参数 dstX, 整数型
.参数 dstY, 整数型
.参数 dstWidth, 整数型
.参数 dstHeight, 整数型
.参数 srcx, 整数型
.参数 srcy, 整数型
.参数 srcwidth, 整数型
.参数 srcheight, 整数型
.参数 srcUnit
.参数 imageAttributes
.参数 callback
.参数 callbackData
.DLL命令 PrintWindow, 整数型, "user32", "PrintWindow", ,
.参数 hWnd, 整数型
.参数 hdcBlt, 整数型
.参数 nFlags, 整数型
.DLL命令 GetDIBits, 整数型, "gdi32", "GetDIBits", , 将来自一幅位图的二进制位复制到一幅与设备无关的位图里 非零表示成功,零表示失败。在Windows 95中,返回值是返回的扫描线数量
.参数 aHDC, 整数型, , 定义了与设备有关位图hBitmap的配置信息的一个设备场景的句柄
.参数 hBitmap, 整数型, , 源位图的句柄。绝对不能将这幅位图选入设备场景
.参数 nStartScan, 整数型, , 欲复制到DIB中的第一条扫描线的编号
.参数 nNumScans, 整数型, , 欲复制的扫描线数量
.参数 lpBits, 整数型, , 指向一个缓冲区的指针。这个缓冲区将用于装载采用DIB格式的信息,但不取回数据(用ByVal传递零值)
.参数 lpBI, BITMAPINFO, , BITMAPINFO,对lpBits DIB的格式及颜色进行说明的一个结构。在BITMAPINFOHEADER结构中,从biSize到biCompression之间的所有字段都必须初始化
.参数 wUsage, 整数型, , 下述常数之一:
DIB_PAL_COLORS:在颜色表中装载一个16位所以数组,它们与当前选定的调色板有关
DIB_RGB_COLORS:在颜色表中装载RGB颜色
.DLL命令 SetDIBits, 整数型, "gdi32", "SetDIBits", , 将来自与设备无关位图的二进制位复制到一幅与设备有关的位图里 执行成功则返回扫描线的数量,零表示失败。会设置GetLastError
.参数 hdc, 整数型
.参数 hBitmap, 整数型
.参数 nStartScan, 整数型
.参数 nNumScans, 整数型
.参数 lpBits, 整数型
.参数 lpBI, BITMAPINFO
.参数 wUsage, 整数型
.DLL命令 GetLastError, 整数型, "kernel32", "GetLastError", , 针对之前调用的api函数,用这个函数取得扩展错误信息(在vb里使用:在vb中,用Err对象的GetLastError属性获取GetLastError的值。这样做是必要的,因为在api调用返回以及vb调用继续执行期间,vb有时会重设GetLastError的值) 由api函数决定。请参考api32.txt文件,其中列出了一系列错误常数;都以ERROR_前缀起头。常用的错误代码见下表
.DLL命令 GetClientRect, 整数型, "user32", "GetClientRect", , 返回指定窗口客户区矩形的大小 非零表示成功,零表示失败。会设置GetLastError
.参数 窗口句柄, 整数型, , 欲计算大小的目标窗口
.参数 矩形区域, Rect, , RECT,指定一个矩形,用客户区域的大小载入(以像素为单位)
.DLL命令 GdipLoadImageFromStream, 整数型, "GdiPlus"
.参数 Stream
.参数 image, 整数型, 传址
.DLL命令 GlobalAlloc, 整数型, , "GlobalAlloc"
.参数 wFlags, 整数型
.参数 dwBytes, 整数型
.DLL命令 GlobalLock, 整数型, , "GlobalLock"
.参数 hMem, 整数型
.DLL命令 GlobalUnlock, 整数型, , "GlobalUnlock"
.参数 hMem, 整数型
.DLL命令 CreateStreamOnHGlobal, 整数型, "Ole32.dll", "CreateStreamOnHGlobal"
.参数 hGlobal
.参数 fDeleteOnRelease, 整数型
.参数 ppstm, 整数型, 传址
.DLL命令 StretchBlt, 整数型, "gdi32"
.参数 hdc, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 nWidth, 整数型
.参数 nHeight, 整数型
.参数 hSrcDC, 整数型
.参数 xSrc, 整数型
.参数 ySrc, 整数型
.参数 nSrcWidth, 整数型
.参数 nSrcHeight, 整数型
.参数 dwRop, 整数型
.DLL命令 GetTextExtentPoint32, 整数型, "gdi32", "GetTextExtentPoint32A"
.参数 hdc, 整数型
.参数 lpsz, 文本型
.参数 cbString, 整数型
.参数 lpSize, Size, 传址
.DLL命令 CreateCompatibleBitmap, 整数型, "gdi32"
.参数 hdc, 整数型
.参数 nWidth, 整数型
.参数 nHeight, 整数型
.DLL命令 TextOut, 整数型, "gdi32", "TextOutA"
.参数 hdc, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 lpString, 文本型
.参数 nCount, 整数型
.DLL命令 GetPixel, 整数型, "gdi32"
.参数 hdc, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.DLL命令 DrawIcon, 整数型, "user32"
.参数 hdc, 整数型
.参数 X, 整数型
.参数 Y, 整数型
.参数 hIcon, 整数型
.DLL命令 GetModuleHandle, 整数型, "kernel32", "GetModuleHandleA", , 获取一个应用程序或动态链接库的模块句柄 如执行成功成功,则返回模块句柄。零表示失败。会设置GetLastError
.参数 lpModuleName, , , 指定模块名,这通常是与模块的文件名相同的一个名字。例如,NOTEPAD.EXE程序的模块文件名就叫作NOTEPAD
.DLL命令 LoadIcon, 整数型, "user32", "LoadIconA", , 从指定的模块或应用程序实例中载入一个图标。其中,LoadIconBynum是LoadIcon函数的类型security声明 执行成功则返回已载入的图标的句柄;零表示失败。会设置GetLastError
.参数 实例句柄, 整数型
.参数 图标标识
.DLL命令 CreateIconFromResource, 整数型, "user32", "CreateIconFromResource", , 建立图标或光标
.参数 presbits, 字节型
.参数 dwResSize, 整数型
.参数 fIcon, 整数型
.参数 dwVer, 整数型
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。