Click here to Skip to main content
15,920,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make sure the LPCRITICAL_SECTION i have is valid Pin
Stephen Hewitt16-Jul-07 14:21
Stephen Hewitt16-Jul-07 14:21 
QuestionMonday morning mapping (CDC::SetMapMode) question. Pin
Maximilien16-Jul-07 5:09
Maximilien16-Jul-07 5:09 
AnswerRe: Monday morning mapping (CDC::SetMapMode) question. Pin
bob1697216-Jul-07 6:20
bob1697216-Jul-07 6:20 
QuestionWindowProc() precision Pin
rp_suman16-Jul-07 5:08
rp_suman16-Jul-07 5:08 
QuestionRe: WindowProc() precision Pin
Mark Salsbery16-Jul-07 5:22
Mark Salsbery16-Jul-07 5:22 
AnswerRe: WindowProc() precision Pin
rp_suman16-Jul-07 21:32
rp_suman16-Jul-07 21:32 
GeneralRe: WindowProc() precision Pin
Mark Salsbery17-Jul-07 5:28
Mark Salsbery17-Jul-07 5:28 
GeneralRe: WindowProc() precision Pin
rp_suman17-Jul-07 19:53
rp_suman17-Jul-07 19:53 
Mark Salsbery wrote:
You stated you're using a windowproc? How are you doing this with an MFC window?


The declaration is in Dialog's header file as follows:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
And the implementation is in Dialog's cpp file as follows:
LRESULT CYSPController1Dlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) <br />
{<br />
    ubyt    ubMidiData;<br />
    switch( message ) {<br />
        case MM_MIM_DATA:           <br />
		/*do nothing*/<br />
                break;<br />
        case MM_MIM_LONGDATA:       <br />
                ReceiveLongMsg( lParam );              <br />
                break;<br />
    }<br />
    return CDialog::WindowProc(message, wParam, lParam); <br />
}<br />


Mark Salsbery wrote:
Have you tried getting the message in your maindialog class using the message map?

Yes, I have also tried your suggestion but the result is same.
I confirmed the message is missing by running the USB monitoring software(Device Monitoring Studio by HHD), while printing the message from H/W in file by MFC application. the monitoring tool getting all the messages from H/W but the application is missing a single message. I am looking in the problem. Thanks for your great help.
Best Regards,
Suman
GeneralRe: WindowProc() precision Pin
rp_suman17-Jul-07 22:01
rp_suman17-Jul-07 22:01 
GeneralRe: WindowProc() precision Pin
Mark Salsbery18-Jul-07 5:47
Mark Salsbery18-Jul-07 5:47 
QuestionListbox multi select problem [modified] Pin
pirat316-Jul-07 4:53
pirat316-Jul-07 4:53 
Question(ActiveX) Control in VC++6 as collection of Controls? Pin
Andy Rama16-Jul-07 4:46
Andy Rama16-Jul-07 4:46 
QuestionSetting Dialog Control Focus Pin
MRCres16-Jul-07 4:25
MRCres16-Jul-07 4:25 
AnswerDouble posting Pin
leckey16-Jul-07 4:30
leckey16-Jul-07 4:30 
AnswerRe: Setting Dialog Control Focus Pin
Stephen Hewitt16-Jul-07 14:27
Stephen Hewitt16-Jul-07 14:27 
QuestionSetting Dialog Control Focus Pin
MRCres16-Jul-07 4:21
MRCres16-Jul-07 4:21 
QuestionRe: Setting Dialog Control Focus Pin
Mark Salsbery16-Jul-07 5:52
Mark Salsbery16-Jul-07 5:52 
QuestionRe: Setting Dialog Control Focus Pin
MRCres16-Jul-07 9:34
MRCres16-Jul-07 9:34 
AnswerRe: Setting Dialog Control Focus Pin
Mark Salsbery16-Jul-07 9:40
Mark Salsbery16-Jul-07 9:40 
QuestionRe: Setting Dialog Control Focus Pin
David Crow16-Jul-07 10:22
David Crow16-Jul-07 10:22 
AnswerRe: Setting Dialog Control Focus Pin
MRCres17-Jul-07 2:43
MRCres17-Jul-07 2:43 
GeneralRe: Setting Dialog Control Focus Pin
David Crow17-Jul-07 2:46
David Crow17-Jul-07 2:46 
GeneralRe: Setting Dialog Control Focus Pin
MRCres23-Jul-07 6:14
MRCres23-Jul-07 6:14 
QuestionFlashWindowEx useage Pin
minkowski16-Jul-07 4:17
minkowski16-Jul-07 4:17 
AnswerRe: FlashWindowEx useage Pin
CPallini16-Jul-07 4:48
mveCPallini16-Jul-07 4:48 

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.