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

C / C++ / MFC

 
AnswerRe: no private no protected oops only public Pin
Stephen Hewitt17-May-06 21:05
Stephen Hewitt17-May-06 21:05 
Questionhow to write a string to my picture which is maintained by a Bitmap(GDI+) object? Pin
samfromcn17-May-06 19:51
samfromcn17-May-06 19:51 
AnswerRe: how to type a string on my window? Pin
Hamid_RT17-May-06 19:59
Hamid_RT17-May-06 19:59 
GeneralRe: how to type a string on my window? Pin
samfromcn17-May-06 20:29
samfromcn17-May-06 20:29 
AnswerRe: how to type a string on my window? Pin
Laxman Auti17-May-06 20:00
Laxman Auti17-May-06 20:00 
GeneralRe: how to type a string on my window? Pin
samfromcn17-May-06 20:33
samfromcn17-May-06 20:33 
AnswerRe: how to type a string on my window? Pin
Ganesh_T17-May-06 20:00
Ganesh_T17-May-06 20:00 
AnswerRe: how to type a string on my window? Pin
Hamid_RT17-May-06 20:11
Hamid_RT17-May-06 20:11 
like this
<br />
	USES_CONVERSION;<br />
	Graphics graphics(GetDC()->m_hDC) ;<br />
Image * img ;<br />
ImageAttributes	imAttrib; <br />
img = Image::FromFile(A2W("c:\\A.jpg")) ;<br />
graphics.DrawImage(img,Rect(0,0,378,350),<br />
0,0,img ->GetWidth(),img ->GetHeight(),//if picture is 378*350					UnitPixel,&imAttrib);<br />
<br />
CString str;<br />
str="Hello frined";<br />
//m_Edit1.GetWindowText(str);<br />
<br />
   Font Font(L"System", 16);<br />
   PointF origin(50,50);<br />
   SolidBrush Brush(Color(255,255,255));<br />
   graphics.DrawString(A2W(str),str.GetLength(),&Font,origin,&Brush);<br />
<br />



whitesky


GeneralRe: how to type a string on my window? Pin
samfromcn17-May-06 20:36
samfromcn17-May-06 20:36 
QuestionNeed help!!! Pin
samfromcn18-May-06 15:27
samfromcn18-May-06 15:27 
QuestionDifference between "C structure" and "C++ structure". Pin
Scorpio17-May-06 19:38
Scorpio17-May-06 19:38 
AnswerRe: Difference between "C structure" and "C++ structure". Pin
_AnsHUMAN_ 17-May-06 19:46
_AnsHUMAN_ 17-May-06 19:46 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
Scorpio17-May-06 19:49
Scorpio17-May-06 19:49 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
_AnsHUMAN_ 17-May-06 19:55
_AnsHUMAN_ 17-May-06 19:55 
AnswerRe: Difference between "C structure" and "C++ structure". Pin
Laxman Auti17-May-06 20:11
Laxman Auti17-May-06 20:11 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
ThatsAlok17-May-06 20:35
ThatsAlok17-May-06 20:35 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
ThatsAlok17-May-06 20:33
ThatsAlok17-May-06 20:33 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
ThatsAlok17-May-06 20:21
ThatsAlok17-May-06 20:21 
GeneralRe: Difference between &quot;C structure&quot; and &quot;C++ structure&quot;. Pin
_AnsHUMAN_ 17-May-06 20:41
_AnsHUMAN_ 17-May-06 20:41 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
ThatsAlok17-May-06 20:48
ThatsAlok17-May-06 20:48 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
knoxplusplus23-May-06 8:10
knoxplusplus23-May-06 8:10 
AnswerRe: Difference between &quot;C structure&quot; and &quot;C++ structure&quot;. Pin
Hamid_RT17-May-06 19:47
Hamid_RT17-May-06 19:47 
AnswerRe: Difference between "C structure" and "C++ structure". Pin
NiceNaidu18-May-06 1:19
NiceNaidu18-May-06 1:19 
QuestionErasing non client area Pin
Asha Udupa17-May-06 19:15
Asha Udupa17-May-06 19:15 
AnswerRe: Erasing non client area Pin
led mike17-May-06 19:22
led mike17-May-06 19:22 

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.