
Instead of SendMessage API i will use the SendMessageTimeoutĪPI to solve the system hang or You can use PostMessage API instead.ĬwinApp -> CDocument -> CFrameWnd -> CView If Application Hangs While Sendmessage Is Waiting For The Result, How You Handle It?

How We Call A Dialog In Another Dialog?Īnd write a code in fist dialog box function.Īnd define the new header file in fisrt dialog bob code. like WM_SETTEXT can be sent to change text of window, etc… Once, handle of the target control has been identified, SendMessage can be used to send appropriate message to the control.

How Can Update Edit Control Data Of An Executing Application From Other Application?įirst, 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.
