|
From: Michael C U. <mu...@cb...> - 2003-12-25 17:38:12
|
Hmm.. Can you post a sample? Because you shouldn't need to use braces to brace case statments (note that you DO need to use braces around the entire switch block though). But basically, the break statement should break out of the entire switch block, not just the current case. On Thu, 25 Dec 2003, [ISO-8859-1] Carlos Garc=EDa del Monte wrote: > Not for me. When I don't put the braces, the next case is performed, no > matter there is a break; > > > Also. note that the braces around the code in your WM_PAINT case are not > > >necessary. You don't need to use braces to group case statements as all = of > >hem will execute up until it encounters a break or return. > > > > > > > > > > |