CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Posts
    306

    How to get the general default height of a CListbox item?

    Hello,

    how can I get the height of a item in a standard CListBox?
    Is there something like GetSystemMetrics for that?

    I want to create a customized listbox with the standard height!

    thx.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: How to get the general default height of a CListbox item?

    The item height for non-overdrawn listbox depends on the font used by the control. So there is no anything "like GetSystemMetrics for that".
    BTW, did you try CListBox::GetItemHeight?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured