Question : Ole in-place at resize loosing focus

I have an application that can edit ole objects like wordpad and i have a problem.
When I edit an ole object and resize it, the ole object is loosing the focus. But if I do the same thing in wordpad the focus is not lost.

How can I regive the focus to the oleobject.

I tried with the method ::SetFocus but it's not working

Answer : Ole in-place at resize loosing focus

It seems it was not a problem of focus. Even when the focus is set explicitly on the active object's window and activated again, the input cursor is not available.
To force the ole object to set the cursor again, the frame window can be moved/resized, then the ole object repeats the procedure of setting its controls and the edit mode.

So I called a function to notify the ole object that its toolbars must be adjusted again. And it worked.
Random Solutions  
 
programming4us programming4us