Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 23:04
Le@rner7-Aug-09 23:04 
QuestionProblem sending SMS using EDGE modem Pin
efarook4-Mar-09 22:59
efarook4-Mar-09 22:59 
QuestionHow to override OnOK() and OnESC() in an instance of CDialog? Pin
B_U_A4-Mar-09 22:43
B_U_A4-Mar-09 22:43 
AnswerRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
Cedric Moonen4-Mar-09 22:47
Cedric Moonen4-Mar-09 22:47 
GeneralRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
B_U_A4-Mar-09 23:24
B_U_A4-Mar-09 23:24 
GeneralRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
Hamid_RT4-Mar-09 23:55
Hamid_RT4-Mar-09 23:55 
QuestionHow to receive buffer from a directx based game Pin
kallol kumar4-Mar-09 20:56
kallol kumar4-Mar-09 20:56 
AnswerRe: How to receive buffer from a directx based game [modified] Pin
Code-o-mat4-Mar-09 21:59
Code-o-mat4-Mar-09 21:59 
GeneralRe: How to receive buffer from a directx based game Pin
kallol kumar5-Mar-09 1:15
kallol kumar5-Mar-09 1:15 
GeneralRe: How to receive buffer from a directx based game Pin
Code-o-mat5-Mar-09 1:36
Code-o-mat5-Mar-09 1:36 
QuestionContext Help in dialog Pin
Anu_Bala4-Mar-09 20:14
Anu_Bala4-Mar-09 20:14 
AnswerRe: Context Help in dialog Pin
Hamid_RT4-Mar-09 20:49
Hamid_RT4-Mar-09 20:49 
AnswerRe: Context Help in dialog Pin
SandipG 4-Mar-09 20:56
SandipG 4-Mar-09 20:56 
GeneralRe: Context Help in dialog Pin
Anu_Bala4-Mar-09 21:29
Anu_Bala4-Mar-09 21:29 
QuestionRe: Context Help in dialog Pin
Anu_Bala4-Mar-09 21:58
Anu_Bala4-Mar-09 21:58 
AnswerRe: Context Help in dialog Pin
SandipG 4-Mar-09 22:40
SandipG 4-Mar-09 22:40 
QuestionCWnd getting erased by other windows. Pin
whatever174-Mar-09 19:47
whatever174-Mar-09 19:47 
AnswerRe: CWnd getting erased by other windows. Pin
Cedric Moonen4-Mar-09 20:14
Cedric Moonen4-Mar-09 20:14 
QuestionRe: CWnd getting erased by other windows. Pin
Eytukan4-Mar-09 20:16
Eytukan4-Mar-09 20:16 
AnswerRe: CWnd getting erased by other windows. Pin
Cedric Moonen4-Mar-09 20:20
Cedric Moonen4-Mar-09 20:20 
GeneralRe: CWnd getting erased by other windows. Pin
whatever174-Mar-09 21:44
whatever174-Mar-09 21:44 
GeneralRe: CWnd getting erased by other windows. Pin
Iain Clarke, Warrior Programmer4-Mar-09 22:21
Iain Clarke, Warrior Programmer4-Mar-09 22:21 
GeneralRe: CWnd getting erased by other windows. Pin
whatever174-Mar-09 22:58
whatever174-Mar-09 22:58 
GeneralRe: CWnd getting erased by other windows. Pin
Iain Clarke, Warrior Programmer4-Mar-09 23:20
Iain Clarke, Warrior Programmer4-Mar-09 23:20 
OK, I'm a little confused now.

If the code is not yours, it sounds like you have two choices.

1/ If you have the code, fix the bugs. Then the answers become the same as though the code was by you.
2/ If you don't / can't have the code, demand your money back, or that the supplier fixes their bugs.


I'm also not understanding when you say the CWnds are represents by bitmaps. Isn't the point of child windows that they draw themselves? If the dialog contains many things that are not yours, should they not be responsible for their own WM_PAINT handlers?

---

In answer to your WM_ERASEBKGND question... All windows DO receive that message. Most will ignore it, and let the default behaviour happen in DefWndProc. This will either fill the whole rectangle using the brush defined in the window class (not C++ class, the WNDCLASS), or if that is NULL, set a flag in the PAINTSTRUCT used in WM_PAINT to say that the paint handler needs to erase the window manually.

Good ol' fashioned Win32. There are many times I'm glad I started this game before using MFC. It's great, but it can hide a bit too much at times.

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

GeneralRe: CWnd getting erased by other windows. Pin
whatever174-Mar-09 23:45
whatever174-Mar-09 23:45 

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.