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

C / C++ / MFC

 
AnswerRe: CreateProcess failed Pin
Adam Roderick J5-Mar-10 0:50
Adam Roderick J5-Mar-10 0:50 
GeneralRe: CreateProcess failed Pin
john56325-Mar-10 1:19
john56325-Mar-10 1:19 
GeneralRe: CreateProcess failed Pin
Adam Roderick J5-Mar-10 1:28
Adam Roderick J5-Mar-10 1:28 
GeneralRe: CreateProcess failed Pin
CPallini5-Mar-10 1:55
mveCPallini5-Mar-10 1:55 
GeneralRe: CreateProcess failed Pin
ycc8920095-Mar-10 3:43
ycc8920095-Mar-10 3:43 
GeneralRe: CreateProcess failed Pin
CPallini5-Mar-10 5:23
mveCPallini5-Mar-10 5:23 
AnswerRe: CreateProcess failed Pin
Joe Woodbury5-Mar-10 11:25
professionalJoe Woodbury5-Mar-10 11:25 
QuestionGdiplus::Graphics::DrawString and word wrap Pin
sashoalm4-Mar-10 23:36
sashoalm4-Mar-10 23:36 
How can I add word wrap to this code for drawing text:

	CPaintDC dc(this);

	CRect r;
	GetClientRect(&r);

	Gdiplus::Graphics* g = Gdiplus::Graphics::FromHDC(dc.m_hDC);

	CString txt;
	GetWindowText(txt);
	Gdiplus::Font myFont(m_FontName, m_FontSize, m_FontStyle);
	Gdiplus::StringFormat format;
// 	format.SetAlignment(Gdiplus::StringAlignmentNear );
// 	format.SetLineAlignment(Gdiplus::StringAlignmentNear );

	Gdiplus::RectF rf;
	g->MeasureString(txt, txt.GetLength(), &myFont, Gdiplus::PointF(r.left, r.top), &rf);

	Gdiplus::Color color;
	color.SetFromCOLORREF(m_Color);
	Gdiplus::SolidBrush whiteBrush(color);
	g->DrawString(txt, txt.GetLength(), &myFont, 
		rf,	&format, &whiteBrush);

	g->Flush();

	delete g;
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: Gdiplus::Graphics::DrawString and word wrap Pin
Luc Pattyn5-Mar-10 1:51
sitebuilderLuc Pattyn5-Mar-10 1:51 
GeneralRe: Gdiplus::Graphics::DrawString and word wrap Pin
sashoalm5-Mar-10 6:34
sashoalm5-Mar-10 6:34 
GeneralRe: Gdiplus::Graphics::DrawString and word wrap Pin
Luc Pattyn5-Mar-10 6:41
sitebuilderLuc Pattyn5-Mar-10 6:41 
Questioncommunicate with usb (MTP) device and IOCTL Pin
Tinf73784-Mar-10 21:54
Tinf73784-Mar-10 21:54 
QuestionConnecting to a Server Database Pin
jannathali4-Mar-10 21:47
jannathali4-Mar-10 21:47 
QuestionRe: Connecting to a Server Database Pin
David Crow5-Mar-10 7:09
David Crow5-Mar-10 7:09 
QuestionDifference between AVIStreamWrite and AVIStreamWriteData Pin
gmallax4-Mar-10 21:12
gmallax4-Mar-10 21:12 
AnswerRe: Difference between AVIStreamWrite and AVIStreamWriteData Pin
Richard MacCutchan4-Mar-10 21:19
mveRichard MacCutchan4-Mar-10 21:19 
GeneralRe: Difference between AVIStreamWrite and AVIStreamWriteData Pin
gmallax5-Mar-10 20:04
gmallax5-Mar-10 20:04 
QuestionMFC + ORACLE Pin
MsmVc4-Mar-10 19:11
MsmVc4-Mar-10 19:11 
AnswerRe: MFC + ORACLE Pin
Garth J Lancaster4-Mar-10 22:04
professionalGarth J Lancaster4-Mar-10 22:04 
GeneralRe: MFC + ORACLE Pin
MsmVc4-Mar-10 22:13
MsmVc4-Mar-10 22:13 
GeneralRe: MFC + ORACLE Pin
Garth J Lancaster4-Mar-10 22:30
professionalGarth J Lancaster4-Mar-10 22:30 
GeneralRe: MFC + ORACLE Pin
MsmVc4-Mar-10 22:35
MsmVc4-Mar-10 22:35 
GeneralRe: MFC + ORACLE Pin
MsmVc4-Mar-10 22:41
MsmVc4-Mar-10 22:41 
GeneralRe: MFC + ORACLE Pin
Garth J Lancaster4-Mar-10 23:07
professionalGarth J Lancaster4-Mar-10 23:07 
GeneralRe: MFC + ORACLE Pin
MsmVc4-Mar-10 23:11
MsmVc4-Mar-10 23:11 

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.