Unable to Draw the cursor on Secondary Monitor in Visual C++

  • Thread starter Thread starter Vin Y
  • Start date Start date
V

Vin Y

Guest
Hi All,

I'm trying to draw a cursor on the monitor using DrawIconEx(); I'm able to capture the screen Device Context using the GetDC(NULL); or CreateDC("DISPLAY",NULL,NULL,NULL); and I try to pass the DC to the DrawIconEx.

But the issue is, when I switch to secondary monitor connected to my machine, I'm unable to draw the cursor on the secondary machine. (It still draws on the primary monitor).

BitBlt() is the function I'm using to capture my screen.

Could you please add your thoughts on this ?

Thank you in advance.

Continue reading...
 
Back
Top