I'm implementing my own drag and drop of bitmaps in a CScrollView window. Right now I redraw the entire view for each movement, but this is not a good solution since I'm going to have quite a lot of graphics in this window. What is the most efficient way to do this? Can I somehow read a section of the view into memory, draw my bitmap there, and the next time redraw only that section and so on.
First thing you need is clipping. This means you need to repaint only what you need, not the whole view. For example, when you drag a bitmap, you take previous rectangle of the bitmap and current rectangle
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms. Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go. MFC has a very cool system for handli…
Displaying information on the statusbar.
Continuing from the third article about sudoku.
Open the project in visual studio.
Status bar – let’s display the timestamp there. We need to get the timestamp from the document s…
Two types of users will appreciate AOMEI Backupper Pro:
1 - Those with PCIe drives (and haven't found cloning software that works on them).
2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…