Click here to Skip to main content
15,917,586 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I implement a rectangle tracker over a bitmap ? Pin
Gem28-Mar-04 21:12
Gem28-Mar-04 21:12 
QuestionPen command returns null pointer ? Pin
Gem28-Mar-04 21:06
Gem28-Mar-04 21:06 
AnswerRe: Pen command returns null pointer ? Pin
Antony M Kancidrowski29-Mar-04 2:44
Antony M Kancidrowski29-Mar-04 2:44 
AnswerRe: Pen command returns null pointer ? Pin
Gem30-Mar-04 1:46
Gem30-Mar-04 1:46 
QuestionIs this code to create and initialize 2d vector correct? Pin
Ming Yan28-Mar-04 20:57
Ming Yan28-Mar-04 20:57 
AnswerRe: Is this code to create and initialize 2d vector correct? Pin
jhwurmbach28-Mar-04 21:42
jhwurmbach28-Mar-04 21:42 
GeneralRe: Is this code to create and initialize 2d vector correct? Pin
Robert A. T. Káldy29-Mar-04 23:03
Robert A. T. Káldy29-Mar-04 23:03 
Questionediting unicode char ? Pin
Manikandan28-Mar-04 20:07
Manikandan28-Mar-04 20:07 
AnswerRe: editing unicode char ? Pin
RChin28-Mar-04 22:15
RChin28-Mar-04 22:15 
GeneralRe: editing unicode char ? Pin
Manikandan28-Mar-04 22:22
Manikandan28-Mar-04 22:22 
GeneralRe: editing unicode char ? Pin
RChin28-Mar-04 22:39
RChin28-Mar-04 22:39 
GeneralPointer or not pointer Pin
Jonathan Pouliot28-Mar-04 19:59
Jonathan Pouliot28-Mar-04 19:59 
GeneralRe: Pointer or not pointer Pin
22491728-Mar-04 20:23
22491728-Mar-04 20:23 
GeneralRe: Pointer or not pointer Pin
Prakash Nadar28-Mar-04 21:07
Prakash Nadar28-Mar-04 21:07 
GeneralRe: Pointer or not pointer Pin
Anonymous29-Mar-04 4:52
Anonymous29-Mar-04 4:52 
GeneralThreads Pin
SatyaDY28-Mar-04 19:38
SatyaDY28-Mar-04 19:38 
GeneralRe: Threads Pin
Prakash Nadar28-Mar-04 21:10
Prakash Nadar28-Mar-04 21:10 
GeneralRe: Threads Pin
SiddharthAtw28-Mar-04 22:57
SiddharthAtw28-Mar-04 22:57 
GeneralRe: Threads Pin
Prakash Nadar28-Mar-04 23:06
Prakash Nadar28-Mar-04 23:06 
GeneralRe: Threads Pin
Tim Smith29-Mar-04 4:14
Tim Smith29-Mar-04 4:14 
GeneralRe: Threads Pin
Prakash Nadar29-Mar-04 5:44
Prakash Nadar29-Mar-04 5:44 
GeneralRe: Threads Pin
Tim Smith29-Mar-04 4:13
Tim Smith29-Mar-04 4:13 
You can have as many message loops in your thread as you wish. I commonly have three or four. Another question is how many message queues can a thread have. The answer to that is only one.

When you display a dialog (using standard Windows), it uses it's own internal message loop to process the message while your main application has the primary message loop used for normal processing.

Often, when an application needs to process messages during an operation that will take a lot of time, another message loop is used to pump the messages from the message queue.

So as you can see, you can have many message loops. But you usually only worry about the primary message loop.

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
GeneralRe: Threads Pin
SatyaDY29-Mar-04 17:20
SatyaDY29-Mar-04 17:20 
GeneralCreating shortcuts Pin
Vini Deep28-Mar-04 19:00
Vini Deep28-Mar-04 19:00 
GeneralRe: Creating shortcuts Pin
22491728-Mar-04 19:19
22491728-Mar-04 19:19 

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.