Click here to Skip to main content
15,903,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to display CStatic Pin
gomez_a19-Sep-06 22:33
gomez_a19-Sep-06 22:33 
AnswerRe: How to display CStatic Pin
Rinu_Raj19-Sep-06 22:39
Rinu_Raj19-Sep-06 22:39 
GeneralRe: How to display CStatic Pin
gomez_a19-Sep-06 23:58
gomez_a19-Sep-06 23:58 
AnswerRe: How to display CStatic Pin
Rinu_Raj20-Sep-06 0:03
Rinu_Raj20-Sep-06 0:03 
GeneralRe: How to display CStatic Pin
gomez_a20-Sep-06 1:19
gomez_a20-Sep-06 1:19 
GeneralRe: How to display CStatic Pin
Rinu_Raj20-Sep-06 1:49
Rinu_Raj20-Sep-06 1:49 
GeneralRe: How to display CStatic Pin
gomez_a20-Sep-06 2:34
gomez_a20-Sep-06 2:34 
GeneralRe: How to display CStatic Pin
David Crow20-Sep-06 2:53
David Crow20-Sep-06 2:53 
Your code is doing exactly what it is supposed to do. Paint-related messages are low priority so they do not get handled if other, high-priority messages are in the queue. This is why you do not see the lblRecno control being updated until the end. Lose the timer stuff and try:

void MOkno::OnBnClickedButtonStart()
{
    for(int iLicznik = 1; iLicznik <= 1000; iLicznik++)
    {
        CString newTxt;
        newTxt.Format("%d", iLicznik);
        lblRecno.SetWindowText(newTxt);
    }
}
I just tried this (using 10000) and it worked fine.


"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

"Judge not by the eye but by the heart." - Native American Proverb


QuestionRe: How to display CStatic Pin
David Crow20-Sep-06 2:56
David Crow20-Sep-06 2:56 
QuestionSQL Server [modified] Pin
Bravoone_200619-Sep-06 22:31
Bravoone_200619-Sep-06 22:31 
QuestionRe: SQL Server Pin
David Crow20-Sep-06 3:43
David Crow20-Sep-06 3:43 
Questionproblem with pointer Pin
zizzzz19-Sep-06 22:15
zizzzz19-Sep-06 22:15 
QuestionRe: problem with pointer Pin
prasad_som19-Sep-06 22:34
prasad_som19-Sep-06 22:34 
AnswerRe: problem with pointer Pin
zizzzz19-Sep-06 22:43
zizzzz19-Sep-06 22:43 
GeneralRe: problem with pointer Pin
Cedric Moonen19-Sep-06 22:54
Cedric Moonen19-Sep-06 22:54 
QuestionMFC and MySQL problem Pin
DDeliyiannis19-Sep-06 22:15
DDeliyiannis19-Sep-06 22:15 
QuestionVC++ Setting Background as BMP Pin
arti mujumdar19-Sep-06 21:27
arti mujumdar19-Sep-06 21:27 
AnswerRe: VC++ Setting Background as BMP Pin
Naveen19-Sep-06 21:43
Naveen19-Sep-06 21:43 
AnswerRe: VC++ Setting Background as BMP Pin
_AnsHUMAN_ 19-Sep-06 21:53
_AnsHUMAN_ 19-Sep-06 21:53 
AnswerRe: VC++ Setting Background as BMP Pin
Anilkumar K V19-Sep-06 22:37
Anilkumar K V19-Sep-06 22:37 
AnswerRe: VC++ Setting Background as BMP Pin
Nibu babu thomas19-Sep-06 22:53
Nibu babu thomas19-Sep-06 22:53 
AnswerRe: VC++ Setting Background as BMP Pin
Hamid_RT19-Sep-06 23:17
Hamid_RT19-Sep-06 23:17 
QuestionQuestion Pin
messages19-Sep-06 21:11
messages19-Sep-06 21:11 
AnswerRe: Question Pin
Christian Graus19-Sep-06 21:21
protectorChristian Graus19-Sep-06 21:21 
GeneralRe: Question Pin
messages19-Sep-06 21:34
messages19-Sep-06 21:34 

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.