implemented wxDisplaySizeMM for gtk, msw & motif.

used wxDisplaySize and wxDisplaySizeMM to calculate real screen PPI in
wxPostScriptPrinter.
documented wxDisplaySize and wxDisplaySizeMM.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2000-09-25 08:51:35 +00:00
parent 11207aa4c2
commit 904a68b6f6
8 changed files with 68 additions and 21 deletions

View File

@@ -986,6 +986,15 @@ void wxDisplaySize(int *width, int *height)
if ( height ) *height = GetDeviceCaps(dc, VERTRES);
}
void wxDisplaySizeMM(int *width, int *height)
{
ScreenHDC dc;
if ( width ) *width = GetDeviceCaps(dc, HORZSIZE);
if ( height ) *height = GetDeviceCaps(dc, VERTSIZE);
}
// ---------------------------------------------------------------------------
// window information functions
// ---------------------------------------------------------------------------