Thread: Listbox border size different to Tree View?

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273

    Listbox border size different to Tree View?

    Hello,

    I've just noticed in my program, where I have a Tree View and a Listbox directly beneath it, that even though they are numerically the same width, the Listbox appears to be a wee bit smaller than the Tree View. I think I could only attribute this to a difference in border sizes, but that seems a bit silly, as both were created with the (supposedly) same type of border, WS_EX_CLIENTEDGE. Does the Tree View have its own special thinner border, larger-than-normal client area, etc.?

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    Hmm, think I've answered my own question

    I don't think a Tree View needs WS_EX_CLIENTEDGE...

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    Ahhhh, figured it out. For reference, then...

    Never underestimate the power of WS_BORDER.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BST delete again, but this time I think I'm close
    By tms43 in forum C++ Programming
    Replies: 9
    Last Post: 11-05-2006, 06:24 PM
  2. searching and insertion in a binary search tree
    By galmca in forum C Programming
    Replies: 1
    Last Post: 03-26-2005, 05:15 PM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  4. Restoring View Size in Split Views :: MFC
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 05-02-2002, 08:44 AM
  5. binary tree node structure
    By Kirsten in forum C Programming
    Replies: 2
    Last Post: 04-26-2002, 08:02 PM