Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
1/
whatever17 wrote:
And OnPaint method for the same is not defined for the Dialog


It's defined if you put it there. CDialog inherits from CWnd, and can handle any window message you ask it to. Just because a method is not put in for... does not mean you can't put it in for yourself. Don;t forget to add ON_PAINT to your message map.

2/
OK, I only had one real point. Erm...

3/
See 2.

4/
Now I remember!
whatever17 wrote:

And when other window hovers over my application, my CWnd object does not receive any messages.

Well, what messages did you expect to receive? WM_YEP_STILLQUIETOUTTHERE? Your window is covered up. It's not receiving any keyboard or mouse input, and not needing to redraw. Unless there are system wide messages to do with system changes, or you've set a timer, there's really not much for you to respond to.

Have a look under the dialog / windows section of codeproject for all sorts of articles on technicolour odd shaped dialogs. They've done it already - steal their work without paying! It's what we're here for...

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 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 
GeneralRe: CWnd getting erased by other windows. Pin
whatever174-Mar-09 23:45
whatever174-Mar-09 23:45 
GeneralRe: CWnd getting erased by other windows. Pin
SandipG 5-Mar-09 0:33
SandipG 5-Mar-09 0:33 
GeneralRe: CWnd getting erased by other windows. Pin
whatever175-Mar-09 1:15
whatever175-Mar-09 1:15 
GeneralRe: CWnd getting erased by other windows. Pin
SandipG 5-Mar-09 1:24
SandipG 5-Mar-09 1:24 
AnswerRe: CWnd getting erased by other windows. Pin
whatever176-Mar-09 2:49
whatever176-Mar-09 2:49 
QuestionExit an Application Pin
punav4-Mar-09 19:34
punav4-Mar-09 19:34 
QuestionRe: Exit an Application Pin
Eytukan4-Mar-09 20:36
Eytukan4-Mar-09 20:36 
AnswerRe: Exit an Application Pin
Hamid_RT4-Mar-09 20:46
Hamid_RT4-Mar-09 20:46 
GeneralRe: Exit an Application Pin
punav4-Mar-09 21:11
punav4-Mar-09 21:11 
GeneralRe: Exit an Application Pin
Akt_4_U4-Mar-09 22:46
Akt_4_U4-Mar-09 22:46 
GeneralRe: Exit an Application Pin
punav4-Mar-09 23:55
punav4-Mar-09 23:55 
QuestionDeprecation Error Pin
Varun Bhatt4-Mar-09 19:00
Varun Bhatt4-Mar-09 19:00 
AnswerRe: Deprecation Error Pin
Cedric Moonen4-Mar-09 20:28
Cedric Moonen4-Mar-09 20:28 
AnswerRe: Deprecation Error Pin
Eytukan4-Mar-09 20:40
Eytukan4-Mar-09 20:40 
GeneralRe: Deprecation Error Pin
CPallini4-Mar-09 22:15
mveCPallini4-Mar-09 22:15 

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.