Click here to Skip to main content
14,930,311 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to declare WindowProc function in class Pin
mmhu10-Aug-06 4:39
Membermmhu10-Aug-06 4:39 
GeneralRe: How to declare WindowProc function in class Pin
Steen Krogsgaard10-Aug-06 23:49
MemberSteen Krogsgaard10-Aug-06 23:49 
QuestionGetting 2 exceptions in a thread message pump Pin
TClarke10-Aug-06 3:10
MemberTClarke10-Aug-06 3:10 
AnswerRe: Getting 2 exceptions in a thread message pump Pin
Viorel.10-Aug-06 3:28
MemberViorel.10-Aug-06 3:28 
GeneralRe: Getting 2 exceptions in a thread message pump Pin
TClarke10-Aug-06 4:21
MemberTClarke10-Aug-06 4:21 
GeneralRe: Getting 2 exceptions in a thread message pump Pin
TClarke10-Aug-06 4:24
MemberTClarke10-Aug-06 4:24 
GeneralRe: Getting 2 exceptions in a thread message pump Pin
Viorel.10-Aug-06 5:26
MemberViorel.10-Aug-06 5:26 
GeneralRe: Getting 2 exceptions in a thread message pump Pin
TClarke10-Aug-06 22:10
MemberTClarke10-Aug-06 22:10 
Thank you, would you suggest something like this then

<br />
//Variable used to stop the loop<br />
while ( m_keepThreadLoopGoing ) {<br />
    //Have a look at a posted message.<br />
    if (::PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE) != 0 ) {<br />
        //See if it's the one i'm expecting.<br />
	if ( !OnThreadProcess( msg.message, msg.wParam, msg.lParam ) ) {<br />
	    // It was my message, taking it out of the queue.<br />
	    ::GetMessage( &msg, NULL, 0, 0 );<br />
	}<br />
    }<br />
}<br />


Thanks alot

Tom
GeneralRe: Getting 2 exceptions in a thread message pump Pin
TClarke10-Aug-06 22:19
MemberTClarke10-Aug-06 22:19 
Questiongetting font metrics Pin
Kiran Pinjala10-Aug-06 2:01
MemberKiran Pinjala10-Aug-06 2:01 
AnswerRe: getting font metrics Pin
sujtha10-Aug-06 2:10
Membersujtha10-Aug-06 2:10 
AnswerRe: getting font metrics Pin
Hamid_RT11-Aug-06 7:50
MemberHamid_RT11-Aug-06 7:50 
QuestionTAPI Problem ???????? Pin
Rocky Marrone10-Aug-06 1:36
MemberRocky Marrone10-Aug-06 1:36 
Question2 question regarding directories Pin
YaronNir10-Aug-06 0:58
MemberYaronNir10-Aug-06 0:58 
AnswerRe: 2 question regarding directories Pin
Parthi_Appu10-Aug-06 1:06
MemberParthi_Appu10-Aug-06 1:06 
AnswerRe: 2 question regarding directories [modified] Pin
kakan10-Aug-06 1:08
professionalkakan10-Aug-06 1:08 
GeneralRe: 2 question regarding directories Pin
Parthi_Appu10-Aug-06 1:25
MemberParthi_Appu10-Aug-06 1:25 
GeneralRe: 2 question regarding directories Pin
kakan10-Aug-06 1:59
professionalkakan10-Aug-06 1:59 
AnswerRe: 2 question regarding directories [modified] Pin
James R. Twine10-Aug-06 1:22
MemberJames R. Twine10-Aug-06 1:22 
GeneralRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 1:41
MemberHamid_RT10-Aug-06 1:41 
GeneralRe: 2 question regarding directories Pin
James R. Twine10-Aug-06 1:58
MemberJames R. Twine10-Aug-06 1:58 
GeneralRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 2:23
MemberHamid_RT10-Aug-06 2:23 
GeneralRe: 2 question regarding directories Pin
YaronNir10-Aug-06 2:11
MemberYaronNir10-Aug-06 2:11 
GeneralRe: 2 question regarding directories Pin
Hamid_RT10-Aug-06 2:18
MemberHamid_RT10-Aug-06 2:18 
QuestionRe: 2 question regarding directories Pin
David Crow10-Aug-06 2:59
MemberDavid Crow10-Aug-06 2:59 

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.