Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Please help Pin
Cedric Moonen8-Aug-06 22:48
Cedric Moonen8-Aug-06 22:48 
GeneralRe: Please help Pin
Jawad Yasin8-Aug-06 22:55
Jawad Yasin8-Aug-06 22:55 
GeneralRe: Please help Pin
Steen Krogsgaard9-Aug-06 0:55
Steen Krogsgaard9-Aug-06 0:55 
GeneralRe: Please help Pin
Cedric Moonen9-Aug-06 1:14
Cedric Moonen9-Aug-06 1:14 
AnswerRe: Please help Pin
Maxwell Chen9-Aug-06 0:03
Maxwell Chen9-Aug-06 0:03 
GeneralRe: Please help Pin
Hamid_RT9-Aug-06 3:09
Hamid_RT9-Aug-06 3:09 
AnswerRe: Please help Pin
David Crow9-Aug-06 3:29
David Crow9-Aug-06 3:29 
Questiontest for Path Pin
includeh108-Aug-06 22:17
includeh108-Aug-06 22:17 
in a Dialog OnPaint() message:

//-------------------------------
void TheDlg::OnPaint()
{
CPaintDC dc(this);

//============================
dc.SetPolyFillMode(WINDING);

CPen penRed(PS_SOLID,1,RGB(255,0,0));
CBrush brhRed(RGB(255,0,0));

CPen*pPenOld=dc.SelectObject(&penRed);

dc.BeginPath();
dc.Rectangle(10,10,100,100);
dc.EndPath();

CRgn rgn;
rgn.CreateFromPath(&dc);
dc.FillRgn(&rgn,&brhRed);

dc.SelectObject(pPenOld);

//================================
but I can see Nothing be drawn, what is wrong? how to correct code above to see the Rectangle?



AnswerRe: test for Path Pin
Hamid_RT8-Aug-06 22:35
Hamid_RT8-Aug-06 22:35 
AnswerRe: test for Path Pin
Viorel.8-Aug-06 22:38
Viorel.8-Aug-06 22:38 
GeneralRe: test for Path Pin
includeh109-Aug-06 4:33
includeh109-Aug-06 4:33 
QuestionNeed help on XML and VC++ Pin
Sarvan AL8-Aug-06 22:00
Sarvan AL8-Aug-06 22:00 
AnswerRe: Need help on XML and VC++ Pin
Hamid_RT8-Aug-06 22:22
Hamid_RT8-Aug-06 22:22 
AnswerRe: Need help on XML and VC++ Pin
Hamid_RT11-Aug-06 0:15
Hamid_RT11-Aug-06 0:15 
QuestionDisplay the dialog Not in a Moving state.it should be fixed. Pin
Arul Joseph8-Aug-06 21:58
Arul Joseph8-Aug-06 21:58 
AnswerRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Cedric Moonen8-Aug-06 22:19
Cedric Moonen8-Aug-06 22:19 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Steve S9-Aug-06 1:39
Steve S9-Aug-06 1:39 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Cedric Moonen9-Aug-06 1:52
Cedric Moonen9-Aug-06 1:52 
JokeRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Steve S9-Aug-06 1:53
Steve S9-Aug-06 1:53 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Cedric Moonen9-Aug-06 1:57
Cedric Moonen9-Aug-06 1:57 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. [modified] Pin
Wes Aday9-Aug-06 4:42
professionalWes Aday9-Aug-06 4:42 
QuestionHow to Display the Dialog not in a Moving state? it should be fixed . Pin
Arul Joseph8-Aug-06 21:54
Arul Joseph8-Aug-06 21:54 
QuestionMy CListCtrl Pin
Bravoone_20068-Aug-06 21:03
Bravoone_20068-Aug-06 21:03 
AnswerRe: My CListCtrl Pin
Hamid_RT8-Aug-06 21:09
Hamid_RT8-Aug-06 21:09 
AnswerRe: My CListCtrl Pin
Viorel.8-Aug-06 21:23
Viorel.8-Aug-06 21:23 

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.