Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Scaling Fonts, Zooming. Pin
AndyC30-Jul-01 12:51
AndyC30-Jul-01 12:51 
GeneralRe: Scaling Fonts, Zooming. Pin
Mike Doner31-Jul-01 5:06
Mike Doner31-Jul-01 5:06 
Generalkeeping my selections in listbox Pin
Ananya Sen Gupta30-Jul-01 8:14
Ananya Sen Gupta30-Jul-01 8:14 
GeneralRe: keeping my selections in listbox Pin
Tomasz Sowinski30-Jul-01 10:03
Tomasz Sowinski30-Jul-01 10:03 
GeneralMFC modal "wait" dialog Pin
flurinator30-Jul-01 8:02
flurinator30-Jul-01 8:02 
GeneralRe: MFC modal Pin
Tomasz Sowinski30-Jul-01 9:36
Tomasz Sowinski30-Jul-01 9:36 
GeneralRe: MFC modal Pin
Matt Gullett30-Jul-01 18:01
Matt Gullett30-Jul-01 18:01 
GeneralI need some help with some errors... Pin
30-Jul-01 7:54
suss30-Jul-01 7:54 
GeneralRe: I need some help with some errors... Pin
Tomasz Sowinski30-Jul-01 9:38
Tomasz Sowinski30-Jul-01 9:38 
GeneralRe: I need some help with some errors... Pin
30-Jul-01 16:15
suss30-Jul-01 16:15 
GeneralRe: I need some help with some errors... Pin
Christian Graus30-Jul-01 16:31
protectorChristian Graus30-Jul-01 16:31 
GeneralRe: I need some help with some errors... Pin
Matt Gullett30-Jul-01 17:52
Matt Gullett30-Jul-01 17:52 
GeneralRe: I need some help with some errors... Pin
31-Jul-01 10:50
suss31-Jul-01 10:50 
GeneralRe: I need some help with some errors... Pin
Matt Gullett31-Jul-01 13:31
Matt Gullett31-Jul-01 13:31 
GeneralRe: I need some help with some errors... Pin
Matt Gullett31-Jul-01 13:33
Matt Gullett31-Jul-01 13:33 
QuestionWhen is m_wndToolBar initially sized inplace? Pin
Kristian Nilssen30-Jul-01 7:50
Kristian Nilssen30-Jul-01 7:50 

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.