How do i make out which button is pressed ?

This is a discussion on How do i make out which button is pressed ? within the C++ Programming forums, part of the General Programming Boards category; Hi All, I have a quetion. I am using VC++ where i am getting values from the GUI controls using ...

  1. #1
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48

    How do i make out which button is pressed ?

    Hi All,

    I have a quetion. I am using VC++ where i am getting values from the GUI controls using the DoDataExchange() function.

    I have two buttons on my screen with ids IDOK and IDCANCEL, so my question is how do i make out in the DoDataExchange() function whether which button is pressed ??

    Thank you in advance.

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,806
    This isn't a C++ question. Perhaps you should post it in the Windows Programming board. Can a mod move this?
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User intruder's Avatar
    Join Date
    Nov 2002
    Posts
    48
    There is nobody in the windows discussion browsing right now. so pls if anybody knows the ans pls let me know, i am stuck right now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Custom button using bitmaps
    By Eirik in forum Windows Programming
    Replies: 2
    Last Post: 11-04-2008, 12:20 AM
  2. Replace button with a bitmap
    By Swarvy in forum Windows Programming
    Replies: 10
    Last Post: 09-12-2008, 12:43 PM
  3. Howto make own application for remote control handling
    By s-men in forum Windows Programming
    Replies: 16
    Last Post: 08-16-2008, 05:22 PM
  4. Drawing a bitmap when a button is pressed
    By h3ro in forum Windows Programming
    Replies: 5
    Last Post: 08-05-2008, 12:41 PM
  5. writing text over a deleted button
    By algi in forum Windows Programming
    Replies: 4
    Last Post: 05-02-2005, 12:32 PM

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