WndProc (stack clean up?)
- From: "bwaichu@xxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: Wed, 30 Jul 2008 18:02:04 -0700 (PDT)
When using a window procedure, do I need to clean up the stack or will
windows clean up the stack for me? Do I need the RET 16 or can I just
RET?
For example:
WndProc:
push ebp
mov ebp, esp
cmp [ebp+12], dword WM_CREATE ; window message
jz wm_create
jmp default
wm_create:
jmp default
default:
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
push dword [ebp+8]
call [DefWindowProcA]
leave
ret 16
.
- Follow-Ups:
- Re: WndProc (stack clean up?)
- From: Bob Masta
- Re: WndProc (stack clean up?)
- From: Tim Roberts
- Re: WndProc (stack clean up?)
- Prev by Date: Re: Atomic operations in 32 and 64 bit platforms
- Next by Date: Re: [Clax86list] 64-bit instructions
- Previous by thread: 64-bit instructions
- Next by thread: Re: WndProc (stack clean up?)
- Index(es):
Relevant Pages
|