Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Monitor Size
Re: Monitor Size [message #16542 is a reply to message #16525] Mon, 23 June 2008 22:47 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

I found in windows solution:

HDC hdc = ::GetWindowDC(NULL);
int width_mm = ::GetDeviceCaps(hdc, HORZSIZE);
int height_mm = ::GetDeviceCaps(hdc, VERTSIZE);
::ReleaseDC(NULL, hdc);

But how will be in linux?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RemoveChild(GLCtrl) --> 100% CPU
Next Topic: Ctrl::Add(GLCtrl) Bug (Linux)
Goto Forum:
  


Current Time: Tue Aug 26 00:10:07 CEST 2025

Total time taken to generate the page: 0.05334 seconds