Thread: Buttons

  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
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    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, 02:31 AM
  2. Ownerdraw buttons (2)
    By maes in forum Windows Programming
    Replies: 7
    Last Post: 09-11-2003, 05:50 AM
  3. Radio Buttons in Visual C++ 6
    By Ripper1 in forum Windows Programming
    Replies: 22
    Last Post: 05-16-2003, 07: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, 07:15 AM