Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UpDateData()

0 views
Skip to first unread message

Dave

unread,
Nov 15, 2001, 3:10:31 AM11/15/01
to
Hello everybody,

I am a dutch (weak excuse for my bad englisch) student who is trying to
learn visual c++.

For practice I'm writing a program where the user can put some text in a
CEdit field.
While the user is doing this the program is changing a status field (with
member variable name "m_status") with some messages.

If I use UpDateData(TRUE), then fill m_status with the new message, en then
call UpDateData(FALSE)
the cursor in the text field jumps back to the beginning of the text field.

Is it possible to only update the status field without updating the entire
dialog.

Thanks in advantage

Dave

Ruben Jönsson

unread,
Nov 15, 2001, 3:31:54 AM11/15/01
to
Use m_status.SetWindowText(strText);

You can also create a control variable for the CEdit control and use
m_edit.GetWindowText(str); to get the text from the CEdit control without calling
UpdateData().

Ruben

mao

unread,
Nov 15, 2001, 8:19:19 AM11/15/01
to
You can use EM_SETSEL to move cursor after your call to UpdateData(FALSE).

"Dave" <da...@dhogervorst.demon.nl> wrote in message
news:tv6u11q...@corp.supernews.com...

0 new messages