Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - ScrollBar en/disable problem in SkinControl sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ScrollBar en/disable problem in SkinControl sample

 Post Reply Post Reply
Author
Message
dubaoan View Drop Down
Groupie
Groupie


Joined: 01 December 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dubaoan Quote  Post ReplyReply Direct Link To This Post Topic: ScrollBar en/disable problem in SkinControl sample
    Posted: 28 May 2008 at 11:20pm
Hi,
 
In sample SkinControl, I found that m_wndScrollBar can't be enabled after being disabled. Please try the following codes.
 
// disable scrollbar.
m_wndScrollBar.EnableScrollBar(ESB_DISABLE_BOTH);
 
// Enable scrollbar. (But it doesn't work. )
m_wndScrollBar.EnableScrollBar(ESB_ENABLE_BOTH);
 
 
Why?
 
Thanks!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 29 May 2008 at 1:31am

Hello,

Please use
m_wndScrollBar.EnableWindow(FALSE/TRUE) instead.
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dubaoan View Drop Down
Groupie
Groupie


Joined: 01 December 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote dubaoan Quote  Post ReplyReply Direct Link To This Post Posted: 29 May 2008 at 5:18am
It works.
 
Thank you!
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.180 seconds.