I am having problems with some code that I wrote through a prototype that creates a static window that can not be destroyed using the DestroyWindow api ... Written origionally I am able to destroy the window along with the bitmap, but can not do that when I have written it through the api ...
Does anybody have any clue why this is and what I can do to get around this problem because it is a hassle for me to have to code without prototyping ... Thanks ...
invoke LoadBitmap,hInstance,20
mov red4bmp01,eax
invoke StaticImage,NULL,hWnd3,0,0,10,10,65535
mov hStatImage22, eax
invoke SendMessage,hStatImage22,STM_SETIMAGE,IMAGE_BITMAP,red4bmp01
;------------------------------------------------------------------
;LoadCards proc window:DWORD,number:DWORD,bitmaphandle:DWORD,statichandle:DWORD,u:DWORD,d:DWORD,l:DWORD,r:DWORD,CD:DWORD
;.IF CD==1
;invoke LoadBitmap,hInstance,number
;mov bitmaphandle,eax
;invoke StaticImage,NULL,window,0,0,10,10,65535
;mov statichandle, eax
;invoke SendMessage,statichandle,STM_SETIMAGE,IMAGE_BITMAP,bitmaphandle
;invoke SetWindowPos,[statichandle],HWND_TOP,u,d,l,r,TRUE
;.ELSE
;invoke DestroyWindow,statichandle
;.endif
;ret
;LoadCards endp
;------------------------------------------------------------------
invoke LoadCards,hWnd3,20,red4bmp01,hStatImage22,310,130,0,0,1
Does anybody have any clue why this is and what I can do to get around this problem because it is a hassle for me to have to code without prototyping ... Thanks ...