Thread: Visual c++ 6.0

  1. #1
    Registered User
    Join Date
    Aug 2001

    Visual c++ 6.0

    how can i add buttons and listbox in visual c++ 6.0?

  2. #2
    Registered User Ward's Avatar
    Join Date
    Sep 2001
    The easy way:
    In your workspace explorer, select tabpage ResourceView.
    Rigth click and choose Insert...
    Select a dialog and press OK.
    Pick a button from the child control panel and draw a button in your dialogbox.
    Pick a listbox and draw the listbox.


    The hard way:
    If you're not working with the resource scripts, and you've already been able to create a simply window, you can create a Listbox or a button on the parent window using the CreateWindow function and use for lpClassName "BUTTON" or "LISTBOX".
    Check out the CreateWindow function in the MSDN Library.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM