Solved

CScrollBar object in a CView

Posted on 1998-01-19
1
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

726 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