Solved

ScrollBar

Posted on 1999-01-21
7
295 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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
Find boost header files using gnu make (MinGW) on Win 7 11 98
Lambda for random numbers problem 7 117
C++ question 3 70
White board coding practice 3 92
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

828 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