Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Item changed event in CListCtrl Pin
Randor 21-Jul-08 6:45
professional Randor 21-Jul-08 6:45 
GeneralRe: Item changed event in CListCtrl Pin
tataxin21-Jul-08 7:10
tataxin21-Jul-08 7:10 
GeneralRe: Item changed event in CListCtrl Pin
tataxin21-Jul-08 20:35
tataxin21-Jul-08 20:35 
GeneralRe: Item changed event in CListCtrl Pin
tataxin24-Jul-08 20:16
tataxin24-Jul-08 20:16 
Questionhow do i know the number of messages left unprocessed in a message queue? Pin
namaskaaram21-Jul-08 4:28
namaskaaram21-Jul-08 4:28 
AnswerRe: how do i know the number of messages left unprocessed in a message queue? Pin
Patrick G21-Jul-08 5:46
Patrick G21-Jul-08 5:46 
GeneralRe: how do i know the number of messages left unprocessed in a message queue? Pin
namaskaaram21-Jul-08 22:15
namaskaaram21-Jul-08 22:15 
GeneralRe: how do i know the number of messages left unprocessed in a message queue? Pin
Patrick G22-Jul-08 2:41
Patrick G22-Jul-08 2:41 
I must admit, I havn't used the Microsoft queue, but I have used my own queues as well as queues written for POSIX in Linux. Typically, I've found that there is a length() method on the queue class. In the searches that I just ran I can't say that I've found this to be the case for Microsoft, but I did notice a few methods that could be used to cobble something up with from here: http://msdn.microsoft.com/en-us/library/ms699810(VS.85).aspx[^].

A few ideas that came to mind as I was reading this (unfortunately none of them are as elegant as a getLength() method). One idea that could work is to EnableNotification() and then to have your own counter that increments when a message is received and decrements when a message is used. Another is to use repeated calls to the PeekNext() method in a loop, counting the number of elements in the queue as you go.

Sorry I couldn't be more insightful for you. I hope that what I've found helps you set up an algorithm to get your program working the way you want it to.
QuestionRe: how do i know the number of messages left unprocessed in a message queue? Pin
David Crow22-Jul-08 2:50
David Crow22-Jul-08 2:50 
GeneralRe: how do i know the number of messages left unprocessed in a message queue? Pin
Mark Salsbery22-Jul-08 4:57
Mark Salsbery22-Jul-08 4:57 
QuestionDeletion of a directory Pin
Abhinay Kumar21-Jul-08 4:12
Abhinay Kumar21-Jul-08 4:12 
AnswerRe: Deletion of a directory Pin
David Crow21-Jul-08 5:01
David Crow21-Jul-08 5:01 
GeneralRe: Deletion of a directory Pin
Abhinay Kumar21-Jul-08 6:52
Abhinay Kumar21-Jul-08 6:52 
GeneralRe: Deletion of a directory Pin
David Crow21-Jul-08 7:00
David Crow21-Jul-08 7:00 
GeneralRe: Deletion of a directory Pin
Abhinay Kumar22-Jul-08 21:36
Abhinay Kumar22-Jul-08 21:36 
QuestionRe: Deletion of a directory Pin
David Crow23-Jul-08 7:40
David Crow23-Jul-08 7:40 
QuestionHow to Call structures from c# dll Pin
manju#12321-Jul-08 3:09
manju#12321-Jul-08 3:09 
QuestionRe: How to Call structures from c# dll Pin
David Crow21-Jul-08 3:53
David Crow21-Jul-08 3:53 
AnswerRe: How to Call structures from c# dll Pin
Alan Balkany21-Jul-08 5:39
Alan Balkany21-Jul-08 5:39 
QuestionUser privillage Pin
pooja_friends21-Jul-08 2:32
pooja_friends21-Jul-08 2:32 
AnswerRe: User privillage Pin
KarstenK21-Jul-08 2:49
mveKarstenK21-Jul-08 2:49 
QuestionEdit System file Pin
pooja_friends21-Jul-08 2:31
pooja_friends21-Jul-08 2:31 
AnswerRe: Edit System file Pin
David Crow21-Jul-08 2:49
David Crow21-Jul-08 2:49 
AnswerRe: Edit System file Pin
_AnsHUMAN_ 21-Jul-08 2:52
_AnsHUMAN_ 21-Jul-08 2:52 
GeneralRe: Edit System file Pin
pooja_friends21-Jul-08 4:04
pooja_friends21-Jul-08 4:04 

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.