Click here to Skip to main content
15,911,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disabling Keys Pin
Matt.W.30-Jul-01 15:47
Matt.W.30-Jul-01 15:47 
GeneralRe: Disabling Keys Pin
31-Jul-01 4:52
suss31-Jul-01 4:52 
Generalpalmap32.dll <-pretty impossible !?! Pin
30-Jul-01 11:42
suss30-Jul-01 11:42 
GeneralSynchronizing a global function Pin
PJ Arends30-Jul-01 11:37
professionalPJ Arends30-Jul-01 11:37 
GeneralRe: Synchronizing a global function Pin
Tomasz Sowinski30-Jul-01 11:42
Tomasz Sowinski30-Jul-01 11:42 
GeneralRe: Synchronizing a global function Pin
PJ Arends30-Jul-01 11:44
professionalPJ Arends30-Jul-01 11:44 
GeneralDegree to pixel Pin
Not Active30-Jul-01 11:26
mentorNot Active30-Jul-01 11:26 
GeneralRe: Degree to pixel Pin
Tomasz Sowinski30-Jul-01 11:47
Tomasz Sowinski30-Jul-01 11:47 
GeneralRe: Degree to pixel Pin
Wolfram Steinke30-Jul-01 11:49
Wolfram Steinke30-Jul-01 11:49 
GeneralUDP Socket Pin
orcun colak30-Jul-01 10:37
orcun colak30-Jul-01 10:37 
GeneralRe: UDP Socket Pin
EiSl2-Aug-01 1:52
EiSl2-Aug-01 1:52 
Generalmultirow buttons in CToolBar Pin
gaylen30-Jul-01 9:55
gaylen30-Jul-01 9:55 
GeneralRe: multirow buttons in CToolBar Pin
EiSl2-Aug-01 1:55
EiSl2-Aug-01 1:55 
GeneralEncryption Pin
Frank Deo30-Jul-01 9:48
Frank Deo30-Jul-01 9:48 
GeneralRe: Encryption Pin
Joaquín M López Muñoz30-Jul-01 11:46
Joaquín M López Muñoz30-Jul-01 11:46 
GeneralRe: Encryption Pin
Frank Deo30-Jul-01 12:31
Frank Deo30-Jul-01 12:31 
QuestionHow can I create read-only file ??? Pin
30-Jul-01 9:45
suss30-Jul-01 9:45 
AnswerRe: How can I create read-only file ??? Pin
Carlos Antollini30-Jul-01 10:09
Carlos Antollini30-Jul-01 10:09 
AnswerRe: How can I create read-only file ??? Pin
Hadi Rezaee30-Jul-01 19:28
Hadi Rezaee30-Jul-01 19:28 
QuestionCan a CRuntimeClass be Serialized? Pin
Joel Holdsworth30-Jul-01 9:22
Joel Holdsworth30-Jul-01 9:22 
AnswerRe: Can a CRuntimeClass be Serialized? Pin
Tomasz Sowinski30-Jul-01 9:27
Tomasz Sowinski30-Jul-01 9:27 
GeneralScaling Fonts, Zooming. Pin
Mike Doner30-Jul-01 8:53
Mike Doner30-Jul-01 8:53 
GeneralRe: Scaling Fonts, Zooming. Pin
Tomasz Sowinski30-Jul-01 9:55
Tomasz Sowinski30-Jul-01 9:55 
GeneralRe: Scaling Fonts, Zooming. Pin
Mike Doner31-Jul-01 5:02
Mike Doner31-Jul-01 5:02 
Thomas,

Thanks for your reply.

I'm not quite sure what you mean by "negate", sounds silly and all, but do you mean put a "-" in front of my szZoomCellSize.cy?

hfont = CreateFont ( -szZoomCellSize.cy, 0, GM_COMPATIBLE, GM_COMPATIBLE, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEVICE_PRECIS, CLIP_LH_ANGLES, PROOF_QUALITY, FF_MODERN, lfnt.lfFaceName );

I've made this change, and I'm still finding that the font its creating is larger than the HEIGHT I've specified. Is there a way or flag what would tell CreateFont to take the closest, lesser nHeight it can find?

In my code, everything revolves around the size of the font. Before I draw the text using the "ExtTextOut" with the ETO_CLIPPED option, I call "GetTextExtent32" to find out the average height and width of a characer. I then build a rectangle to which the text "should" fit. If the font "CreateFont" picks is larger than the box, then my rectangle and font will inevitably fall out of the box. You see my problem Wink | ;-)

By the way, I downloaded your screen saver app, great job... Wink | ;-)

Thx.
Mike.

GeneralRe: Scaling Fonts, Zooming. Pin
Tomasz Sowinski31-Jul-01 6:32
Tomasz Sowinski31-Jul-01 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.