Buttons

This is a discussion on Buttons within the Windows Programming forums, part of the Platform Specific Boards category; How do I create buttons in Win32 API? like a "click here to quit" button...

  1. #1
    Banned
    Join Date
    Aug 2004
    Posts
    3

    Buttons

    How do I create buttons in Win32 API?
    like a "click here to quit" button

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Using CreateWindow() or CreateWindowEx(). You need to specify "Button" as the window class name.

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Use CreateWindowEx with button as the classname; more information can be found here.

    If you're just starting out with windows programming you may want to take a look at the following sites:

    theForger's win32api tutorial
    raredical
    From the ground up

    edit: biffed by Dante.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

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