Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: nafxcw.lib - linker error Pin
Hamid_RT4-Oct-06 19:18
Hamid_RT4-Oct-06 19:18 
QuestionChanging color of text in edit control Pin
LCI4-Oct-06 8:29
LCI4-Oct-06 8:29 
AnswerRe: Changing color of text in edit control Pin
Nish Nishant4-Oct-06 8:55
sitebuilderNish Nishant4-Oct-06 8:55 
AnswerRe: Changing color of text in edit control Pin
Mark Salsbery4-Oct-06 8:57
Mark Salsbery4-Oct-06 8:57 
AnswerRe: Changing color of text in edit control Pin
Hamid_RT4-Oct-06 9:10
Hamid_RT4-Oct-06 9:10 
QuestionWeird MFC problem Pin
Johpoke4-Oct-06 7:55
Johpoke4-Oct-06 7:55 
AnswerRe: Weird MFC problem Pin
ThatsAlok4-Oct-06 7:59
ThatsAlok4-Oct-06 7:59 
AnswerRe: Weird MFC problem Pin
Mark Salsbery4-Oct-06 8:35
Mark Salsbery4-Oct-06 8:35 
Johannes,

Calling Sleep() in your UI thread prohibits the Windows messages
required (WM_PAINT) to update the control from being processed.

Try this:


on click:

set box "3"
box.Invalidate()
box.UpdateWindow()
sleep 1000

set box "2"
box.Invalidate()
box.UpdateWindow()
sleep 1000

set box "2"
box.Invalidate()
box.UpdateWindow()
sleep 1000


Keep in mind, calling Sleep() like this effectively freezes your
user interface for 3 seconds...not always the desired effect Smile | :)

Hope this helps,
Mark

GeneralRe: Weird MFC problem Pin
Johpoke4-Oct-06 8:42
Johpoke4-Oct-06 8:42 
GeneralRe: Weird MFC problem Pin
Mark Salsbery4-Oct-06 9:03
Mark Salsbery4-Oct-06 9:03 
GeneralRe: Weird MFC problem Pin
Johpoke4-Oct-06 9:05
Johpoke4-Oct-06 9:05 
GeneralRe: Weird MFC problem Pin
Mark Salsbery4-Oct-06 9:14
Mark Salsbery4-Oct-06 9:14 
GeneralRe: Weird MFC problem Pin
Johpoke4-Oct-06 9:16
Johpoke4-Oct-06 9:16 
AnswerRe: Weird MFC problem Pin
Chris Meech4-Oct-06 8:46
Chris Meech4-Oct-06 8:46 
AnswerRe: Weird MFC problem Pin
David Crow4-Oct-06 9:10
David Crow4-Oct-06 9:10 
AnswerRe: Weird MFC problem Pin
Johpoke4-Oct-06 9:18
Johpoke4-Oct-06 9:18 
QuestionConverting to VC8 Pin
Waldermort4-Oct-06 7:41
Waldermort4-Oct-06 7:41 
AnswerRe: Converting to VC8 Pin
Chris Meech4-Oct-06 7:48
Chris Meech4-Oct-06 7:48 
GeneralRe: Converting to VC8 Pin
Waldermort4-Oct-06 8:01
Waldermort4-Oct-06 8:01 
GeneralRe: Converting to VC8 Pin
Chris Meech4-Oct-06 8:33
Chris Meech4-Oct-06 8:33 
GeneralRe: Converting to VC8 Pin
Waldermort4-Oct-06 8:11
Waldermort4-Oct-06 8:11 
AnswerRe: Converting to VC8 Pin
Nish Nishant4-Oct-06 8:07
sitebuilderNish Nishant4-Oct-06 8:07 
AnswerRe: Converting to VC8 Pin
Nish Nishant4-Oct-06 8:10
sitebuilderNish Nishant4-Oct-06 8:10 
GeneralRe: Converting to VC8 Pin
Waldermort4-Oct-06 8:14
Waldermort4-Oct-06 8:14 
AnswerRe: Converting to VC8 Pin
David Crow4-Oct-06 9:08
David Crow4-Oct-06 9:08 

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.