Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MemDC !!! Pin
PJ Arends29-Aug-04 13:03
professionalPJ Arends29-Aug-04 13:03 
GeneralRe: MemDC !!! Pin
Andre Massada29-Aug-04 20:39
Andre Massada29-Aug-04 20:39 
GeneralRe: MemDC !!! Pin
Andre Massada31-Aug-04 9:42
Andre Massada31-Aug-04 9:42 
GeneralRe: MemDC !!! Pin
KaЯl29-Aug-04 22:46
KaЯl29-Aug-04 22:46 
GeneralRe: MemDC !!! Pin
Andre Massada30-Aug-04 5:14
Andre Massada30-Aug-04 5:14 
GeneralRe: MemDC !!! Pin
KaЯl30-Aug-04 5:38
KaЯl30-Aug-04 5:38 
GeneralRe: MemDC !!! Pin
Andre Massada30-Aug-04 9:02
Andre Massada30-Aug-04 9:02 
GeneralRe: MemDC !!! Pin
KaЯl31-Aug-04 3:16
KaЯl31-Aug-04 3:16 
So, you were right, the problem isn't that simple! The problem comes from the controls embedded in the dialog box, and how to redraw them, knowing than some like the static controls don't draw the background by themselves.
If we want to do the painting of the dialog box through the CmyDialog::OnPaint method, then we have to paint everything by ourselves (forget what I said about DefWindowProc, I was wrong, the MFC architecture doesn't use the WPARAM of the WM_PAINT message, it won't use the DC we are providing so we can't use the base class), the dialog box and its child windows. Sadly, I didn't found yet an easy solution to indicate to the child windows how to use the MemDC we build Sigh | :sigh:








Собой остаться дольше...

GeneralHaving trouble with arrays. Pin
nigma_x29-Aug-04 9:18
nigma_x29-Aug-04 9:18 
GeneralRe: Having trouble with arrays. Pin
PJ Arends29-Aug-04 9:34
professionalPJ Arends29-Aug-04 9:34 
GeneralRe: Having trouble with arrays. Pin
nigma_x30-Aug-04 3:54
nigma_x30-Aug-04 3:54 
GeneralRegistry question Pin
Andre Massada29-Aug-04 8:35
Andre Massada29-Aug-04 8:35 
GeneralRe: Registry question Pin
PJ Arends29-Aug-04 8:53
professionalPJ Arends29-Aug-04 8:53 
GeneralRe: Registry question Pin
Andre Massada29-Aug-04 9:53
Andre Massada29-Aug-04 9:53 
Generalsetting font size in wm_paint Pin
Tyrus18229-Aug-04 8:30
Tyrus18229-Aug-04 8:30 
GeneralRe: setting font size in wm_paint Pin
bneacetp29-Aug-04 9:02
bneacetp29-Aug-04 9:02 
GeneralRe: setting font size in wm_paint Pin
PJ Arends29-Aug-04 9:03
professionalPJ Arends29-Aug-04 9:03 
GeneralMultiple inheritance in MFC Pin
Vaclav29-Aug-04 8:21
Vaclav29-Aug-04 8:21 
GeneralRe: Multiple inheritance in MFC Pin
PJ Arends29-Aug-04 9:52
professionalPJ Arends29-Aug-04 9:52 
GeneralRe: Multiple inheritance in MFC Pin
Vaclav30-Aug-04 7:07
Vaclav30-Aug-04 7:07 
GeneralRe: Multiple inheritance in MFC Pin
PJ Arends30-Aug-04 17:58
professionalPJ Arends30-Aug-04 17:58 
GeneralRe: Multiple inheritance in MFC Pin
Vaclav31-Aug-04 9:57
Vaclav31-Aug-04 9:57 
GeneralStruct for CListCtrl items/subitems Pin
Thomas Latuske29-Aug-04 8:03
Thomas Latuske29-Aug-04 8:03 
GeneralRe: Struct for CListCtrl items/subitems Pin
toxcct29-Aug-04 9:24
toxcct29-Aug-04 9:24 
GeneralRe: Struct for CListCtrl items/subitems Pin
KaЯl29-Aug-04 22:53
KaЯl29-Aug-04 22:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.