Post Reply
Steini 2002-03-01 05:46
Hi, I messed around a bit with the multi monitor functions described on this site and in the windows sdk. I could get a small application up and running that draws shapes on the second (deactivated) monitor. But I can't seem to get BitBlt or similar to work. I wondered how you did the monitoring, and tried it myself - obviously it's not BitBlt. What is it, then?
|
Christian Studer 2002-03-01 06:04
BitBlt works fine, but not with all types of source device contexts. Here's a quote from the StretchBlt documentation:
"When used in a multiple monitor system, both hdcSrc and hdcDest must refer to the same device or the function will fail. To transfer data between DCs for different devices, convert the memory bitmap to a DIB by calling GetDIBits. To display the DIB to the second device, call SetDIBits or StretchDIBits."
You should be able to use memory DCs and the desktop DC as source device contexts.
Christian Studer - www.realtimesoft.com
|
Steini 2002-03-02 00:45
Thanks, I'll give that a try.
|
Post Reply
|