Click here to Skip to main content
15,890,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: a problem about ListBox's item Pin
CPallini22-Mar-07 2:46
mveCPallini22-Mar-07 2:46 
GeneralRe: a problem about ListBox's item Pin
Chen-XuNuo22-Mar-07 3:13
Chen-XuNuo22-Mar-07 3:13 
GeneralRe: a problem about ListBox's item Pin
CPallini22-Mar-07 3:38
mveCPallini22-Mar-07 3:38 
GeneralRe: a problem about ListBox's item Pin
Chen-XuNuo22-Mar-07 3:44
Chen-XuNuo22-Mar-07 3:44 
GeneralRe: a problem about ListBox's item Pin
Chen-XuNuo22-Mar-07 3:24
Chen-XuNuo22-Mar-07 3:24 
GeneralRe: a problem about ListBox's item Pin
CPallini22-Mar-07 3:47
mveCPallini22-Mar-07 3:47 
QuestionSetTimer critical section problem Pin
D G McKay22-Mar-07 1:35
D G McKay22-Mar-07 1:35 
AnswerRe: SetTimer critical section problem Pin
James R. Twine22-Mar-07 1:46
James R. Twine22-Mar-07 1:46 
   EnterCriticalSection(...) is working correctly in this case - if the same thread tries to enter the same CS, it just increments the counters.

   I think that using the static variable may be the easiest way to make this kind of issue work, short of not throwing up a blocking interface.  There is no need to take something simple that works and make it unnecessarily complex.

   If the number of times the message would have been shown is significant, I would suggest having a custom dialog where you can update a message or counter indicating multiple messages (like: "this message has occurred xxx times").

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

AnswerRe: SetTimer critical section problem Pin
kakan22-Mar-07 1:55
professionalkakan22-Mar-07 1:55 
GeneralRe: SetTimer critical section problem Pin
James R. Twine22-Mar-07 2:09
James R. Twine22-Mar-07 2:09 
GeneralRe: SetTimer critical section problem Pin
kakan22-Mar-07 2:19
professionalkakan22-Mar-07 2:19 
GeneralRe: SetTimer critical section problem Pin
D G McKay22-Mar-07 2:30
D G McKay22-Mar-07 2:30 
GeneralRe: SetTimer critical section problem Pin
kakan22-Mar-07 2:34
professionalkakan22-Mar-07 2:34 
AnswerRe: SetTimer critical section problem Pin
Parthi_Appu22-Mar-07 1:57
Parthi_Appu22-Mar-07 1:57 
GeneralRe: SetTimer critical section problem Pin
Michael Dunn22-Mar-07 10:14
sitebuilderMichael Dunn22-Mar-07 10:14 
GeneralRe: SetTimer critical section problem Pin
Parthi_Appu22-Mar-07 17:06
Parthi_Appu22-Mar-07 17:06 
AnswerRe: SetTimer critical section problem Pin
Stephen Hewitt22-Mar-07 13:00
Stephen Hewitt22-Mar-07 13:00 
QuestionCheck if is folder or file function? Pin
bosfan22-Mar-07 0:51
bosfan22-Mar-07 0:51 
AnswerRe: Check if is folder or file function? Pin
prasad_som22-Mar-07 0:54
prasad_som22-Mar-07 0:54 
GeneralRe: Check if is folder or file function? [modified] Pin
bosfan22-Mar-07 0:57
bosfan22-Mar-07 0:57 
QuestionRe: Check if is folder or file function? Pin
Rajesh R Subramanian22-Mar-07 0:58
professionalRajesh R Subramanian22-Mar-07 0:58 
AnswerRe: Check if is folder or file function? Pin
David Crow22-Mar-07 3:06
David Crow22-Mar-07 3:06 
GeneralRe: Check if is folder or file function? Pin
Rajesh R Subramanian22-Mar-07 3:18
professionalRajesh R Subramanian22-Mar-07 3:18 
GeneralRe: Check if is folder or file function? Pin
David Crow22-Mar-07 3:23
David Crow22-Mar-07 3:23 
AnswerRe: Check if is folder or file function? Pin
DLChambers23-Mar-07 16:52
DLChambers23-Mar-07 16:52 

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.