Caros colegas, estou precisando de uma orientação com alguns
problemas que venho tendo, como por exemplo:
->quando vou na ajuda do EVC, ele as vezes te mostra alguns exemplos
de como usar a função, mas ele só mostra a função e não como declará-
la e usá-la em uma classe... no meu caso eu preciso criar um
retângulo e ele mostra a seguinte função:
"This method draws a rectangle using the current pen. The interior of
the rectangle is filled using the current brush.
BOOL Rectangle(
int x1,
int y1,
int x2,
int y2 );
BOOL Rectangle( LPCRECT lpRect ); "
Depois ele mostra logo abaixo:
"void CMyView::OnDraw(CDC* pDC)
{
// Create and select a solid blue brush.
CBrush brushBlue(RGB(0, 0, 255));
CBrush* pOldBrush = pDC->SelectObject(&brushBlue);
// Create and select a thick, black pen.
CPen penBlack;
penBlack.CreatePen(PS_SOLID, 3, RGB(0, 0, 0));
CPen* pOldPen = pDC->SelectObject(&penBlack);
// Get the client rectangle.
CRect rect;
GetClientRect(rect);
// Shrink the rectangle 20 pixels in each direction.
rect.DeflateRect(20, 20);
// Draw a thick black rectangle filled with blue.
pDC->Rectangle(rect);
// Put back the old objects.
pDC->SelectObject(pOldBrush);
pDC->SelectObject(pOldPen);
}"
Isso aparece quando procuro por "rectangulo", no HELP->CONTENTS-
>INDICE, será que alguèm poderia me explicar como usar isso, ou me
dar uma ajuda para trabalhar com a parte de DRAW no embedded...
Agradecido Jones.