Flicker Free example with CStatic Control

The following code shows how to paint into a CStatic Control and make sure this painting is flicker-free. [TOC] The example code for download:   FlickerFreeDemoStatic.zip (61,6 KiB) Overloading of CStatic Unfortunately one can not draw inside a CStatic...

Flicker Free example with dialog

One can find several examples for flicker free drawing in MFC. (see for example Flicker Free Drawing In MFC) Here is an example done by myself. I used the CMemDC Class posted in Enhanced CMemDC. The example code for download:   FlickerFreeDemoBackground.zip...

Enhanced CMemDC

Flicker Free drawing onto a dc can be realised by using the class CMemDC by Keith Rule (Flicker free drawing using memory DC) I changed the Class in such a way that it supports the automatic resizing of images that have higher or lower size than the dc that it is...

Convert Cstring to int

The solution is the following CString samplecstring; int i = _ttoi(samplecstring); further conversion examples are listed at http://www.codeproject.com/cpp/data_conversions.asp. Converting backwards from int to CString can be done via int i = 255; Cstring text;...

Add non modal dialog to project

If we have an existing project one needs to do the following steps to add an non-modal dialog. Example Project:   ModelessDialog.zip (45,5 KiB) Add a new dialog to the project and add a class for that dialog Add a member variable for the dialog to the...