I have two Apps. App1 is visible to the user and App2 is not visible. App1 launches App2 and sends it the HWND of a Picturebox using the Shell function.....
Shell App2 Picture1.hwnd, vbHide
App2 also has a Picture1 which contains an image that is created and changes during run-time. I need to send this picture to App1 every time it changes. Now I have a function that can send a picture from one App to another that works as long as both Apps are visible...
BitBlt GetDC(App1_Picture1_Hwnd), 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, Picture1.hDC, 0, 0, SRCCOPY
The above does not work with my project because App2 is not visible.
How can I send a picture to another App if the source picture is not visible?
Shell App2 Picture1.hwnd, vbHide
App2 also has a Picture1 which contains an image that is created and changes during run-time. I need to send this picture to App1 every time it changes. Now I have a function that can send a picture from one App to another that works as long as both Apps are visible...
BitBlt GetDC(App1_Picture1_Hwnd), 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, Picture1.hDC, 0, 0, SRCCOPY
The above does not work with my project because App2 is not visible.
How can I send a picture to another App if the source picture is not visible?