I have a form in which I have opened a Word document via the picturebox control using the SetParent API
m_hwnd = SetParent(m_hwnd2, Picture1.hWnd)
I have the document formatted how I like it. However, when I click on the document, the form loses focus. I have trying the SendMessage Function
SendMessage m_hwnd2, WS_CHILD, 0, 0
But it does not work. I have also tried replacing the m_hwnd2 with m_hwnd and the form still loses focus.
Am I missing something here?