News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Block Popup Messagebox on alt+spacebar

Started by raleep, July 25, 2012, 01:29:17 PM

Previous topic - Next topic

jj2007

Good question. Return 0 works equally good :biggrin:
Probably the OS doesn't check the return value.

sinsi

Quote from: Ryan on July 29, 2012, 10:11:30 PM
A window proc should return 0 if it handles the message, otherwise DefWindowProc needs to be called.
A window proc should return whatever the WM_x return value says, e.g. WM_CTLCOLORSTATIC returns a brush, whereas WM_CREATE expects 0 to continue.

Ryan

Thanks for the clarification sinsi.  I've updated my post :)