View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default monitor small/large font code

Hi Vasant,

you probably haven't run into the problems that can arise, so it didn't
seem like an issue. Defensive programming<vbg

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
Hi Bob:

I didn't realize the DC needed to be released if you weren't doing

anything
with it (besides getting the handle), but my API knowledge would probably
fit on the head of a pin <g.

Regards,

Vasant.

"Bob Phillips" wrote in message
...
Make sure that you release the DC, see


http://msdn.microsoft.com/library/de...vcons_4esj.asp

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
Sub GetScreenFont()
MsgBox GetDeviceCaps(GetDC(0), 88), vbOKOnly _
+ vbInformation, "Screen Font Size"
End Sub

Assuming you have already declared the GetDC and GetDeviceCaps

functions
to
get the screen resolution.

--

Vasant

"Tom Rudski" wrote in message
...
Need code to determine the monitor/screen setting 'small font' or

'large
font'.
I have code for screen resolution.
In Control Panel, 'Display', my 'Settings' advanced tab shows 'small

font
96 dpi normal'.

TIA