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

What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);

2 Answers  


Tell me the different controls in MFC ?

5 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.

3 Answers   ABC, HCL, Infosys,


What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?

5 Answers   Atos Origin,


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


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

3 Answers   HP,


Given two processes, how can they share memory?

2 Answers   Microsoft,


what is the use of Mutex and critical section

2 Answers  


what if we provide two message handler for same message ?

1 Answers  


Why not virtual functions to handle messages?

5 Answers  


WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE

4 Answers   Google, Microsoft, TCS,


Categories