15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Buttons in CTreeView too small

Hulemannen -- elg2@nobipol.unit.no
Thursday, July 18, 1996

Environment: MSVC40, NT 3.51

I have a CTreeView with the TVS_HASBUTTONS-style. 
The control is attatched to an Imagelist.
Strangly, the buttons seem to be only half the size 
of those in, say, Developer Studio 4.0 or Explorer. 
I've tried fooling around with different styles for 
the CTreeCtrl, but this made no difference. 
Creating the control without the imagelist makes 
the buttons appear normal size.  

-- 
Name: Steinar M. Elgsaeter (The Caveman)
E-mail: elg2@nobipol.unit.no
"The nice thing about C++ is that only your friends 
can handle your private parts."



Randy Taylor -- drt@ebt.com
Monday, July 22, 1996

[Mini-digest: 4 responses]

>Environment: MSVC40, NT 3.51
>
>I have a CTreeView with the TVS_HASBUTTONS-style. 
>The control is attatched to an Imagelist.
>Strangly, the buttons seem to be only half the size 
>of those in, say, Developer Studio 4.0 or Explorer. 
>I've tried fooling around with different styles for 
>the CTreeCtrl, but this made no difference. 
>Creating the control without the imagelist makes 
>the buttons appear normal size.  

The buttons ("plus" and "minus" symbols) are sized
by the CTreeCtrl (window class WC_TREEVIEW) based
upon the verticle hight of the imagelist. If you supply
no imagelist, then then a default size is used.
I know of know way to relationship that the window
makes between the the buttons and the imagelist (or lack of
an imagelist).


-----From: "Bikkula, Ravi" 


Button size depend on the size of the size of images in the imagelist.
Try increasing the image sizes until the button size that you want is
achevied.

Thanx and Regards
...................................................................
Ravi Kumar Bikkula
Off :                                                 Res :
GE Fanuc Automation                   4,Farnsworth Drive , Apt #9
Albany, NY 12203 5189                Slingerlands, NY 12159
Ph #  (518) 464-4695                    Ph # (518) 869-8515
mail :              Bikkula@albpig.cho.ge.com




| Вернуться в корень Архива |