Solved

CScrollBar object in a CView

Posted on 1998-01-19
1
243 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 50 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now