Thread: break or return

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218

    break or return

    It might be a dumb question but its confusing me at times,

    when to use "break" and when to use "return 0", in responce to some window messages like WM_VSCROLL .ie

    ,,,,,,,,,,,,,,,,
    case SB_TOP:
    process,,,,,
    break;

    or in regard to some other messages at times choosing either one makes no difference at all,.i know that by sending return 0 you are telling the win that u have orocessed the message but doesnt break statement do the same thing?
    Last edited by SAMSAM; 01-30-2003 at 05:34 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New string functions
    By Elysia in forum C Programming
    Replies: 11
    Last Post: 03-28-2009, 05:03 AM
  2. Number to Word (Billions)
    By myphilosofi in forum C Programming
    Replies: 34
    Last Post: 02-04-2009, 02:09 AM
  3. Another weird error
    By rwmarsh in forum Game Programming
    Replies: 4
    Last Post: 09-24-2006, 10:00 PM
  4. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 07:48 PM
  5. Extra printed stmts...why?
    By mangoz in forum C Programming
    Replies: 4
    Last Post: 12-19-2001, 07:56 AM