[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CScrollBar object in a CView

Posted on 1998-01-19
1
Medium Priority
?
254 Views
Last Modified: 2011-10-03
With VC++ 4.0, is it possible and how to proceed to create a CScrollBar Object in a CView (not the CWnd::ShowScrollBar() function)?  I'd like to have my view with some frames like a web page to display informations entered by the user.

Thanks
0
Comment
Question by:adnrwin
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1178523
Several methods:
1. Use CScrollView instead of CView.
2. In OnCreate(), call ModifyStyle to apply WS_HSCROLL or WS_VSCROLL.
3. Add a member variable CScrollBar m_sbar, and create it (m_sbar.Create) in OnCreate of your CView.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question