Visual c++ 6.0

This is a discussion on Visual c++ 6.0 within the Windows Programming forums, part of the Platform Specific Boards category; how can i add buttons and listbox in visual c++ 6.0?...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    30

    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
    Location
    Belgium
    Posts
    39
    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.

    -OR-

    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.
    Greetings.

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, 01: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, 09:57 AM

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