Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Device context of monitor
#1
I'm trying to get the device context of a non-primary monitor.
MSDN says to use EnumDisplayDevices to get the device context, but I can't figure out how to use it.
Could anyone code that for me?
#2
I am not familiar with monitor display contexts, cannot help. Look in "HMONITOR and the Device Context" topic in MSDN.

This is how to call EnumDisplayMonitors. Not tested.
Macro Macro1267
Code:
Copy      Help
int dc=GetDC(0)
EnumDisplayMonitors dc 0 &EDM_Proc 0
ReleaseDC(0 dc)
Function EDM_Proc
Code:
Copy      Help
;/
function# hMonitor hdcMonitor RECT*lprcMonitor dwData

out hdcMonitor

ret 1


Forum Jump:


Users browsing this thread: 1 Guest(s)