Click here to Skip to main content
15,847,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To stop some activity Pin
ovidiucucu23-Jun-06 5:40
ovidiucucu23-Jun-06 5:40 
GeneralRe: To stop some activity Pin
David Crow23-Jun-06 5:51
David Crow23-Jun-06 5:51 
GeneralRe: To stop some activity Pin
Jun Du23-Jun-06 7:07
Jun Du23-Jun-06 7:07 
AnswerRe: To stop some activity Pin
rajeevktripathi23-Jun-06 9:22
rajeevktripathi23-Jun-06 9:22 
Questionobject of resize ,move,rotate with handles in realtime mode [modified] Pin
nn813723-Jun-06 4:05
nn813723-Jun-06 4:05 
AnswerRe: object of resize ,move,rotate with handles in realtime mode Pin
Rage23-Jun-06 4:36
professionalRage23-Jun-06 4:36 
GeneralRe: object of resize ,move,rotate with handles in realtime mode Pin
likeeverybody23-Jun-06 22:05
likeeverybody23-Jun-06 22:05 
AnswerRe: time Pin
Rage23-Jun-06 3:06
professionalRage23-Jun-06 3:06 
I assume MFC.

Setup a timer in the OnInitDialog() updated each second (or more or less accurate, depending on how accurate the current time must be).

//Init timer for clock
SetTimer(100,1000,NULL);



In the timer handler, Update the editbox with the current time:

void CBuilderDlg::OnTimer(UINT nIDEvent)
{
	if(nIDEvent==100)
	{
		CTime t1;
		t1=CTime::GetCurrentTime();
		m_Editbox.SetWindowText(t1.Format("%H:%M:%S"));
	}
	
	else if (nIDEvent==1)
		
	{

		m_SplDlg.CloseIt();
		KillTimer(1);
	}
	
	CDialog::OnTimer(nIDEvent);
}


~RaGE();

I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus

GeneralRe: time Pin
toxcct23-Jun-06 5:15
toxcct23-Jun-06 5:15 
QuestionSerial number of the attached monitor(s) Pin
dt-jh23-Jun-06 2:50
dt-jh23-Jun-06 2:50 
QuestionRe: Serial number of the attached monitor(s) Pin
David Crow23-Jun-06 3:44
David Crow23-Jun-06 3:44 
AnswerRe: Serial number of the attached monitor(s) Pin
dt-jh23-Jun-06 3:56
dt-jh23-Jun-06 3:56 
GeneralRe: Serial number of the attached monitor(s) Pin
David Crow23-Jun-06 4:01
David Crow23-Jun-06 4:01 
GeneralRe: Serial number of the attached monitor(s) Pin
dt-jh23-Jun-06 4:12
dt-jh23-Jun-06 4:12 
QuestionRe: Serial number of the attached monitor(s) Pin
David Crow23-Jun-06 5:19
David Crow23-Jun-06 5:19 
AnswerRe: Serial number of the attached monitor(s) Pin
Viorel.23-Jun-06 3:49
Viorel.23-Jun-06 3:49 
GeneralRe: Serial number of the attached monitor(s) Pin
dt-jh23-Jun-06 4:04
dt-jh23-Jun-06 4:04 
QuestionInserting data from flatfiles into database Pin
vc++_fragrance23-Jun-06 2:14
vc++_fragrance23-Jun-06 2:14 
AnswerRe: Inserting data from flatfiles into database Pin
_AnsHUMAN_ 23-Jun-06 2:27
_AnsHUMAN_ 23-Jun-06 2:27 
AnswerRe: Inserting data from flatfiles into database [modified] Pin
basementman23-Jun-06 5:17
basementman23-Jun-06 5:17 
QuestionProblem in retrieving text using WM_GETTEXT Pin
Javagal Srinath23-Jun-06 1:29
Javagal Srinath23-Jun-06 1:29 
AnswerRe: Problem in retrieving text using WM_GETTEXT Pin
Stephen Hewitt23-Jun-06 1:53
Stephen Hewitt23-Jun-06 1:53 
GeneralRe: Problem in retrieving text using WM_GETTEXT Pin
Javagal Srinath23-Jun-06 3:23
Javagal Srinath23-Jun-06 3:23 
AnswerRe: Problem in retrieving text using WM_GETTEXT Pin
Rage23-Jun-06 3:08
professionalRage23-Jun-06 3:08 
GeneralRe: Problem in retrieving text using WM_GETTEXT Pin
Javagal Srinath23-Jun-06 3:31
Javagal Srinath23-Jun-06 3:31 

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.