Click here to Skip to main content
16,008,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC icons Pin
Stephen McGeown22-Jul-01 4:11
Stephen McGeown22-Jul-01 4:11 
GeneralLong Number Storage for Encryption Pin
Peter Liddle21-Jul-01 12:40
Peter Liddle21-Jul-01 12:40 
GeneralExtending SIP Pin
21-Jul-01 10:50
suss21-Jul-01 10:50 
GeneralRe: Extending SIP Pin
Anders Molin21-Jul-01 11:34
professionalAnders Molin21-Jul-01 11:34 
GeneralRe: Extending SIP Pin
21-Jul-01 12:37
suss21-Jul-01 12:37 
GeneralRe: Extending SIP Pin
Anders Molin21-Jul-01 12:45
professionalAnders Molin21-Jul-01 12:45 
GeneralExtending SIP Pin
21-Jul-01 10:46
suss21-Jul-01 10:46 
QuestionAdding time in a loop,, is it possible??? Pin
mr200321-Jul-01 7:52
mr200321-Jul-01 7:52 
Hi,,
I have a loop which draws a certain number of(user defined) lines(sets of lines). I like to draw each set line after one second.

Below is the source code of my loop.


item* ptr;
//this is the loop,
for(int i=1; i<= End_Of_Loop ; i++)
{
//This is where it should wait for 1 second, and then draw the next
//set of lines
pDoc= GetTheDocument(i);
ptr=pDoc->myList.GetStartList();
if( ptr != NULL)
{
CClientDC dc(this);
for( ptr=pDoc->myList.GetStartList(); ptr->next!=NULL; ptr=ptr->next)
{
dc.MoveTo(ptr->Coord);
if(ptr->next == NULL)
dc.LineTo(pDoc->myList.GetStartList()->Coord);
else
dc.LineTo(ptr->next->Coord);
}
dc.MoveTo(ptr->Coord);
dc.LineTo(pDoc->myList.GetStartList()->Coord);
}
//clear the View, for the next set of lines.
Invalidate(FALSE);
}

any ideas how can I do that...

ThanksConfused | :confused:

Ehsan Behboudi
AnswerRe: Adding time in a loop,, is it possible??? Pin
Michael Dunn21-Jul-01 8:05
sitebuilderMichael Dunn21-Jul-01 8:05 
AnswerRe: Adding time in a loop,, is it possible??? Pin
21-Jul-01 19:52
suss21-Jul-01 19:52 
GeneralColoring ListBox entries & Date Picking... Pin
Simon Judge21-Jul-01 7:49
Simon Judge21-Jul-01 7:49 
GeneralPath Info Pin
21-Jul-01 4:03
suss21-Jul-01 4:03 
GeneralRe: Path Info Pin
Joaquín M López Muñoz21-Jul-01 5:13
Joaquín M López Muñoz21-Jul-01 5:13 
QuestionHow can I broadcast a mpeg vedio or mp3 to the LAN Pin
21-Jul-01 1:42
suss21-Jul-01 1:42 
AnswerRe: How can I broadcast a mpeg vedio or mp3 to the LAN Pin
Matt Newman23-Jul-01 16:59
Matt Newman23-Jul-01 16:59 
GeneralRe: How can I broadcast a mpeg vedio or mp3 to the LAN Pin
attckboy24-Jul-01 2:01
attckboy24-Jul-01 2:01 
GeneralRe: How can I broadcast a mpeg vedio or mp3 to the LAN Pin
Matt Newman24-Jul-01 7:25
Matt Newman24-Jul-01 7:25 
GeneralRe: How can I broadcast a mpeg vedio or mp3 to the LAN Pin
attckboy24-Jul-01 16:48
attckboy24-Jul-01 16:48 
GeneralColorful windows Pin
20-Jul-01 22:40
suss20-Jul-01 22:40 
GeneralRe: Colorful windows Pin
attckboy21-Jul-01 4:06
attckboy21-Jul-01 4:06 
GeneralWin2k don't like my coding... Pin
Andreas Philipson20-Jul-01 15:01
Andreas Philipson20-Jul-01 15:01 
GeneralRe: Win2k don't like my coding... Pin
Matt Gullett20-Jul-01 15:33
Matt Gullett20-Jul-01 15:33 
GeneralRe: Win2k don't like my coding... Pin
Erik Funkenbusch20-Jul-01 20:42
Erik Funkenbusch20-Jul-01 20:42 
GeneralTFTP Pin
Nace Reader20-Jul-01 13:54
Nace Reader20-Jul-01 13:54 
QuestionHow to send a message to application Pin
20-Jul-01 13:45
suss20-Jul-01 13:45 

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.