Controls?

This is a discussion on Controls? within the Windows Programming forums, part of the Platform Specific Boards category; I know how to use the basic controls because its all basicly creating it with CreateWindow() api and Sending messages. ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    161

    Controls?

    I know how to use the basic controls because its all basicly creating it with CreateWindow() api and Sending messages. How do I use other controls like the ones I made in Visual Basics?

    Thanx in advance!

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Controls other the the standard controls (buttons, edit controls, etc) are contained in libraries. All of the common controls, which includes tree views and status bars, are in comctl32.lib. Link with that, and include commctrl.h. Then use CreateWindow() with the control name.

    To find out more about a control, search for it in google and go to the first MSDN site that is listed.
    Eg: google: tree view control.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    I clicked on the link and searched. Everything there was about how to use the treeview control and how it works. Nothing about how to add the control.

    I would like more info on this. Thanx.

  4. #4
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Go to http://www.foosyerdoos.fsnet.co.uk/, it has all you need.

    EDIT: Url.
    Last edited by Mithoric; 11-25-2003 at 11:40 PM.

  5. #5
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Get the Win32 Programmer's Reference, it explains how to create controls and include examples. You should be able to download a copy by searching for it in google. It is a 24mb download.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  6. #6
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Originally posted by Mithoric
    Go to http://foosyerdoos.co.uk, it has all you need.
    That link is incorrect. Here is the proper link.
    FoosYerDoos.
    Kudos to Ken for such a great site.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  7. #7
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Doh, was hoping I corrected it before someone saw .

  8. #8
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Lol you sneak.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. confused about adding controls to main window
    By terracota in forum Windows Programming
    Replies: 4
    Last Post: 11-24-2004, 11:35 AM
  2. Controls
    By osal in forum Windows Programming
    Replies: 7
    Last Post: 06-11-2004, 10:38 AM
  3. Subclassing controls
    By filler_bunny in forum Windows Programming
    Replies: 3
    Last Post: 04-28-2004, 05:43 PM
  4. I need help disabling Keyboard and Mouse input on Edit controls
    By Templario in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2003, 11:59 PM
  5. MFC Controls and Thread Safety :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 12-06-2002, 10:36 AM

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