Thread: Buttons 'n' stuff

  1. #1
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004

    Question Buttons 'n' stuff

    Hi, I was wondering how do you assign "ID numbers" to buttons and stuff, so that when the WM_COMMAND is sent to the OS, you can use so that different buttons do different things???

  2. #2
    Registered User AtomRiot's Avatar
    Join Date
    Jan 2003
    like if you have 4 different buttons in a program on a window, how would you make each button do different things?
    All Your Base Are Still Belong to Someone!!!
    And you Remember that!!!

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Use the hMenu parameter of CreateWindow() - or you can use SetWindowLong() to change the ID of a window after it's been created.


  4. #4
    Registered User
    Join Date
    Sep 2004
    Another option is to use a resource script to create your GUI interfaces.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 04-09-2009, 02:31 AM
  2. setting font in buttons etc.
    By lobo in forum Windows Programming
    Replies: 4
    Last Post: 01-19-2005, 03:48 PM
  3. Your stuff
    By smog890 in forum C Programming
    Replies: 6
    Last Post: 06-13-2002, 11:50 PM
  4. create radio buttons
    By bluecoder in forum Windows Programming
    Replies: 10
    Last Post: 05-14-2002, 12:01 AM
  5. buttons (very lame newbie question)
    By myth in forum Windows Programming
    Replies: 1
    Last Post: 04-12-2002, 10:10 AM