Solved

ScrollBar

Posted on 1999-01-21
7
289 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 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 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.
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.

746 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