Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Need the size of a scrollbar in a dynamicly created listbox?

Posted on 2003-03-21
2
Medium Priority
?
205 Views
Last Modified: 2013-11-20
Hi,
To get the correct look to a listbox I am creating at
runtime I need to include the depth of a horizontal
scrollbar. pListBox->GetItemHeight(0) seems to return
a value that is too small, persumably because it's not
including leaders, borders and other required junk.
How do I get a true value?
Yours
Allan
0
Comment
Question by:mellor
2 Comments
 
LVL 1

Accepted Solution

by:
keitha1 earned 280 total points
ID: 8184155
Use GetSystemMetrics (SM_CYHSCROLL);

0
 

Author Comment

by:mellor
ID: 8193782
TA,
Works a treat.
Yours
Allan
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Loops Section Overview
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question