Thread: Header controls

  1. #1
    Join Date
    Sep 2003

    Header controls

    Hello again.
    This time, I have another (maybe simple) question about Windows GUI programming. Well, I would like to know about header controls this time.
    - How do I create collumns and assign them a label?
    - How do I insert items in these collumns?

    - Does the header control covers the columns headers *and* the columns content or are they two different things?
    - If so, what is this second thing? Another control?

    Don't give me a MSDN link, I've already visited and it does not appear that clear to me, so I would like to get some answers from those who used these controls.


  2. #2
    Join Date
    Sep 2003
    Well, I found part of the answer by trying out the code sample of MSDN, however, I couldn't figure out howto insert an element into the columns. It's the only quetsion that remains.

  3. #3
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    I think what you want is a List View Control in report view mode.

  4. #4
    Join Date
    Sep 2003
    Thanks for the link, I eventually figured it out myself though. ^^ However, what are header controls for anyway?

  5. #5
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Here's a quote from a reference:
    A header control is a window that is usually positioned above columns of text or numbers. It contains a title for each column, and it can be divided into parts. The user can drag the dividers that separate the parts to set the width of each column. The following illustration shows a header control that has labeled columns giving detailed information about files in a directory.
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  3. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM