enu! = NULL)
{CString strAboutMenu;. LoadString (IDS_ABOUTBOX); (! strAboutMenu.IsEmpty ())
{pSysMenu-> AppendMenu (MF_SEPARATOR);> AppendMenu (MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}} (m_hIcon, TRUE);// Set big icon (m_hIcon, FALSE) ;//Set small iconTRUE;// return TRUE unless you set the focus to a control
} CMP80386Dlg :: OnSysCommand (UINT nID, LPARAM lParam)
{if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{CAboutDlg dlgAbout;. DoModal ();
} :: OnSysCommand (nID, lParam); (FALSE);
} CMP80386Dlg :: OnPaint ()
{if (IsIconic ())
{CPaintDC dc (this);// device context for painting (WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc (), 0);
// Center icon in client rectanglecxIcon = GetSystemMetrics (SM_CXICON); cyIcon = GetSystemMetrics (SM_CYICON); rect; (& rect); x = (rect.Width () - cxIcon + 1)/ 2; y = (rect.Height () - cyIcon + 1)/2;
// Draw the icon.DrawIcon (x, y, m_hIcon);
}
{OnReset (); :: OnPaint ();
}} CMP80386Dlg :: OnQueryDragIcon ()
{return (HCURSOR) m_hIcon;
} CMP80386Dlg :: OnReset ()
{int l; j = 0; str = ""; = 1; (l = 1; l <8; l + +) (l, false, 2); (l = 8; l <29; l + +) (l, false, label ", 0,0,0,0); (l = 0x1007; l <0x1012; l + +)
_EBX.ResetContent (); _EBX.InsertString (0, "18B2"); _EIP.ResetContent (); _EIP.InsertString (0, "0000"); AL, 8D ");
} CMP80386Dlg :: Triang (int left, int top, int trend, bool On)
{POINT oldbrush; * oldpen; (On)
{Pen.CreatePen (PS_SOLID, 1, RGB (200,0,0));. CreateSolidBrush (RGB (200,0,0));
}
{Pen.CreatePen (PS_SOLID, 1, RGB (0,0,0));. CreateSolidBrush (RGB (0,0,0));
} = dc.SelectObject (& Pen); = dc.SelectObject (& Brush);. SetBkMode (TRANSPARENT); (trend)
{case 1: dc.Polygon (p, 3);; 2: dc.Polygon (p2, 3);; 3: dc.Polygon (p3, 3);; 4: dc. Polygon (p4, 3);;
}. SelectObject (oldpen);. DeleteObject ();. SelectObject (oldbrush);. DeleteObject ();
} CMP80386Dlg :: DrawLine (int name, bool status, int thickness)
{POINT ps1 [] = {{30,360}, {493,360}} ;//Шина Аps2 [] = {{30,140}, {493,140}} ;//Шина З ps3 [] = { {30,30}, {580,30}} ;//ША ps4 [] = {{30,50}, {580,50}} ;//ШУ ps5 [] = {{30,70}, {580 , 70}} ;//ШД [] = {{515,85}, {525,70}, {535,85}, {53...