How can update edit control data of an executing
application from other application?

Answers were Sorted based on User's Feedback



How can update edit control data of an executing application from other application?..

Answer / anup

First, need to find the handle of the Control by using some API like EnumWindows and enumerrating all windows and checking for the text of the window by GetWindowTExt.
Once, handle of the target control has been identified, SendMessage can be used to send appropriate message to the control. like WM_SETTEXT can be sent to change text of window, etc...

Is This Answer Correct ?    7 Yes 0 No

How can update edit control data of an executing application from other application?..

Answer / bhaskaraiah

To get/set the data of edit control of another running
application you need to get the control ID of the edit
control.This can be obtained by using the "spy++" tool of
visula studio tools.Then use PostMessage to send WM_SETTEXT
meesage to it.

Is This Answer Correct ?    1 Yes 0 No

How can update edit control data of an executing application from other application?..

Answer / saurabh shakya

THERE IS A FUNCTION CWnd::UpdateData()
which update the control data ,the argument paas into it is bool type if it is true then it updates controls from the data members and if it is false then update from the data members to the dialog controls

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More MFC Interview Questions

I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)

2 Answers   Invensys,


List out the parameters of WinMain Function.

2 Answers   Mphasis,


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


What are the special requirements for dialog box resources used in a form view?

2 Answers  


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  


What function is used to disable a control at runtime?

7 Answers  


What is the base class for MFC

3 Answers   HCL,


How to update all the views whenver document got updated ?

1 Answers  


What are the types of button controls?

10 Answers  


how many types of messages are their

4 Answers   E Logic, TCS,


What is userdefine Messages in MFC?

1 Answers   HCL,


Hi can anyone explain about the synchronization objects types and where we are using in the code.

1 Answers  


Categories