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

C / C++ / MFC

 
AnswerRe: Image Processing Pin
John R. Shaw31-Aug-05 21:26
John R. Shaw31-Aug-05 21:26 
QuestionThe non-typing CEdit Pin
dy1331-Aug-05 3:24
dy1331-Aug-05 3:24 
AnswerRe: The non-typing CEdit Pin
toxcct31-Aug-05 3:39
toxcct31-Aug-05 3:39 
AnswerRe: The non-typing CEdit Pin
kakan31-Aug-05 3:51
professionalkakan31-Aug-05 3:51 
GeneralRe: The non-typing CEdit Pin
toxcct31-Aug-05 4:00
toxcct31-Aug-05 4:00 
GeneralRe: The non-typing CEdit Pin
kakan31-Aug-05 4:04
professionalkakan31-Aug-05 4:04 
GeneralRe: The non-typing CEdit Pin
toxcct31-Aug-05 4:06
toxcct31-Aug-05 4:06 
AnswerRe: The non-typing CEdit Pin
Hans Ruck31-Aug-05 4:19
Hans Ruck31-Aug-05 4:19 
dy13 wrote:
Why is this?

Because CEdit uses WM_PAINT - a lazy, low-priority message - to draw its text; it prefer to wait for all WM_SETTEXT handlers to finish their job. The static window will use WM_SETTEXT to both set and draw the text, that's why you get no delay when using this class of window.

The Sleep(100) call is irrelevant since it frozes the entire thread execution - including the message queue pumping engine.

dy13 wrote:
how can I get CEdit to achieve the same effect?

Force WM_PAINT after every WM_SETTEXT:
for(int i=0; i < str.GetLength(); i++)
{
  SetDlgItemText(MYEDIT, str.Left(i));
  GetDlgItem(MYEDIT)->UpdateWindow();
  Sleep(100);
}



 "tous les sifflets des trains, toutes les sirènes des bateaux
  m'ont chanté cent fois la chanson de l'Eldorado"

 rechi+
QuestionInserting a highlight to a string in an html file. Pin
babyspidy31-Aug-05 2:46
babyspidy31-Aug-05 2:46 
Question[Message Deleted] Pin
Rupali sarda31-Aug-05 2:45
Rupali sarda31-Aug-05 2:45 
AnswerRe: structure Pin
toxcct31-Aug-05 2:50
toxcct31-Aug-05 2:50 
Question[Message Deleted] Pin
Rupali sarda31-Aug-05 2:09
Rupali sarda31-Aug-05 2:09 
GeneralRe: structure Pin
ThatsAlok31-Aug-05 2:11
ThatsAlok31-Aug-05 2:11 
AnswerRe: structure Pin
toxcct31-Aug-05 2:11
toxcct31-Aug-05 2:11 
AnswerRe: structure Pin
Bob Stanneveld31-Aug-05 7:59
Bob Stanneveld31-Aug-05 7:59 
GeneralRe: structure Pin
Cedric Moonen31-Aug-05 2:25
Cedric Moonen31-Aug-05 2:25 
GeneralRe: structure Pin
Rupali sarda31-Aug-05 18:20
Rupali sarda31-Aug-05 18:20 
JokeRe: structure Pin
toxcct31-Aug-05 2:28
toxcct31-Aug-05 2:28 
GeneralRe: structure Pin
Bob Stanneveld1-Sep-05 0:11
Bob Stanneveld1-Sep-05 0:11 
JokeRe: structure Pin
ThatsAlok31-Aug-05 3:07
ThatsAlok31-Aug-05 3:07 
GeneralRe: structure Pin
Cedric Moonen31-Aug-05 3:09
Cedric Moonen31-Aug-05 3:09 
GeneralRe: structure Pin
ThatsAlok31-Aug-05 3:15
ThatsAlok31-Aug-05 3:15 
Questionhow can i enter the parameters from the interface and then used them in functio Pin
lallaba31-Aug-05 1:46
lallaba31-Aug-05 1:46 
QuestionRe: how can i enter the parameters from the interface and then used them in functio Pin
toxcct31-Aug-05 2:07
toxcct31-Aug-05 2:07 
AnswerRe: how can i enter the parameters from the interface and then used them in functio Pin
ThatsAlok31-Aug-05 2:09
ThatsAlok31-Aug-05 2:09 

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.