Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwindowless shockwaveflash control doesn't work properly individually Pin
followait21-Feb-11 22:01
followait21-Feb-11 22:01 
AnswerRe: windowless shockwaveflash control doesn't work properly individually Pin
Ahmed Charfeddine22-Feb-11 0:24
Ahmed Charfeddine22-Feb-11 0:24 
GeneralRe: windowless shockwaveflash control doesn't work properly individually Pin
followait22-Feb-11 14:20
followait22-Feb-11 14:20 
QuestionProblem in Excel Automation. Pin
Le@rner21-Feb-11 21:41
Le@rner21-Feb-11 21:41 
AnswerRe: Problem in Excel Automation. Pin
Niklas L21-Feb-11 22:18
Niklas L21-Feb-11 22:18 
QuestionRichEdit and ITextHost scrollbar Pin
Tangwang21-Feb-11 17:26
Tangwang21-Feb-11 17:26 
QuestionGetting File Path of the Current Program [modified] [SOLVED] Pin
AmbiguousName21-Feb-11 7:09
AmbiguousName21-Feb-11 7:09 
AnswerRe: Getting File Path of the Current Program Pin
Hans Dietrich21-Feb-11 7:19
mentorHans Dietrich21-Feb-11 7:19 
AnswerRe: Getting File Path of the Current Program [modified] [SOLVED] Pin
David Crow21-Feb-11 11:05
David Crow21-Feb-11 11:05 
QuestionStripping new line problem Pin
csrss21-Feb-11 4:26
csrss21-Feb-11 4:26 
AnswerRe: Stripping new line problem Pin
Maximilien21-Feb-11 4:48
Maximilien21-Feb-11 4:48 
GeneralRe: Stripping new line problem Pin
csrss21-Feb-11 4:53
csrss21-Feb-11 4:53 
AnswerRe: Stripping new line problem Pin
csrss21-Feb-11 6:17
csrss21-Feb-11 6:17 
AnswerRe: Stripping new line problem Pin
User 742933821-Feb-11 19:48
professionalUser 742933821-Feb-11 19:48 
GeneralRe: Stripping new line problem Pin
csrss21-Feb-11 23:32
csrss21-Feb-11 23:32 
AnswerRe: Stripping new line problem Pin
Niklas L21-Feb-11 20:05
Niklas L21-Feb-11 20:05 
GeneralRe: Stripping new line problem Pin
csrss21-Feb-11 23:42
csrss21-Feb-11 23:42 
QuestionHow to capture the desktop image behind my main window Pin
Tcpip200521-Feb-11 1:28
Tcpip200521-Feb-11 1:28 
AnswerRe: How to capture the desktop image behind my main window Pin
Hans Dietrich21-Feb-11 1:38
mentorHans Dietrich21-Feb-11 1:38 
GeneralRe: How to capture the desktop image behind my main window Pin
Tcpip200521-Feb-11 14:20
Tcpip200521-Feb-11 14:20 
AnswerRe: How to capture the desktop image behind my main window Pin
_AnsHUMAN_ 21-Feb-11 1:44
_AnsHUMAN_ 21-Feb-11 1:44 
AnswerRe: How to capture the desktop image behind my main window Pin
goorley24-Feb-11 21:03
goorley24-Feb-11 21:03 
QuestionWM_COMMAND is not getiing fired Pin
VC_RYK20-Feb-11 23:38
VC_RYK20-Feb-11 23:38 
AnswerRe: WM_COMMAND is not getiing fired Pin
Andrew Brock20-Feb-11 23:57
Andrew Brock20-Feb-11 23:57 
There is only a few reasons I can think of why this is happening:
1. Make sure you are looking in the right place for the message. I know it seems trivial, but it happens to everyone.
2. Make sure you set the right MsgProc for the child dialog.
3. Make sure something else isn't replacing the MsgProc for the child dialog (such as MFC)

Spy++ is distributed with Visual Studio, and can be found under the tools menu. Follow these steps to debug using Spy++.
Run your program and open the child dialog where the problems are
Start Spy++ from the Tools menu
Find your child dialog window, either in the list or using the find window toolbar icon
Right click on your child dialog window in the list and select Messages
Click some buttons in your program to see if they show up in the list

You can also check things like check the memory address of the MsgProc and window styles by selecting properties from the right click menu.
QuestionMessageBox vs AfxMessageBox Pin
Jens Joseph20-Feb-11 23:13
Jens Joseph20-Feb-11 23:13 

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.