> You means we can get a graphic from treeview control ?
Yes, the image of TreeView control can be:
- printed
- saved to a graphics file
- drawn of VFP main screen
Thic can be done through GDI and/or GDI+ API calls. The starting point is TreeView's Handle property, which is a window handle.
The ActiveX controls, like TreeView, ListView, Web Browser control and others, are windows. So their HDCs can be accessed through their window handles.
Visual FoxPro controls, like Label, TextBox, ListBox and others, are not windows. If VFP control needed to be printed/saved to file, the parent window's handle (usually this is a hosting form) must be used together with control's coordinates.