I am trying to get a emf image of a VI front panel in Microsoft Windows. I don't want to use jpeg, BMP, or png. I am using CreateEnhMetaFileA and SendMessage with WM_PRINT. I am able to get the image of the parent window with no problem. Unfortunatly, I found out the hard way that Labview Front Panel (CLIENT) and controls and indicators (Children windows) are not acually windows. So when I capture the Window Image, I only get the parent window. The rest is blank. How does Labview create controls in the Windows OS environment? I know LV is cross platform, but how do they get around this?
Does anyone have any other ideas for how to get the image? I know I can get a EMF of a graph, but I want an EMF of the entire front panel.
I have attached an example VI that works for getting screen shot of parent window. (Please excuse the messy vi, it is just for test)
Thanks