Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVIEW Pin
candan23-Sep-02 17:36
professionalcandan23-Sep-02 17:36 
GeneralRe: VIEW Pin
jmkhael24-Sep-02 1:12
jmkhael24-Sep-02 1:12 
Questiongeting Outlook/Outlook Express email account settings? Pin
Anonymous23-Sep-02 16:22
Anonymous23-Sep-02 16:22 
AnswerRe: geting Outlook/Outlook Express email account settings? Pin
Nish Nishant23-Sep-02 21:21
sitebuilderNish Nishant23-Sep-02 21:21 
QuestionHow could I get attributes of remote file ? Pin
Bigapple23-Sep-02 15:24
Bigapple23-Sep-02 15:24 
AnswerRe: How could I get attributes of remote file ? Pin
Todd Smith23-Sep-02 16:03
Todd Smith23-Sep-02 16:03 
GeneralRe: How could I get attributes of remote file ? Pin
Bigapple23-Sep-02 18:36
Bigapple23-Sep-02 18:36 
GeneralURGENT required help on Printing Text size! Pin
23-Sep-02 15:13
suss23-Sep-02 15:13 
Hi,

I am working on printing a List Box contents, so far it has worked ... except that I could not change the "Text size", here is a part of my codes:
<br />
    CFont   Font;<br />
    LOGFONT lf;     <br />
    CDC	    dc;<br />
<br />
    memset(&lf, 0, sizeof(LOGFONT::ZeroMemory(&lf, sizeof(LOGFONT));<br />
    lf.lfHeight = -MulDiv(10, dc.GetDeviceCaps(LOGPIXELSY), 72);<br />
    strcpy(lf.lfFaceName, "Arial");    <br />
<br />
    Font.CreateFontIndirect(&lf);<br />
    dc.SelectObject(&oFont);	<br />
    CString	text("A") ;<br />
    CSize	csText = dc.GetTextExtent(text) ;<br />
    ----------------------------------------------- (some more detail)<br />
    m_listbox.GetText(line_printing, text) ;<br />
    dc.DrawText(text, CRect(x, y, x + Info.m_rectDraw.Width(), y + csText.cy), DT_EXPANDTABS) ;<br />
		<br />

*) I tried to change lf.lfHeight, but the result is that I only changed the spacing for vertical printing! What ever I change that or lf.lfFaceName ... the "Text size" printing out ... has never been changed!

Can someone help me on this, I am really appreciate it ... if provide me an Email ddress, I will send a small zip about my small project (just to try the printing)!

Many thanks,
GeneralRe: URGENT required help on Printing Text size! Pin
Tomasz Sowinski23-Sep-02 23:49
Tomasz Sowinski23-Sep-02 23:49 
GeneralRe: URGENT required help on Printing Text size! Pin
ATC24-Sep-02 13:13
ATC24-Sep-02 13:13 
QuestionCArchive File Format? Pin
Matthew R. Miller23-Sep-02 14:46
Matthew R. Miller23-Sep-02 14:46 
AnswerRe: CArchive File Format? Pin
Neville Franks23-Sep-02 16:21
Neville Franks23-Sep-02 16:21 
AnswerRe: CArchive File Format? Pin
Ravi Bhavnani23-Sep-02 17:42
professionalRavi Bhavnani23-Sep-02 17:42 
GeneralEnumWindows... Pin
adamUK23-Sep-02 11:56
adamUK23-Sep-02 11:56 
GeneralRe: EnumWindows... Pin
Joaquín M López Muñoz23-Sep-02 12:00
Joaquín M López Muñoz23-Sep-02 12:00 
GeneralRe: EnumWindows... Pin
adamUK23-Sep-02 21:45
adamUK23-Sep-02 21:45 
GeneralMake sure it's a static function Pin
TyMatthews23-Sep-02 12:57
TyMatthews23-Sep-02 12:57 
GeneralRe: Make sure it's a static function Pin
adamUK23-Sep-02 21:43
adamUK23-Sep-02 21:43 
GeneralRe: Make sure it's a static function Pin
Daniel Lohmann24-Sep-02 8:28
Daniel Lohmann24-Sep-02 8:28 
Generalwindow smoothing on static controls Pin
Anonymous23-Sep-02 11:42
Anonymous23-Sep-02 11:42 
GeneralRe: window smoothing on static controls Pin
Shog923-Sep-02 12:35
sitebuilderShog923-Sep-02 12:35 
Questionlocation of dll on users machine. Where to put it? Pin
ns23-Sep-02 11:22
ns23-Sep-02 11:22 
AnswerRe: location of dll on users machine. Where to put it? Pin
Joaquín M López Muñoz23-Sep-02 11:30
Joaquín M López Muñoz23-Sep-02 11:30 
Generalthanks very much Pin
ns23-Sep-02 11:32
ns23-Sep-02 11:32 
Generalproblem with pasting bitmap into a clipboard Pin
Mariusz Popiolek23-Sep-02 9:57
sussMariusz Popiolek23-Sep-02 9:57 

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.