Thread: How do i make out which button is pressed ?

  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,817
    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, 11:43 AM
  3. Howto make own application for remote control handling
    By s-men in forum Windows Programming
    Replies: 16
    Last Post: 08-16-2008, 04:22 PM
  4. Drawing a bitmap when a button is pressed
    By h3ro in forum Windows Programming
    Replies: 5
    Last Post: 08-05-2008, 11:41 AM
  5. writing text over a deleted button
    By algi in forum Windows Programming
    Replies: 4
    Last Post: 05-02-2005, 11:32 AM