Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cancel dialog Pin
Hamid_RT8-May-07 8:52
Hamid_RT8-May-07 8:52 
AnswerRe: cancel dialog Pin
KellyR8-May-07 10:56
KellyR8-May-07 10:56 
QuestionCDialog with CToolbar Pin
Andy H8-May-07 6:09
Andy H8-May-07 6:09 
AnswerRe: CDialog with CToolbar Pin
Hans Dietrich8-May-07 6:54
mentorHans Dietrich8-May-07 6:54 
GeneralRe: CDialog with CToolbar Pin
Andy H8-May-07 7:37
Andy H8-May-07 7:37 
QuestionRe: CDialog with CToolbar Pin
Mark Salsbery8-May-07 8:32
Mark Salsbery8-May-07 8:32 
AnswerRe: CDialog with CToolbar Pin
KellyR8-May-07 11:01
KellyR8-May-07 11:01 
QuestionTrouble refresh a UI window Dialog / MDI Pin
ScotDolan8-May-07 5:33
ScotDolan8-May-07 5:33 
I have a MDI application which has a muliple dialog windows. One of these dialog windows needs to be update on regular basis. I am assume the best way to accomplish this is to add/create a OnTimer function and in it add code to refresh the window. What is the syntex for accomplish this.

<br />
void Lenze8200_Dlg::OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/)<br />
{<br />
	// TODO: Add your specialized code here and/or call the base class<br />
	Red_ON    = AfxGetApp()->LoadIcon(IDI_RED_ON_LED);	<br />
	Red_OFF   = AfxGetApp()->LoadIcon(IDI_RED_OFF_LED);	<br />
	Green_ON  = AfxGetApp()->LoadIcon(IDI_GREEN_ON_LED);	<br />
	Green_OFF = AfxGetApp()->LoadIcon(IDI_GREEN_OFF_LED);	<br />
	Led_OFF = AfxGetApp()->LoadIcon(IDI_OFF_LED);			<br />
<br />
	if( G2MainApp.pitch_is_connected() == false ) <br />
	{<br />
		m_iconPitchConnected.SetIcon( Red_ON );<br />
        }else{<br />
               m_iconPitchConnected.SetIcon( Green_ON );<br />
        }<br />
}<br />
<br />
<br />
<br />
<br />
void Lenze8200_Dlg::OnTimer(UINT nIDEvent)<br />
{<br />
	// TODO: Add your message handler code here and/or call default<br />
<br />
	CFormView::OnTimer(nIDEvent);<br />
}<br />
<br />


Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures

AnswerRe: Trouble refresh a UI window Dialog / MDI Pin
Hans Dietrich8-May-07 6:15
mentorHans Dietrich8-May-07 6:15 
GeneralRe: Trouble refresh a UI window Dialog / MDI Pin
ScotDolan8-May-07 6:59
ScotDolan8-May-07 6:59 
GeneralRe: Trouble refresh a UI window Dialog / MDI Pin
Hans Dietrich8-May-07 7:10
mentorHans Dietrich8-May-07 7:10 
QuestionDepends error Pin
tom groezer8-May-07 5:29
tom groezer8-May-07 5:29 
AnswerRe: Depends error Pin
Peter Weyzen8-May-07 19:56
Peter Weyzen8-May-07 19:56 
QuestionMIDL_user_free Pin
lucy8-May-07 5:13
lucy8-May-07 5:13 
AnswerRe: MIDL_user_free Pin
Hans Dietrich8-May-07 7:31
mentorHans Dietrich8-May-07 7:31 
GeneralRe: MIDL_user_free Pin
lucy8-May-07 7:33
lucy8-May-07 7:33 
QuestionVirtualAlloc/GlobalAlloc Pin
tom groezer8-May-07 5:07
tom groezer8-May-07 5:07 
AnswerRe: VirtualAlloc/GlobalAlloc Pin
Hans Dietrich8-May-07 5:29
mentorHans Dietrich8-May-07 5:29 
AnswerRe: VirtualAlloc/GlobalAlloc Pin
Hamid_RT9-May-07 6:49
Hamid_RT9-May-07 6:49 
QuestionAutomate Excel in VC++ Pin
Haiying8-May-07 4:11
Haiying8-May-07 4:11 
QuestionGraph related NP-Complete problem Pin
Kamrul Ahsan8-May-07 3:05
Kamrul Ahsan8-May-07 3:05 
AnswerRe: Graph related NP-Complete problem Pin
Hans Dietrich8-May-07 3:20
mentorHans Dietrich8-May-07 3:20 
QuestionThread deadlock Pin
tom groezer8-May-07 2:48
tom groezer8-May-07 2:48 
AnswerRe: Thread deadlock Pin
Roger Stoltz8-May-07 3:19
Roger Stoltz8-May-07 3:19 
AnswerRe: Thread deadlock Pin
Randor 9-May-07 4:14
professional Randor 9-May-07 4:14 

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.