Skip to content

Instantly share code, notes, and snippets.

@tuttlem
Created November 26, 2012 12:20
Show Gist options
  • Save tuttlem/4147927 to your computer and use it in GitHub Desktop.
Save tuttlem/4147927 to your computer and use it in GitHub Desktop.
Simple Window - Window Proc
WndProc PROC hWin :DWORD,
uMsg :DWORD,
wParam :DWORD,
lParam :DWORD
.if uMsg == WM_CLOSE
.elseif uMsg == WM_DESTROY
invoke PostQuitMessage, NULL
return 0
.endif
; call the default window proc if we didn't handle it
invoke DefWindowProc, hWin, uMsg, wParam, lParam
ret
WndProc ENDP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment