Click here to Skip to main content
15,921,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COleDateTime::Format behavior Pin
Atlantys23-Oct-03 6:52
Atlantys23-Oct-03 6:52 
QuestionHow can I disable the Dial-Up dialog box? Pin
Radar9723-Oct-03 2:47
Radar9723-Oct-03 2:47 
QuestionSetTimer ? Pin
Brian van der Beek23-Oct-03 2:06
Brian van der Beek23-Oct-03 2:06 
AnswerRe: SetTimer ? Pin
Maximilien23-Oct-03 2:34
Maximilien23-Oct-03 2:34 
AnswerRe: SetTimer ? Pin
jhwurmbach23-Oct-03 4:10
jhwurmbach23-Oct-03 4:10 
GeneralRe: SetTimer ? Pin
Brian van der Beek23-Oct-03 4:32
Brian van der Beek23-Oct-03 4:32 
GeneralRe: SetTimer ? Pin
jhwurmbach23-Oct-03 4:40
jhwurmbach23-Oct-03 4:40 
AnswerRe: SetTimer ? Pin
John R. Shaw23-Oct-03 4:33
John R. Shaw23-Oct-03 4:33 
In Win32 you should use a worker thread to handle lengthy processes in the background so that normal message passing can continue.

If you do not want to use a worker thread then you will need to to use one of the old tricks used before mult-threading.

1) Use some thing like this
if( PeekMessage(...) ) // in lengthy process loop
{
DispatchMessage(...)
}
to allow other messages to be processed.

OR

2) Use a user defined message that you keeping posting to your self until the job is fininish. There by allowing other messages to flow. This works as follows:

PostMessage(MY_MESSAGE); // Get processing started
...
Proc(MY_MESSAGE)
{
swicth(message)
{
case MY_MESSAGE:
// do part of processing
if( !done )
PostMessage(MY_MESSAGE);
break.
}


Both of the above method will increase the amount of time it take to do the lengthy process, but they both work to solve your problem.

I hope this give you some ideas as to how to solve your problem.

INTP
QuestionSetTimer ? Pin
Brian van der Beek23-Oct-03 2:05
Brian van der Beek23-Oct-03 2:05 
AnswerRe: SetTimer ? Pin
Bryster23-Oct-03 4:07
Bryster23-Oct-03 4:07 
GeneralNeed a satisfying logger. Pin
d00_ape23-Oct-03 2:00
sussd00_ape23-Oct-03 2:00 
GeneralRe: Need a satisfying logger. Pin
Mike O'Neill23-Oct-03 15:36
Mike O'Neill23-Oct-03 15:36 
QuestionHow to append a text in a edit box Pin
Deepak Samuel23-Oct-03 0:09
Deepak Samuel23-Oct-03 0:09 
AnswerRe: How to append a text in a edit box Pin
abc87623-Oct-03 0:38
abc87623-Oct-03 0:38 
AnswerRe: How to append a text in a edit box Pin
David Crow23-Oct-03 3:38
David Crow23-Oct-03 3:38 
GeneralTaskbar Button in Dialog Based Application Pin
Thanasis Pantelopoulos22-Oct-03 23:50
Thanasis Pantelopoulos22-Oct-03 23:50 
GeneralRe: Taskbar Button in Dialog Based Application Pin
Thanasis Pantelopoulos23-Oct-03 2:46
Thanasis Pantelopoulos23-Oct-03 2:46 
GeneralRe: Taskbar Button in Dialog Based Application Pin
Maximilien23-Oct-03 4:16
Maximilien23-Oct-03 4:16 
GeneralRe: Taskbar Button in Dialog Based Application Pin
Atlantys23-Oct-03 12:06
Atlantys23-Oct-03 12:06 
GeneralConsole Pin
hph22-Oct-03 22:58
hph22-Oct-03 22:58 
GeneralRe: Console Pin
valikac23-Oct-03 5:56
valikac23-Oct-03 5:56 
QuestionOpenGL animation, which is better: using PFD_DOUBLEBUFFER or Drawing to DIB? Pin
lxy22-Oct-03 21:47
lxy22-Oct-03 21:47 
AnswerAnyone know? Pin
lxy23-Oct-03 16:23
lxy23-Oct-03 16:23 
Questionhow to make a dialog under the main window? Pin
Jefferson Liu22-Oct-03 21:30
Jefferson Liu22-Oct-03 21:30 
AnswerRe: how to make a dialog under the main window? Pin
Ravi Bhavnani22-Oct-03 21:41
professionalRavi Bhavnani22-Oct-03 21:41 

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.