Edit Box Update problem!

hi all
i want to send a message to another application to change its edit box contents.
i have the desired handle to the edit box and am sending WM_SETTEXT msg to write text into that edit box, it writes correctly.
The edit box is on a property sheet's page say Page A, when i go on the page B (after writing to the edit box in Page A and) then come back again to Page A the edit box gives the previous values and not the one i gave in the SendMessage(..., WM_SETTEXT, ... , ...) call.
how do i make my value in edit box permanent?
thnx
owais
[574 byte] By [siawos] at [2007-11-18 10:00:02]
# 1 Re: Edit Box Update problem!
Is this other application your own? Most likely the value placed in the edit box is stored in a variable which is not being updated with your new value.
souldog at 2007-11-11 2:36:24 >
# 2 Re: Edit Box Update problem!
hi souldog!
the application i am writing text to is not mine, i am sending it the message.
it must be having some variable behind the control...and must be calling UpdateData() in its dialog
how should i call this updateData from my application or what is the notification when updatedata() is called...i can send that notification after writing my text to its parent and the data is updated for me automatically...
thnx
siawos at 2007-11-11 2:37:29 >
# 3 Re: Edit Box Update problem!
I don't think there is a notification sent for DDX. You can not even be sure that the program is using DDX to set the variables.

I kind of think you are out of luck on this one. Maybe someone else knows
souldog at 2007-11-11 2:38:28 >
# 4 Re: Edit Box Update problem!
send update message ,maybe it is ok
xiangshifu99 at 2007-11-11 2:39:27 >
# 5 Re: Edit Box Update problem!
You may try setting the modified flag for the edit control.

EM_SETMODIFY.

Also try sending the EN_KILLFOCUS for the edit control

Note that the default action of OnKillActive for a property page
calls the DDX/DDV stuff. This gives you a hint that the application may not be using a member variable to store the value in the edit control or has overriden this function.
souldog at 2007-11-11 2:40:35 >
# 6 Re: Edit Box Update problem!
hi souldog!
the EN_KILLFOCUS did not work the problem remains the same it takes away the focus from the control but when i come back the old value remains there...
siawos at 2007-11-11 2:41:37 >
# 7 Re: Edit Box Update problem!
hi xyang!
:( this dint work either...........
thnx
siawos at 2007-11-11 2:42:30 >