Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Scrollbar not skinned
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Scrollbar not skinned

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: Scrollbar not skinned
    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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2007 at 1:18am
Hi,
 
So do you use SKinFramework ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post 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?





Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.051 seconds.