| |

VerySource

 Forgot password?
 Register
Search
View: 591|Reply: 2

Urgently ask some application questions for displaying bmp images

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-28 00:20:01
| Show all posts |Read mode
The instructor asked to write an MFC program. The project was derived from CFormview and then split the window. The dialog box on the left and the area for displaying the picture on the right. I used the class derived from CScrollview. I want to implement the following functions: First, pull The scroll bar can change the image accordingly. Second, select an area to zoom in. In short, just like the basic functions of acdsee software. Realize zoom in, zoom out, drag up, down, left and right.
    But CScrollview is too slow, I call its function ScrollToPosition corresponding to the event of mouse movement. Now the instructor requests to achieve the effect of asdsee, the image dragging zoom in and out should be smooth. Can not be as slow and consume memory as CScrollview
    Please teach me a trick, thank you very much !!!!!!!!!
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-23 02:45:01
| Show all posts
Display the picture and handle the scroll message yourself. Don't have to be so troublesome
You should be made by Bitble, right?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-26 23:30:02
| Show all posts
The function SetDIBitsToDevice now fixes the scrolling. It is to change the value of the second and third parameters.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list