Click here to Skip to main content
15,917,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondeleting the previous shape Pin
shohel8997-May-08 18:55
shohel8997-May-08 18:55 
AnswerRe: deleting the previous shape Pin
dehseth7-May-08 19:07
dehseth7-May-08 19:07 
QuestionRe: deleting the previous shape Pin
Rajkumar R7-May-08 19:20
Rajkumar R7-May-08 19:20 
AnswerRe: deleting the previous shape Pin
dehseth7-May-08 20:16
dehseth7-May-08 20:16 
QuestionRe: deleting the previous shape Pin
Rajkumar R7-May-08 20:38
Rajkumar R7-May-08 20:38 
AnswerRe: deleting the previous shape Pin
shohel8998-May-08 4:28
shohel8998-May-08 4:28 
GeneralRe: deleting the previous shape Pin
Rajkumar R8-May-08 5:23
Rajkumar R8-May-08 5:23 
GeneralRe: deleting the previous shape Pin
shohel8998-May-08 15:06
shohel8998-May-08 15:06 
here is the poriton of the code:

BOOL CUserInterfaceDlg::PlotGraph(CPoint* Points,size_t m_SizeOfArray)
{
int i;
GraphRegion->SelectObject(PenSimulation);


for (i=0;i<m_SizeOfArray;i++)
{

Draw_triangle(&Points[i]);
}

return 0;
}

void CUserInterfaceDlg::Draw_triangle(CPoint* Points)
{
GraphRegion->MoveTo(Points[0].x,Points[0].y);
GraphRegion->LineTo(Points[0].x+10,Points[0].y-10);
GraphRegion->LineTo(Points[0].x-10,Points[0].y-10);
GraphRegion->LineTo(Points[0].x,Points[0].y);

}

but problem is, let sizeofArray is 100 then 100 triangles are generating but i need to show only one tiangle at a time. as when it generates the triangle no. 8 it should not show the previous 7 triangles. how can i solve that.
GeneralRe: deleting the previous shape Pin
Rajkumar R8-May-08 23:00
Rajkumar R8-May-08 23:00 
AnswerRe: deleting the previous shape Pin
Nelek8-May-08 10:58
protectorNelek8-May-08 10:58 
QuestionFlexGrid & CMSFlexGrid Pin
dehseth7-May-08 18:39
dehseth7-May-08 18:39 
AnswerRe: FlexGrid & CMSFlexGrid Pin
Rajkumar R7-May-08 19:16
Rajkumar R7-May-08 19:16 
QuestionRe: FlexGrid & CMSFlexGrid Pin
dehseth7-May-08 19:30
dehseth7-May-08 19:30 
QuestionRe: FlexGrid & CMSFlexGrid Pin
Rajkumar R7-May-08 19:41
Rajkumar R7-May-08 19:41 
AnswerRe: FlexGrid & CMSFlexGrid Pin
dehseth7-May-08 20:10
dehseth7-May-08 20:10 
GeneralRe: FlexGrid & CMSFlexGrid Pin
Rajkumar R7-May-08 20:28
Rajkumar R7-May-08 20:28 
Questionchange menu background color Pin
hari_honey7-May-08 18:25
hari_honey7-May-08 18:25 
AnswerRe: change menu background color Pin
Hamid_RT7-May-08 18:33
Hamid_RT7-May-08 18:33 
GeneralRe: change menu background color Pin
hari_honey7-May-08 18:58
hari_honey7-May-08 18:58 
GeneralRe: change menu background color Pin
Hamid_RT7-May-08 20:45
Hamid_RT7-May-08 20:45 
Questionset menu background color Pin
hari_honey7-May-08 18:24
hari_honey7-May-08 18:24 
AnswerRe: set menu background color Pin
Hamid_RT7-May-08 18:33
Hamid_RT7-May-08 18:33 
QuestionGraphis::FillRectangle, brush align problem Pin
followait7-May-08 17:37
followait7-May-08 17:37 
AnswerRe: Graphis::FillRectangle, brush align problem Pin
Nitheesh George7-May-08 21:02
Nitheesh George7-May-08 21:02 
Questionwhy SYSTEMTIME doesn't return Hour?? Pin
nintendoWii7-May-08 14:15
nintendoWii7-May-08 14:15 

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.