Help please

This is a discussion on Help please within the Windows Programming forums, part of the Platform Specific Boards category; If you make a button in win32 api, whats the command to do "if (button is clicked) do that.. else.. ...

  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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    You'll want to look into event handlers.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21