趣味九宫格
系统结构:取鼠标光标所在处窗口,子_载入窗口,判断三钮之和是否为15,按下取窗口句柄,放开取窗口句柄,取控件标题,AnimateWindow,SetWindowLong,SetLayeredWindowAttributes,FindwindowExII,GetWindowText,IsWindowVisible,GetClassName,ShowWindow,EnableWindow,FindWindowCI,FindWindowIC,FindWindowCC,SetWindowPos,SetForegroundWindow,IsIconic,IsWindow,GetCursorPos,WindowFromPoint,发送消息,GetParent,GetForegroundWindow,取窗口标题_,置窗口标题_,
======窗口程序集1
| |
| |------ __启动窗口_创建完毕
| |
| |------ 取鼠标光标所在处窗口
| |
| |------ _按钮1_被单击
| |
| |------ 子_载入窗口
| |
| |------ _按钮10_被单击
| |
| |------ 判断三钮之和是否为15
| |
| |------ _按钮11_被单击
| |
| |------ _按钮1_鼠标左键被按下
| |
| |------ 按下取窗口句柄
| |
| |------ 放开取窗口句柄
| |
| |------ 取控件标题
| |
| |------ _按钮1_鼠标左键被放开
| |
| |------ _按钮2_被单击
| |
| |
======窗口程序集2
| |
| |------ _窗口1_创建完毕
| |
| |------ _超级按钮1_被单击
| |
| |------ _窗口1_被显示
| |
| |------ _窗口1_鼠标左键被按下
| |
| |------ _窗口1_被双击
| |
| |
======调用的Dll
| |
| |---[dll]------ AnimateWindow
| |
| |---[dll]------ SetWindowLong
| |
| |---[dll]------ SetLayeredWindowAttributes
| |
| |---[dll]------ FindwindowExII
| |
| |---[dll]------ GetWindowText
| |
| |---[dll]------ IsWindowVisible
| |
| |---[dll]------ GetClassName
| |
| |---[dll]------ ShowWindow
| |
| |---[dll]------ EnableWindow
| |
| |---[dll]------ FindWindowCI
| |
| |---[dll]------ FindWindowIC
| |
| |---[dll]------ FindWindowCC
| |
| |---[dll]------ SetWindowPos
| |
| |---[dll]------ SetForegroundWindow
| |
| |---[dll]------ IsIconic
| |
| |---[dll]------ IsWindow
| |
| |---[dll]------ GetCursorPos
| |
| |---[dll]------ WindowFromPoint
| |
| |---[dll]------ 发送消息
| |
| |---[dll]------ GetParent
| |
| |---[dll]------ GetForegroundWindow
| |
| |---[dll]------ 取窗口标题_
| |
| |---[dll]------ 置窗口标题_
调用的DLL命令:
.DLL命令 AnimateWindow, 整数型, , "AnimateWindow"
.参数 hwnd
.参数 delay
.参数 flags
.DLL命令 SetWindowLong, 整数型, , "SetWindowLongA"
.参数 hWnd
.参数 nIndex
.参数 dwNewLong
.DLL命令 SetLayeredWindowAttributes, 整数型, , "SetLayeredWindowAttributes"
.参数 hwnd
.参数 param1
.参数 param2
.参数 param3
.DLL命令 FindwindowExII, 整数型, , "FindWindowExA"
.参数 hwndParent
.参数 hwndAfter
.参数 lpszClass, 整数型
.参数 lpszWindow, 整数型
.DLL命令 GetWindowText, , , "GetWindowTextA"
.参数 hwnd
.参数 lpString, 文本型
.参数 nMaxCount
.DLL命令 IsWindowVisible, 逻辑型, , "IsWindowVisible"
.参数 hWnd
.DLL命令 GetClassName, 整数型, , "GetClassNameA"
.参数 hwnd
.参数 lpClassName, 文本型
.参数 nMaxCount
.DLL命令 ShowWindow, , , "ShowWindow"
.参数 hwnd
.参数 nCmdShow
.DLL命令 EnableWindow, 逻辑型, , "EnableWindow"
.参数 hWnd
.参数 bEnabled, 逻辑型
.DLL命令 FindWindowCI, 整数型, , "FindWindow"
.参数 lpClassName, 文本型
.参数 lpWindowName, 整数型
.DLL命令 FindWindowIC, 整数型, , "FindWindow"
.参数 lpClassName, 整数型
.参数 lpWindowName, 文本型
.DLL命令 FindWindowCC, 整数型, , "FindWindow"
.参数 lpClassName, 文本型
.参数 lpWindowName, 文本型
.DLL命令 SetWindowPos, 逻辑型, , "SetWindowPos"
.参数 hwnd
.参数 hwndInsertAfter
.参数 x
.参数 y
.参数 cx
.参数 cy
.参数 fuFlags
.DLL命令 SetForegroundWindow, 逻辑型, , "SetForegroundWindow"
.参数 hwnd
.DLL命令 IsIconic, 逻辑型, , "IsIconic"
.参数 hwnd
.DLL命令 IsWindow, 逻辑型, , "IsWindow"
.参数 hwnd
.DLL命令 GetCursorPos, 逻辑型, , "GetCursorPos"
.参数 lpPoint, POINT, 传址
.DLL命令 WindowFromPoint, 整数型, , "WindowFromPoint"
.参数 X
.参数 Y
.DLL命令 发送消息, 整数型, , "SendMessageA"
.参数 句柄, 整数型
.参数 消息值, 整数型
.参数 容器尺寸, 整数型, , 255
.参数 容器, 文本型, , 长度255的空文本
.DLL命令 GetParent, 整数型, , "GetParent"
.参数 hwnd
.DLL命令 GetForegroundWindow, 整数型, , "GetForegroundWindow"
.DLL命令 取窗口标题_, 整数型, "user32.dll", "GetWindowTextA"
.参数 窗口句柄, 整数型
.参数 缓冲区, 文本型
.参数 缓冲尺寸, 整数型
.DLL命令 置窗口标题_, 整数型, "user32.dll", "SetWindowTextA"
.参数 窗口句柄, 整数型
.参数 窗口标题, 文本型
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。