to seasky:<br>我用下列程序在win98 directx 6下成功的把 directx5 sdk的例子程序<br>/dx5sdk/sdk/bin/donut.exe and viewer.exe的图象抓下来了,<br>环境 <br>我发现在控制面板中的DirectX设置的directDraw中option中有enable printscreen key 选项点不点没影响???。donut 和 viewer.exe 不是全屏运行<br>的。全屏运行的例子我没试。另外,我抓的是整个桌面,单个窗口没试。<br><br>procedure TForm1.ToolButton1Click(Sender: TObject);<br>begin<br> winhandle:=getdesktopwindow;<br> windc:=getdc(winhandle);<br> stretchBlt(Image1.Canvas.Handle, 0,0,Image1.Width,Image1.Height,<br> winDC, 0, 0,640,480, SRCCOPY);<br> releasedc(winhandle,windc);<br>end;