Location:
Search - windowproc
Search list
Description: 窗口处理程序的源码,里面包含八个工程,对于初学windows编程的同学来说是很有用的
Platform: |
Size: 98347 |
Author: ChenNan |
Hits:
Description: 窗口处理程序的源码,里面包含八个工程,对于初学windows编程的同学来说是很有用的-Window handle of the source program, which contains eight projects for the beginner students windows programming is very useful
Platform: |
Size: 98304 |
Author: ChenNan |
Hits:
Description: thunk是一组动态生成的ASM指令,它记录了窗口类对象的this指针,并且这组指令可以当作函数,既也可以是窗口过程来使用。thunk先把窗口对象this指针记录下来,然后转向到静态stdProc回调函数,转向之前先记录HWND,然后把堆栈里HWND的内容替换为this指针,这样在stdProc里就可以从HWND取回对象指针,定位到WindowProc了-thunk is a group of dynamically generated ASM command, it records the window class object this pointer, and this group of commands can be used as a function of both the process can also be a window to use. thunk first window object this pointer record, and then shifted to the static callback function stdProc, before turning record HWND, and then the contents of the stack where HWND replace this pointer, so in stdProc can retrieve the object from the HWND pointer, locate the WindowProc
Platform: |
Size: 6144 |
Author: lixw |
Hits:
Description: hook function
procedure HookWindow(hWnd: HWND)
var
Item: PItem
begin
if FindWindowProc(hWnd, HandleList) = nil then
begin
GetMem(Item,Sizeof(TItem))
Item.hWnd:= hWnd
Item.Next:= HandleList
Item.WndProc:= Pointer(SetWindowLong(hWnd,GWL_WNDPROC,LongInt(@WindowProc)))
HandleList:= Item
end
end -hook function
procedure HookWindow(hWnd: HWND)
var
Item: PItem
begin
if FindWindowProc(hWnd, HandleList) = nil then
begin
GetMem(Item,Sizeof(TItem))
Item.hWnd:= hWnd
Item.Next:= HandleList
Item.WndProc:= Pointer(SetWindowLong(hWnd,GWL_WNDPROC,LongInt(@WindowProc)))
HandleList:= Item
end
end
Platform: |
Size: 9216 |
Author: xax2 |
Hits:
Description: 标题栏重绘,重载WindowProc。使用Delphi系统编写,请测试-The title bar is redrawn, heavy WindowProc. Written using Delphi system, test
Platform: |
Size: 823296 |
Author: zgz |
Hits: