I seem to have used some old code while posting.

The AniWndProc procedure has been modified for WM_NCCREATE as follows:

.IF uMsg == WM_NCCREATE
mov eax, lParam
ASSUME eax:PTR CREATESTRUCT
;
; Get the Resource ID or Name from the Title field
; Save it to a global variable and replace it with NULL
;
mov ebx, .lpszName
.IF ebx == NULL
invoke GetWindowLong, hWnd, GWL_ID
mov AniWndProcResID, eax
.ELSE
mov esi, .lpszName
mov bl,
.IF bl == NULL
invoke GetWindowLong, hWnd, GWL_ID
mov AniWndProcResID, eax
.ELSE
mov ebx, .lpszName
mov AniWndProcResID, ebx
mov .lpszName, NULL
.ENDIF
.ENDIF
ASSUME eax:NOTHING
invoke SetWindowLong, hWnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
invoke SetWindowLong, hWnd, GWL_STYLE, WS_CHILD or WS_BORDER
mov eax, TRUE
ret

Sorry,
Norm
Posted on 2003-07-06 20:47:53 by ngc2501ca