Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get the letter to a drivename? Pin
Rage8-Feb-06 6:26
professionalRage8-Feb-06 6:26 
GeneralRe: How to get the letter to a drivename? Pin
David Crow8-Feb-06 6:43
David Crow8-Feb-06 6:43 
GeneralRe: How to get the letter to a drivename? Pin
Rage8-Feb-06 6:27
professionalRage8-Feb-06 6:27 
GeneralRe: How to get the letter to a drivename? Pin
ahmet07038-Feb-06 20:33
ahmet07038-Feb-06 20:33 
QuestionScrollView doesn't paint correctly Pin
#realJSOP8-Feb-06 1:57
professional#realJSOP8-Feb-06 1:57 
QuestionAssertion error in OnDraw Pin
Anu_Bala8-Feb-06 0:55
Anu_Bala8-Feb-06 0:55 
AnswerRe: Assertion error in OnDraw Pin
Abebe8-Feb-06 1:20
Abebe8-Feb-06 1:20 
GeneralRe: Assertion error in OnDraw Pin
Anu_Bala8-Feb-06 16:44
Anu_Bala8-Feb-06 16:44 
void CLineView::OnDraw(CDC* pDC)
{
//CLineDoc* pDoc = GetDocument();
//ASSERT_VALID(pDoc);
// TODO: add draw code for native data here

GetClientRect(&rect);
pDC->FillRect((LPCRECT)rect,&CBrush(RGB(0,0,0)));
CPoint PtLine[] = { CPoint( 100, 20), CPoint(100, 420),
CPoint(700, 420) };


pDC->SelectStockObject(WHITE_PEN);
pDC->SetBkColor(RGB(0,0,0));
pDC->SetTextColor(RGB(19,133,255));
pDC->MoveTo(PtLine[0]);
pDC->LineTo(PtLine[1]);
pDC->LineTo(PtLine[2]);

int x1=160,y1=420,x2=100,y2=60;
for(int i = 0;i<9;i++)
{
pDC->MoveTo(x1,y1);
pDC->LineTo(x1,y1+5);
x1=x1+60;
pDC->MoveTo(x2,y2);
pDC->LineTo(x2-5,y2);
y2=y2+40;
}
gpen1.CreatePen(PS_SOLID,2,RGB(255,0,0));
pDC->SelectObject(&gpen1);
for(int j= 0;j<8;j++)
{

pDC->SetPixel(a[j]+100,420-b[j],RGB(0,255,0));
pDC->MoveTo(a[j]+100,420-b[j]);
pDC->LineTo(a[j+1]+100,420-b[j+1]);
}

pDC->TextOut(650,450,"X-AXIS");
pDC->TextOut(45,25,"Y-AXIS");

}
GeneralRe: Assertion error in OnDraw Pin
_anil_8-Feb-06 19:03
_anil_8-Feb-06 19:03 
AnswerRe: Assertion error in OnDraw Pin
_anil_8-Feb-06 1:22
_anil_8-Feb-06 1:22 
Questionhow to get a value from registery in MFC application Pin
Issa Salama8-Feb-06 0:00
Issa Salama8-Feb-06 0:00 
AnswerRe: how to get a value from registery in MFC application Pin
Owner drawn8-Feb-06 0:09
Owner drawn8-Feb-06 0:09 
AnswerRe: how to get a value from registery in MFC application Pin
ThatsAlok8-Feb-06 18:55
ThatsAlok8-Feb-06 18:55 
QuestionNetwork Connection status monotoring Pin
Tony Kurishunkal7-Feb-06 23:56
Tony Kurishunkal7-Feb-06 23:56 
AnswerRe: Network Connection status monotoring Pin
bantisk8-Feb-06 1:12
bantisk8-Feb-06 1:12 
QuestionRe: Network Connection status monotoring Pin
David Crow8-Feb-06 3:52
David Crow8-Feb-06 3:52 
AnswerRe: Network Connection status monotoring Pin
Tony Kurishunkal13-Feb-06 22:15
Tony Kurishunkal13-Feb-06 22:15 
QuestionRe: Network Connection status monotoring Pin
David Crow14-Feb-06 2:50
David Crow14-Feb-06 2:50 
AnswerRe: Network Connection status monotoring Pin
Tony Kurishunkal14-Feb-06 16:02
Tony Kurishunkal14-Feb-06 16:02 
QuestionGroup box in XP Pin
BabuZaleela7-Feb-06 23:54
BabuZaleela7-Feb-06 23:54 
AnswerRe: Group box in XP Pin
-Dy8-Feb-06 1:29
-Dy8-Feb-06 1:29 
Questionmove button Pin
mariantonietta7-Feb-06 23:41
mariantonietta7-Feb-06 23:41 
AnswerRe: move button Pin
_anil_7-Feb-06 23:44
_anil_7-Feb-06 23:44 
AnswerRe: move button Pin
benjymous8-Feb-06 0:41
benjymous8-Feb-06 0:41 
AnswerRe: move button Pin
David Crow8-Feb-06 3:54
David Crow8-Feb-06 3:54 

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.