PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Which Messages are ok to return %TRUE/ non-zero from  (Read 499 times)

Roger Garstang

  • Guest
Which Messages are ok to return %TRUE/ non-zero from
« on: June 08, 2004, 07:20:16 PM »

From looking at the code generated the following messages appear to be processed after the custom messages, etc...so I'm assuming I wouldn't want to return %TRUE/non-zero as the function value for these as to allow FF's code to process.  The last three are empty in my code so far and %WM_TIMER is the only one I'm even really using of those.  Is it ok to return %TRUE to %WM_TIMER and all other messages not listed below or are there any others that I'm missing?  Just want to speed things up and return %TRUE so everything isn't passed all the way down to the default window handler.

CASE %WM_SETFOCUS
CASE %WM_SHOWWINDOW
CASE %WM_SIZE                      
CASE %WM_CLOSE
CASE %WM_DESTROY
CASE %WM_CTLCOLOREDIT, %WM_CTLCOLORSTATIC, %WM_CTLCOLORLISTBOX, %WM_CTLCOLORBTN

CASE %WM_NOTIFY
CASE %WM_ERASEBKGND
CASE %WM_TIMER
Logged