Click here to Skip to main content
15,902,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: Clip Region of CDC Pin
himuskanhere29-Jul-07 20:55
himuskanhere29-Jul-07 20:55 
Questionrow = mysql_fetch_row(res); Pin
p_29-Jul-07 18:42
p_29-Jul-07 18:42 
AnswerRe: row = mysql_fetch_row(res); Pin
Shouvik Das29-Jul-07 23:48
Shouvik Das29-Jul-07 23:48 
QuestionHow to solve "Out of memory" Pin
Pogo Lin29-Jul-07 16:32
Pogo Lin29-Jul-07 16:32 
AnswerRe: How to solve "Out of memory" Pin
Paul Conrad29-Jul-07 17:16
professionalPaul Conrad29-Jul-07 17:16 
GeneralRe: How to solve "Out of memory" Pin
Pogo Lin31-Jul-07 20:28
Pogo Lin31-Jul-07 20:28 
AnswerRe: How to solve "Out of memory" Pin
Stephen Hewitt29-Jul-07 19:12
Stephen Hewitt29-Jul-07 19:12 
QuestionHow to wirte a text editor from scratch? Pin
lichongbin29-Jul-07 14:03
lichongbin29-Jul-07 14:03 
Recently, I was confused with the problem of displaying text. Supposed I created a single document application named "Text", and the CTextView inherited from CView. The map mode is MM_LOMETRIC.
There is the following code segment:
    INT_PTR nRet = -1;
CFontDialog fontDialog;
nRet = fontDialog.DoModal();

CString str("There is a will, there is a way!");
if(nRet == IDOK)
{
    LOGFONT lf;
    fontDialog.GetCurrentFont(&lf);

    CFont font;
    font.CreateFontIndirect(&lf);
    CDC *pDC = GetDC();
    OnPrepareDC(pDC);

    CFont *pOldFont;
    pOldFont = pDC->SelectObject(&font);
    pDC->TextOut(500, -500, str);
}

Why the text is so small, even I select the largest size?


Help!

AnswerRe: How to wirte a text editor from scratch? Pin
Nelek29-Jul-07 22:01
protectorNelek29-Jul-07 22:01 
QuestionMotion sensing Pin
mlibkind29-Jul-07 11:24
mlibkind29-Jul-07 11:24 
AnswerRe: Motion sensing Pin
eraccn29-Jul-07 15:00
eraccn29-Jul-07 15:00 
QuestionWriting My Own: Windows Desktop Shell Pin
convivial.developer29-Jul-07 10:40
convivial.developer29-Jul-07 10:40 
AnswerRe: Writing My Own: Windows Desktop Shell Pin
Stephen Hewitt29-Jul-07 15:03
Stephen Hewitt29-Jul-07 15:03 
GeneralRe: Writing My Own: Windows Desktop Shell Pin
convivial.developer29-Jul-07 16:21
convivial.developer29-Jul-07 16:21 
GeneralRe: Writing My Own: Windows Desktop Shell Pin
Stephen Hewitt29-Jul-07 16:24
Stephen Hewitt29-Jul-07 16:24 
GeneralRe: Writing My Own: Windows Desktop Shell Pin
convivial.developer30-Jul-07 2:26
convivial.developer30-Jul-07 2:26 
AnswerRe: Writing My Own: Windows Desktop Shell Pin
David Crow30-Jul-07 4:06
David Crow30-Jul-07 4:06 
QuestionHEAP issues with Overlapped I/O using completion port Pin
Zerox MXI29-Jul-07 6:07
Zerox MXI29-Jul-07 6:07 
QuestionRe: HEAP issues with Overlapped I/O using completion port Pin
Mark Salsbery30-Jul-07 6:39
Mark Salsbery30-Jul-07 6:39 
AnswerRe: HEAP issues with Overlapped I/O using completion port Pin
Zerox MXI30-Jul-07 15:46
Zerox MXI30-Jul-07 15:46 
Questionerrors while using class wizard Pin
l_d29-Jul-07 3:37
l_d29-Jul-07 3:37 
AnswerRe: errors while using class wizard Pin
eraccn29-Jul-07 15:08
eraccn29-Jul-07 15:08 
GeneralRe: errors while using class wizard Pin
l_d29-Jul-07 16:47
l_d29-Jul-07 16:47 
QuestionErrors using windows.h Pin
KaKa'29-Jul-07 1:57
KaKa'29-Jul-07 1:57 
Questionappend a character to a char* Pin
moonraker92828-Jul-07 18:56
moonraker92828-Jul-07 18:56 

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.