?
Solved

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

Posted on 2003-03-21
2
Medium Priority
?
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

771 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