Posted by Greg on June 21, 2004 at 08:58:20:
In Reply to: Re: Print screen function posted by Stephen Auerbach on May 10, 2004 at 07:04:39:
We are hiding the cosw frame and only showing a modal dialog with print screen on a visual studio menu, the print screen works but it prints the upper left portion of the screen including the windows desktop and icons. If our dialog is there it will print that as well. The print screen code doesn't know what we are trying to print:
GOSUB COS.GetFrameWnd ! cosCwnd$ = Frame window
cosMessage = WM.COMMAND ! Send a command
coswParam = cosPRINT.SESSION ! Command ID
coswParam = coswParam+(BN.CLICKED*65536) ! Click
coslParam = 0
GOSUB COS.PostMessage
If I could figure out a way to send the active window to the clipboard and then print the clipboard maybe?