dllbridge

Untitled

Jun 26th, 2026
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.99 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include "main.h"
  5.  
  6. extern HDC        hdc;  
  7. extern HWND      hWnd;
  8.  
  9.  
  10.  HPEN              hPen[20] = { CreatePen(0, 1, RGB(232, 155, 79)) };
  11.  
  12.  
  13.  void xLine(int nPos, int nHigh, int nColor);  
  14.  
  15. //////////////////////////////////////////////////////////////
  16. void INIT()
  17. {
  18.    
  19.      
  20.    
  21. }
  22.  
  23.  
  24.  
  25.  
  26. ////////////////////////////////////////////////////////////
  27. void START()
  28. {
  29.  
  30.      xLine(14, 140, 7);
  31. }
  32.  
  33.  
  34.  
  35. ///////////////////////////////////////////////////////////                                          Ïå÷àòàåò ñòîëáèê
  36. void xLine(int nPos, int nHigh, int nColor)              //                .
  37. {
  38.    
  39.     int  x1 =  10 + nPos*20,
  40.          x2 =  10 + nPos*20,
  41.          y1 =  80,
  42.          y2 = 300;
  43.              
  44.          int nP = nHigh;
  45.          
  46.          y1 = 300 - nP;
  47.                                                          //
  48.      hdc = GetDC(hWnd);
  49.      MoveToEx(hdc, x2, y2, 0);
  50.      SelectObject(hdc, hPen[0]);
  51.      LineTo(hdc, x1,    y1);
  52.      //LineTo(hdc, x1+18, y1);
  53.      ReleaseDC(hWnd,hdc);
  54. }
  55.  
Advertisement
Add Comment
Please, Sign In to add comment