enable buttons

This is a discussion on enable buttons within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone know how to unable a button? like what funktion do i have to use? thankx ~tare...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    21

    Question enable buttons

    Does anyone know how to unable a button? like what funktion do i have to use? thankx
    ~tare

  2. #2
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Yo,

    EnableWindow(), check with msdn but it should look somthing like this i think:

    Code:
    EnableWindow(hWndBtn, FALSE);

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    21
    "...something like that i think." hmmm are you sure? i tried it and it didnt work... but iam still trying. lata
    ~tare

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    21

    Question

    AHHHHHH i dont get it to work.. could someone write me an example? PLEASE!!!!!!!!!!

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Please don't bump your own threads, doing so is against the rules and may result in your thread being deleted.

    The hint that TNT gave you is fine, as was the syntax. What error did it give you?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    21
    What? i was just asking if someone, who has the knowlege and the time, could write me an example. if that is against the rules iam sorry for asking. i'll find it out ma self. thanks anyways.
    ~tare

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> if that is against the rules iam sorry for asking.

    Asking questions is, of course, not against the rules, bumping your own threads is. There is a message at the top of each forum which states that.

    As for your problem, I did ask what error you were getting...
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  8. #8
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Make sure you call a paint after enable/disable of the button. (with UpdateWindow() or InvalidateRect() )
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 04-09-2009, 03:31 AM
  2. Ownerdraw buttons (2)
    By maes in forum Windows Programming
    Replies: 7
    Last Post: 09-11-2003, 06:50 AM
  3. Radio Buttons in Visual C++ 6
    By Ripper1 in forum Windows Programming
    Replies: 22
    Last Post: 05-16-2003, 08:54 AM
  4. (Ken Fitlike) buttons
    By jdinger in forum C++ Programming
    Replies: 4
    Last Post: 03-15-2002, 01:21 PM
  5. Grouping radio buttons
    By Bazz in forum Windows Programming
    Replies: 1
    Last Post: 08-28-2001, 08:15 AM

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