Hi,
I need a way to update an Edit control control in MFC from a timer
callback function.
How can that be done as we cannot reference dialog box controls from
callbacks?
Even the following code gives me problems:
VOID CALLBACK TimerProc ( HWND hParent, UINT uMsg, UINT uEventID,
DWORD dwTimer )
{
//Add the text
CEdit *ptrtxtActivity;
ptrtxtActivity = reinterpret_cast<CEdit
*>(GetDlgItem(hParent,txtboxActivity));
ptrtxtActivity->SetWindowText(text);
}
Please let me know,
Thank you,
IdleBrain
David Wilkinson - 22 Oct 2007 17:16 GMT
> Hi,
> I need a way to update an Edit control control in MFC from a timer
[quoted text clipped - 13 lines]
> ptrtxtActivity->SetWindowText(text);
> }
Idle:
Please don't multipost. This is an MFC question, and you have answers in
the MFC group.
This group is for managed C++.

Signature
David Wilkinson
Visual C++ MVP