You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting a handle and device context for the first monitor is relatively easy:
let h_wnd_screen = GetDesktopWindow();let h_dc_screen = GetDC(h_wnd_screen);// do stuffReleaseDC(h_wnd_screen, h_dc_screen);
Getting a handle and device context for the second monitor is worse than death:
structmonitor_enum_proc_data{
...
}fnmonitor_enum_proc(...) -> BOOL{
...}let data = monitor_enum_proc_data{
...};EnumDisplayMonitors(h_dc, lprc_clip, monitor_enum_proc,&data asLPARAM);// call GetMonitorInfo() somewhere// no end in sight
A simple helper function in gdi.rs, like Dc::get_monitor_window(usize) -> Dc, would go a long way.
The text was updated successfully, but these errors were encountered:
Getting a handle and device context for the first monitor is relatively easy:
Getting a handle and device context for the second monitor is worse than death:
A simple helper function in gdi.rs, like
Dc::get_monitor_window(usize) -> Dc
, would go a long way.The text was updated successfully, but these errors were encountered: