Print Page | Close Window

Scrollbar not skinned

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7858
Printed Date: 13 November 2025 at 11:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Scrollbar not skinned
Posted By: MacW
Subject: Scrollbar not skinned
Date Posted: 22 August 2007 at 2:26pm
Hi,

I create a CWnd-derived window and attach it to a pane.
The CWnd window uses the WS_VSCROLL window style.



The scroll bar is not styled (see above). Also, it does not exactly fit the caption bar of the pane.

How to I skin the scroll bar and make it fit properly?




Replies:
Posted By: Oleg
Date Posted: 23 August 2007 at 1:18am
Hi,
 
So do you use SKinFramework ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MacW
Date Posted: 23 August 2007 at 10:07am
Yes. The application is skinned. But I made a mistake and hence the skin did not work correctly. My fault

But, the alignment of the scroll bar to the caption is not correct:




Seems to be some border style or similar which does not match?

Since my window fills the entire panel, the caption seems to be two or three pixels to short?







Posted By: MacW
Date Posted: 23 August 2007 at 2:24pm
OK, I now added  WS_BORDER to the styles used for the window contained in the panel, and now the toolbar aligns wit the panel caption.

Perhaps you may want to add this to the online help somewhere, like "Panels assume that the window contained in the panel has the WS_BORDER style set".

Thanks.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net