Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "main.h"
- extern HDC hdc;
- extern HWND hWnd;
- HPEN hPen[20] = { CreatePen(0, 1, RGB(232, 155, 79)) };
- void xLine(int nPos, int nHigh, int nColor);
- //////////////////////////////////////////////////////////////
- void INIT()
- {
- }
- ////////////////////////////////////////////////////////////
- void START()
- {
- xLine(14, 140, 7);
- }
- /////////////////////////////////////////////////////////// Ïå÷àòàåò ñòîëáèê
- void xLine(int nPos, int nHigh, int nColor) // .
- {
- int x1 = 10 + nPos*20,
- x2 = 10 + nPos*20,
- y1 = 80,
- y2 = 300;
- int nP = nHigh;
- y1 = 300 - nP;
- //
- hdc = GetDC(hWnd);
- MoveToEx(hdc, x2, y2, 0);
- SelectObject(hdc, hPen[0]);
- LineTo(hdc, x1, y1);
- //LineTo(hdc, x1+18, y1);
- ReleaseDC(hWnd,hdc);
- }
Advertisement
Add Comment
Please, Sign In to add comment