Click here to Skip to main content
15,908,675 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Graphs using MFC Pin
Jagadeesh VN6-Feb-06 19:53
Jagadeesh VN6-Feb-06 19:53 
QuestionDrawing Graph in MFC Pin
Anu_Bala6-Feb-06 18:09
Anu_Bala6-Feb-06 18:09 
AnswerRe: Drawing Graph in MFC Pin
ThatsAlok6-Feb-06 19:53
ThatsAlok6-Feb-06 19:53 
QuestionApplication blocked when pressing on control box Pin
Kemi10016-Feb-06 16:58
Kemi10016-Feb-06 16:58 
AnswerRe: Application blocked when pressing on control box Pin
Stephen Hewitt6-Feb-06 18:20
Stephen Hewitt6-Feb-06 18:20 
GeneralRe: Application blocked when pressing on control box Pin
Kemi10016-Feb-06 18:48
Kemi10016-Feb-06 18:48 
GeneralRe: Application blocked when pressing on control box Pin
Stephen Hewitt6-Feb-06 19:09
Stephen Hewitt6-Feb-06 19:09 
GeneralRe: Application blocked when pressing on control box Pin
Kemi10016-Feb-06 19:34
Kemi10016-Feb-06 19:34 
I used SetTimer() API too.
Well, wouldit be easier if I post some code here?

Main dialog:

BOOL CTestDlg::OnInitDialog()<br />
{<br />
	CDialog::OnInitDialog();<br />
	SetIcon(m_hIcon, TRUE);			// Set big icon<br />
	SetIcon(m_hIcon, FALSE);		// Set small icon<br />
<br />
	// TODO: Add extra initialization here	<br />
        // Set timer<br />
	m_TimerId = SetTimer(1, 300, NULL);<br />
<br />
        // Create and show Monitor dialog<br />
	if (!::IsWindow(m_monitorDlg.GetSafeHwnd()))<br />
		m_monitorDlg.Create(IDD_DIALOG_MONITOR, this);	<br />
	m_monitorDlg.ShowWindow(SW_SHOW);<br />
<br />
	return TRUE;  // return TRUE  unless you set the focus to a control<br />
}<br />
void CTestDlg::OnTimer(UINT nIDEvent) <br />
{<br />
	// TODO: Add your message handler code here and/or call default<br />
	if (nIDEvent == 1)<br />
		::PostMessage(m_monitorDlg.GetSafeHwnd(), WM_USER+1, 0, 0);<br />
	CDialog::OnTimer(nIDEvent);<br />
}


Monitor Dialog:
LRESULT CMonitorDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) <br />
{<br />
	// TODO: Add your specialized code here and/or call the base class<br />
	if (message == WM_USER+1)<br />
	{<br />
		m_list.InsertItem(0, "New message from Main dialog!");<br />
	}	<br />
	return CDialog::WindowProc(message, wParam, lParam);<br />
}


In my opinion, it's all clear and simple. Any idea pls?!

Have a good time!
KEMI
GeneralRe: Application blocked when pressing on control box Pin
khan++6-Feb-06 19:31
khan++6-Feb-06 19:31 
GeneralRe: Application blocked when pressing on control box Pin
Stephen Hewitt6-Feb-06 19:38
Stephen Hewitt6-Feb-06 19:38 
GeneralRe: Application blocked when pressing on control box Pin
khan++6-Feb-06 19:51
khan++6-Feb-06 19:51 
GeneralRe: Application blocked when pressing on control box Pin
Stephen Hewitt6-Feb-06 20:00
Stephen Hewitt6-Feb-06 20:00 
GeneralRe: Application blocked when pressing on control box Pin
Kemi10016-Feb-06 19:53
Kemi10016-Feb-06 19:53 
GeneralRe: Application blocked when pressing on control box Pin
khan++6-Feb-06 20:12
khan++6-Feb-06 20:12 
GeneralRe: Application blocked when pressing on control box Pin
khan++6-Feb-06 20:27
khan++6-Feb-06 20:27 
GeneralRe: Application blocked when pressing on control box Pin
Kemi10016-Feb-06 20:53
Kemi10016-Feb-06 20:53 
GeneralRe: Application blocked when pressing on control box Pin
khan++6-Feb-06 21:05
khan++6-Feb-06 21:05 
GeneralRe: Application blocked when pressing on control box Pin
Kemi10017-Feb-06 21:42
Kemi10017-Feb-06 21:42 
AnswerRe: Application blocked when pressing on control box Pin
Cool Ju6-Feb-06 19:52
Cool Ju6-Feb-06 19:52 
GeneralRe: Application blocked when pressing on control box Pin
Kemi10016-Feb-06 20:07
Kemi10016-Feb-06 20:07 
GeneralRe: Application blocked when pressing on control box Pin
Kemi10016-Feb-06 20:10
Kemi10016-Feb-06 20:10 
QuestionLNK4017 warning in vc.net 2003 Pin
arunperi6-Feb-06 16:56
arunperi6-Feb-06 16:56 
AnswerRe: LNK4017 warning in vc.net 2003 Pin
Owner drawn6-Feb-06 16:59
Owner drawn6-Feb-06 16:59 
Questionchecking network connection status Pin
Tony Kurishunkal6-Feb-06 16:45
Tony Kurishunkal6-Feb-06 16:45 
QuestionI Call CreateProcess() ,it failed,the Errorcode is 299,why? Pin
szcococut6-Feb-06 16:38
szcococut6-Feb-06 16:38 

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.