Solved

CScrollBar object in a CView

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.net build a IF/Then Walkthrough Guide 1 233
I could not set window to top 4 20
Adding items to a C# list incrementally 5 29
boost::uuid crashes 17 10
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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 concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

808 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