Solved

ScrollBar

Posted on 1999-01-21
7
293 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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.

932 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

11 Experts available now in Live!

Get 1:1 Help Now