the MessageBox API preserved EBX, EBP, ESI, and EDI for you
you don't have anything in EAX, ECX, or EDX that needs to be preserved
WndProc:
FRAME hWnd,iMsg,wParam,lParam
USES ebx,edi,esi
Local hMemory,stm:SYSTEMTIME,ps:PAINTSTRUCT,hdc,hdcPrn
invoke MessageBox, NULL,addr TM8,NULL,MB_OK
;.WM_CREATE
cmp D[iMsg],WM_CREATE
jne >>.WM_CHAReven if that does "work", it's going to generate a lot of message boxes - lol
when a window is created, it receives several messages
if you're not using Vista, you might be happier using Beep...
WndProc:
FRAME hWnd,iMsg,wParam,lParam
USES ebx,edi,esi
Local hMemory,stm:SYSTEMTIME,ps:PAINTSTRUCT,hdc,hdcPrn
invoke Beep,800,40
;.WM_CREATE
cmp D[iMsg],WM_CREATE
jne >>.WM_CHAR