Thread: Help please

  1. #1
    Banned
    Join Date
    Aug 2004
    Posts
    3

    Help please

    If you make a button in win32 api, whats the command to do "if (button is clicked) do that.. else.. do that.."??

    like:

    Code:
    if(button==clicked)
    {
           DestroyWindow(hwnd);
    }
    else
    {
          MessageBox(0, "ERROR", "ERROR", MB_OK | MB_ICONERROR);
    }
    Thnks for help ^^

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    You'll want to look into event handlers.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Noxir, Netro, Xlonima.

    You have been banned from this site. Registering over and over again will get your ISP informed, and not only will you not be able to post, you risk losing your internet connection.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed