Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CRect rect;
- GetClientRect(&rect);
- double dAngle = angle*M_PI / 180.0;
- double tangens = tan(dAngle);
- double t = rect.Width() - tangens;
- double y1 = rect.bottom - t;
- POINT points[3] = { {0,clientRect.bottom}, {clientRect.right,y1}, {clientRect.right,clientRect.bottom}};
- CBrush hatchBrush;
- hatchBrush.CreateHatchBrush(HS_FDIAGONAL, RGB(120, 120, 56));
- CBrush *oldBrush = pDC->SelectObject(&hatchBrush);
- pDC->SetBkColor(RGB(50, 50, 50));
- pDC->Polygon(points, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement