mov eax,uMsg
.if eax==WM_INITDIALOG
.elseif eax==WM_CTLCOLORDLG
.elseif eax==WM_SIZE
.elseif eax==WM_COMMAND
.elseif eax==WM_CLOSE
.else
mov eax,FALSE
ret ;bad design to use multiple RET's
.endif
mov eax,TRUE ;oops - overwrites any value in EAX
ret
i prefer this method, although not all forum members agree with me - lol
mov eax,uMsg
.if eax==WM_INITDIALOG
;init dialog code
mov eax,TRUE ;return TRUE - see WM_INITDIALOG documentation
.elseif eax==WM_CTLCOLORDLG
;paint background code
mov eax,hbrNull ;null brush handle - see WM_CTLCOLORDLG documentation
.elseif eax==WM_SIZE
;size code
mov eax,TRUE ;standard for most handled messages - see DialogProc documentation
.elseif eax==WM_COMMAND
;command code
mov eax,TRUE ;standard for most handled messages - see DialogProc documentation
.elseif eax==WM_CLOSE
;close code
mov eax,TRUE ;standard for most handled messages - see DialogProc documentation
.else
mov eax,FALSE ;standard for un-handled messages - see DialogProc documentation
.endif
ret