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

C / C++ / MFC

 
AnswerRe: Genetic art Pin
Monty29-Mar-06 0:48
Monty29-Mar-06 0:48 
QuestionHow to maintain the button in pressed state Pin
chetan2101839-Mar-06 0:39
chetan2101839-Mar-06 0:39 
AnswerRe: How to maintain the button in pressed state Pin
Nibu babu thomas9-Mar-06 0:42
Nibu babu thomas9-Mar-06 0:42 
AnswerRe: How to maintain the button in pressed state Pin
Stephen Hewitt9-Mar-06 0:43
Stephen Hewitt9-Mar-06 0:43 
GeneralRe: How to maintain the button in pressed state Pin
Monty29-Mar-06 0:47
Monty29-Mar-06 0:47 
GeneralRe: How to maintain the button in pressed state Pin
Stephen Hewitt9-Mar-06 0:48
Stephen Hewitt9-Mar-06 0:48 
GeneralRe: How to maintain the button in pressed state Pin
Monty29-Mar-06 0:50
Monty29-Mar-06 0:50 
AnswerRe: How to maintain the button in pressed state Pin
Monty29-Mar-06 0:46
Monty29-Mar-06 0:46 
I think you want to display the current time in a EditBox

Use SetTimer to Set a Timer preferable in OnInitDialog

SetTimer(2500,1000,NULL);

this is fire WM_TIMER every second

Use ClassWizard to handle WM_TIMER message
.....::OnTimer(UINT nIDEvent)<br />
{<br />
     //Calculate the current time<br />
     //Use SetWindowText instead of UpdateData for Performance reasons<br />
<br />
     CDialog::OnTimer(nIdEvent);<br />
}


This is probably not the best way (cause of the delays) but will work

Hope it helps



C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
GeneralRe: How to maintain the button in pressed state Pin
chetan2101839-Mar-06 1:33
chetan2101839-Mar-06 1:33 
QuestionWhat is a simulator Pin
snprani@yahoo.com9-Mar-06 0:24
snprani@yahoo.com9-Mar-06 0:24 
AnswerRe: What is a simulator Pin
toxcct9-Mar-06 0:29
toxcct9-Mar-06 0:29 
AnswerRe: What is a simulator Pin
Eytukan9-Mar-06 0:33
Eytukan9-Mar-06 0:33 
GeneralRe: What is a simulator Pin
snprani@yahoo.com9-Mar-06 0:53
snprani@yahoo.com9-Mar-06 0:53 
AnswerRe: What is a simulator Pin
Divyang Mithaiwala9-Mar-06 4:23
Divyang Mithaiwala9-Mar-06 4:23 
QuestionQuestion label in caption bar? Pin
Frank Isensee9-Mar-06 0:08
Frank Isensee9-Mar-06 0:08 
AnswerRe: Question label in caption bar? Pin
Nibu babu thomas9-Mar-06 0:19
Nibu babu thomas9-Mar-06 0:19 
AnswerRe: Question label in caption bar? Pin
Stephen Hewitt9-Mar-06 0:21
Stephen Hewitt9-Mar-06 0:21 
GeneralRe: Question label in caption bar? Pin
Frank Isensee9-Mar-06 0:34
Frank Isensee9-Mar-06 0:34 
GeneralRe: Question label in caption bar? Pin
Stephen Hewitt9-Mar-06 0:35
Stephen Hewitt9-Mar-06 0:35 
GeneralRe: Question label in caption bar? Pin
Nibu babu thomas9-Mar-06 0:40
Nibu babu thomas9-Mar-06 0:40 
GeneralRe: Question label in caption bar? Pin
Frank Isensee9-Mar-06 0:54
Frank Isensee9-Mar-06 0:54 
QuestionHow to play old Fast Tracker 2 XM files? Pin
bouli8-Mar-06 23:59
bouli8-Mar-06 23:59 
QuestionHow to use accelerator in Dialog application Pin
kflrei8-Mar-06 23:55
kflrei8-Mar-06 23:55 
AnswerRe: How to use accelerator in Dialog application Pin
Nibu babu thomas9-Mar-06 0:04
Nibu babu thomas9-Mar-06 0:04 
Questionworking with string-newbie Pin
antonaras_marcou8-Mar-06 23:35
antonaras_marcou8-Mar-06 23:35 

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.