PSP
 

아직 의미를 이해하기 힘든 비트맵 관련 소스

최고관리자 2026-06-24 (수) 17:30 2개월전 20  
if (y >= A_ScreenHeight)
{break}
}
DllCall("BitBlt",uint,hCDC2,int,x,int,y,int,w,int,h,uint,hCDC,int,0,int,0,uint,0xcc0020)}
DllCall("ReleaseDC",uint,TpicOutputVar,uint,hDC)DllCall("DeleteObject",uint,hCDC)
DllCall("DeleteObject",uint,hCDC2)
DllCall("DeleteObject",uint,hBM)
SendMessage, 0x172, 0, hBM2,, ahk_id %TpicOutputVar%

if (ErrorLevel && hBM2 <> ErrorLevel)
{DllCall("DeleteObject",uint,errorlevel)}
}

AnimateWindow(hwnd,time,options)
{local H:=0x10000, A:=0x20000,C:=0x10, B:= 0x80000,S:=0x40000,R:= 0x1, L:=0x2, D:=0x4, U:=0x8,O:="HACBSLURD",opt:="",format:=""format:= A_FormatIntegerSetFormat, integerfast, Hexopt := 0x0 + 0Loop,parse,OptionsIf InStr(O,A_LoopField)opt |= %A_LoopField%If optDllCall("AnimateWindow", "UInt", hwnd, "Int", time, "UInt", opt)SetFormat, integerfast,%format%}

convertNavigatorTimestamp(navigatorTimestamp)
{month := SubStr(navigatorTimestamp, 1, 2)day := SubStr(navigatorTimestamp, 4, 2)year := SubStr(navigatorTimestamp, 7, 4)hour := SubStr(navigatorTimestamp,


hGlob := DllCall("GlobalAlloc", "uint", 2, "uint", sData, "ptr")
pGlob := DllCall("GlobalLock", "ptr", hGlob, "ptr")
DllCall("msvcrt\memcpy", "ptr", pGlob, "ptr", pData, "uint", sData, "CDecl")
DllCall("GlobalUnlock", "ptr", hGlob)
DllCall("ole32\CreateStreamOnHGlobal", "ptr", hGlob, "int", 1, "ptr*", pStream)
hGdip := DllCall("LoadLibrary", "str", "gdiplus")
VarSetCapacity(si, 16, 0), NumPut(1, si, "UChar")
DllCall("gdiplus\GdiplusStartup", "ptr*", gdipToken, "ptr", &si, "ptr", 0)
DllCall("gdiplus\GdipCreateBitmapFromStream", "ptr", pStream, "ptr*", pBitmap)
DllCall("gdiplus\GdipCreateHBITMAPFromBitmap", "ptr", pBitmap, "ptr*", hBitmap, "uint", 0)
SendMessage, 0x172, 0, hBitmap,, ahk_id %hPicCtrl%

GuiControl, Move, %hPicCtrl%, w240 h78

DllCall("gdiplus\GdipDisposeImage", "ptr", pBitmap)
DllCall("gdiplus\GdiplusShutdown", "ptr", gdipToken)
DllCall("FreeLibrary", "ptr", hGdip)
ObjRelease(pStream)
return

Never:FileInstall, logo.png, NEVER
return

hi
이전글  다음글  목록 글쓰기

 
 
ragoman@naver.com