Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ScrollBar

Posted on 1999-01-21
7
Medium Priority
?
300 Views
Last Modified: 2010-04-02
How do I Create a ScrollBar like this
..
SCROLLBAR Scrol1 ;
without using MFC
0
Comment
Question by:win32
  • 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 200 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
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 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 clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

783 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