Thread: Code Check.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    You have too many switches.
    Code:
        
    case WM_COMMAND:
       switch(LOWORD(wParam))
       {
          case button_1:
             switch(HIWORD(wParam))
             {
                 case BN_CLICKED:
                     win.w_msgbox("Hello","World");
                     break;
              }
          break;   
           case button_2:
               switch(HIWORD(wParam))
                {
                    case BN_CLICKED:
                       win.w_msgbox("World","Hello");
                       break;
                }
           break;   
        }
           
        break;
    Last edited by Quantum1024; 05-20-2006 at 02:18 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code Check
    By Dae in forum C++ Programming
    Replies: 12
    Last Post: 01-08-2009, 07:01 PM
  2. HELP!!!!emergency ~expert please help
    By unknowppl in forum C Programming
    Replies: 1
    Last Post: 08-19-2008, 07:35 AM
  3. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Game Programming
    Replies: 0
    Last Post: 10-14-2002, 01:27 PM
  4. << !! Posting Code? Read this First !! >>
    By kermi3 in forum C# Programming
    Replies: 0
    Last Post: 10-14-2002, 01:26 PM
  5. Check my code Please
    By AdioKIP in forum C++ Programming
    Replies: 1
    Last Post: 03-12-2002, 08:52 PM