Buttons 'n' stuff

This is a discussion on Buttons 'n' stuff within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I was wondering how do you assign "ID numbers" to buttons and stuff, so that when the WM_COMMAND is ...

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

    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
    Posts
    120
    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
    Posts
    4,699
    Use the hMenu parameter of CreateWindow() - or you can use SetWindowLong() to change the ID of a window after it's been created.

    http://www.winprog.org/tutorial/

    gg

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,255
    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, 03: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-14-2002, 12:50 AM
  4. create radio buttons
    By bluecoder in forum Windows Programming
    Replies: 10
    Last Post: 05-14-2002, 01:01 AM
  5. buttons (very lame newbie question)
    By myth in forum Windows Programming
    Replies: 1
    Last Post: 04-12-2002, 11:10 AM

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