Re: Help with SystemParametersInfo call

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete:
A easier way would be to use:

atom lpString, pt, void, width, height
lpString = allocate_string("M")
pt allocate(8)
 
void = GetTextExtentPoint32A(hDC,lpString,1,pt)

-- this is the size of a single font character note
-- use capital M because it would be nearest to largest character.
 
width = peek4u(pt) 
height = peek4u(pt+4)


--  HDC hdc,           // handle to device context
--  LPCTSTR lpString,  // pointer to text string
--  int cbString,      // number of characters in string
--  LPSIZE lpSize      // pointer to structure for string size


Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu