Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: integer value in editbox Pin
Hamid_RT18-May-08 20:34
Hamid_RT18-May-08 20:34 
GeneralRe: integer value in editbox Pin
Rajkumar R18-May-08 21:15
Rajkumar R18-May-08 21:15 
GeneralRe: integer value in editbox Pin
Cedric Moonen18-May-08 21:18
Cedric Moonen18-May-08 21:18 
JokeRe: integer value in editbox Pin
Rajesh R Subramanian18-May-08 21:37
professionalRajesh R Subramanian18-May-08 21:37 
GeneralRe: integer value in editbox Pin
CPallini18-May-08 22:09
mveCPallini18-May-08 22:09 
GeneralRe: integer value in editbox Pin
David Crow19-May-08 4:34
David Crow19-May-08 4:34 
GeneralRe: integer value in editbox Pin
David Crow19-May-08 4:35
David Crow19-May-08 4:35 
Questioncan anyone give me a solution Pin
shohel89918-May-08 16:01
shohel89918-May-08 16:01 
guys,
i get some porblem. i degine a graph region and i have drawn some grids with the following codes.
BOOL CUserInterfaceDlg::PlotGrid(void)
{
	int i;
	GraphRegion->SelectObject(Brush);
	GraphRegion->SelectObject(PenGrid);
	GraphRegion->FillRect(&GraphRect,&Brush);

	for (i=1;i<(GraphRect.Width()/2);i++)
	{
		GraphRegion->MoveTo(i*((double)GraphRect.Width()/30),0);
		GraphRegion->LineTo(i*((double)GraphRect.Width()/30),GraphRect.Height());

	}

	for (i = 1;i<(GraphRect.Height()/2);i++)
	{
		GraphRegion->MoveTo(0,GraphRect.Height()-i*((double)GraphRect.Height()/30));
		GraphRegion->LineTo(GraphRect.Width(),GraphRect.Height()-i*((double)GraphRect.Height()/30));
	}


	return 0;

}

then i tried to draw another line on the grid by the following codes:

BOOL CUserInterfaceDlg::PlotRunWay(void)
{
	
	UpdateData(TRUE);
	GraphRegion->SelectObject(PenRunWay);
	
	RXArray[0]=m_AirXPisition;
	RYArray[0]=m_AirYPosition;
	
	RPoints[0].x=RXArray[0];
	RPoints[0].y=RYArray[0];
	
	RPoints[1].x=RPoints[0].x+30000;
	RPoints[1].y=RPoints[0].y+200;
	


	GraphRegion->MoveTo(RPoints[0]);	
	GraphRegion->LineTo(RPoints[1]);
	
	
	return 0;
}


but this is not working. it just drawing the grid lines. can anyone tell me why it happening.

thanking you all,
shohel
AnswerRe: can anyone give me a solution Pin
Nelek18-May-08 21:42
protectorNelek18-May-08 21:42 
Questionplease help me Pin
sofia_11118-May-08 14:26
sofia_11118-May-08 14:26 
AnswerRe: please help me Pin
leckey18-May-08 16:03
leckey18-May-08 16:03 
AnswerRe: please help me Pin
Hamid_RT18-May-08 18:15
Hamid_RT18-May-08 18:15 
GeneralRe: please help me Pin
sofia_11119-May-08 8:14
sofia_11119-May-08 8:14 
AnswerRe: please help me Pin
Rajesh R Subramanian18-May-08 18:40
professionalRajesh R Subramanian18-May-08 18:40 
AnswerRe: please help me Pin
David Crow19-May-08 4:37
David Crow19-May-08 4:37 
Question"THE BEST " book for mastering c & c++ Pin
micro_prgmr18-May-08 9:51
micro_prgmr18-May-08 9:51 
AnswerRe: "THE BEST " book for mastering c & c++ Pin
Hamid_RT18-May-08 18:20
Hamid_RT18-May-08 18:20 
QuestionDefinations for Previous message Compiler not generation code Pin
ForNow18-May-08 9:24
ForNow18-May-08 9:24 
QuestionRe: Definations for Previous message Compiler not generation code Pin
Rajkumar R18-May-08 21:22
Rajkumar R18-May-08 21:22 
AnswerRe: Definations for Previous message Compiler not generation code Pin
ForNow18-May-08 22:48
ForNow18-May-08 22:48 
QuestionCompiler not generating code Pin
ForNow18-May-08 9:20
ForNow18-May-08 9:20 
AnswerRe: Compiler not generating code [modified] Pin
Rajkumar R18-May-08 21:30
Rajkumar R18-May-08 21:30 
GeneralRe: Compiler not generating code Pin
ForNow18-May-08 22:37
ForNow18-May-08 22:37 
AnswerRe: Compiler not generating code Pin
Rajkumar R18-May-08 22:48
Rajkumar R18-May-08 22:48 
GeneralRe: Compiler not generating code Pin
ForNow19-May-08 0:40
ForNow19-May-08 0:40 

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.