nav-left cat-right
cat-right
Matthias Pospiech > Programming > C++ > MFC > Flicker Free example with CStatic Control

Flicker Free example with CStatic Control

Flicker Free drawing

It works very similar to the description of Flicker Free example with dialog.

The main point are to overload ON_WM_ERASEBKGND(), Invalidate the Window Area and paint in OnPaint with the class CMemDC.

Here however one has to make sure that there is no ON_WM_ERASEBKGND() in the Parent Dialog.

Resizing of Images

In this project the facility of CMemDC to scale the data to be shown is used:
vector<vector <COLORREF> > PlotData;

Seiten: 1 2 3

Einen Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

*

This blog is kept spam free by WP-SpamFree.