|
-
April 16th, 1999, 07:13 AM
#1
Subclassing a ListBox in an ActiveX Control
I have been writing an ActiveX Control with Visual C++ Version 5.0 that subclasses a Windows ListBox.
I have been testing my control in various containers and discovered the following problems:
a)Depending on the size of the container the ListBox is displayed differently.
Sometimes the ListBox fills nearly the whole size of the container, sometimes it leaves up to 15 pixels
of the container undrawn (at the bottom of the ListBox).
b)The vertical scrollbar of my ListBox behaves strangely. Scolling with the arrow buttons functions correctly except
that the slider remains at the top of the scrollbar. When I drag the slider downward the items of my
ListBox are scrolled but releasing the slider makes it move back to the top.
I'd be pleased to recieve any comments solutions on these problems.
Carpe diem
Helge Schneider
-
April 20th, 1999, 01:51 AM
#2
Re: Subclassing a ListBox in an ActiveX Control
Hello,
a): Your list box has the "Integral Height" style, i.e. it won't show partial items. If there remains room for one, it is left free. Probably Your item height is 16 pixels.
b): Your scrollbar seems to be not adequately attached to the list. You can set the slider position with CScrollBar::SetScrollPos...
Hope this helps a little,
Rudolf
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|