Solved

ScrollBar

Posted on 1999-01-21
7
297 Views
Last Modified: 2010-04-02
How do I Create a ScrollBar like this
..
SCROLLBAR Scrol1 ;
without using MFC
0
Comment
Question by:win32
[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
  • 3
  • 2
  • 2
7 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1184694
Do you mean you want to write a class like MFC's scrollbar class?  That is quite involved  (I know, I've put 3 years into my MFC-like class library.(
0
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 100 total points
ID: 1184695
You can do it by using a simple CreateWindow call with SCROLLBAR as the class name
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184696
that allows you to create the scrollbar control window, that doesn't allow you to do something like

SCROLLBAR Scrol1 ;

For that you need to wrap the CreateWindow()--and a lot more into a class.  
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:win32
ID: 1184697
Year that's working ..

Well thats a smoth way of doing it. (I am using registerd classes)  !

>Where can I find a list of all registerd classes ?<

0
 

Author Comment

by:win32
ID: 1184698
Year that's working ..

Well thats a smoth way of doing it. (I am using registerd classes)  !

>Where can I find a list of all registerd classes ?<

0
 

Author Comment

by:win32
ID: 1184699
Whoops...(sending 2 times)
Ok I also want to draw a BMP in an window (And I have got that to work)

BUT, the window i created like this:
W1 = CreateWindow("edit",...)
And I found out that "edit" class is not the optimal way to do this. How do I init a window optimised for showing BMPs. The problem is that the "edit" window atomaticly redraws, resulting of multiple redraws (NOT clever)-- I want to do like this:
w1 = CreateWindow("no_redraw"..), or acturly get the window to point to the BMP, so that I wont have to redraw on scaling with
WM_PAINT:
 update(...);
return 0 ;

0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1184700
Register your own class for that
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

627 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