Thread: Controls?

  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.
    [email protected]
    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
    Go to http://www.foosyerdoos.fsnet.co.uk/, it has all you need.

    EDIT: Url.
    Last edited by Mithoric; 11-26-2003 at 12:40 AM.

  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.
    [email protected]
    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.
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  7. #7
    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.
    [email protected]
    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, 12:35 PM
  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-07-2003, 12:59 AM
  5. MFC Controls and Thread Safety :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 12-06-2002, 11:36 AM