> {= 1; rect;. left = 150;. top = 50;. right = 550;. bottom = 400; (hwnd, & rect, 1);
} MessageBox (hwnd, "Не сформована матриця", "Помилка!", 0);;
} IDSAVE:
{initialdir [MAX_PATH +1]; (initialdir, MAX_PATH +1); (& of, 0, sizeof (of));. lStructSize = sizeof (of);. lpstrFilter = " Текстові файли (*. txt) 0 *. txt 0 "" Всі файли (*. *) 0 *. * 0 "; збереження файлу "; (GetSaveFileName (& sf)! = 0) save_matr (file_name, matr, k);
else MessageBox (hwnd, "Не сформована матриця", "Помилка!", 0);
}: return 0;
} WM_PAINT: * xe, * ye, xc, yc, i, j;
{= new int [k]; = new int [k];
{[i] = 150 * cos (f * i) +360; [i] = 150 * sin (f * i) +230;
} _pen = (HPEN) SelectObject (hdc, hpen); _brush = (HBRUSH) SelectObject (hdc, hbrush); (i = 0; i
{(matr [i] [j]> 0)
{(hdc, xe [i], ye [i], 0); (hdc, xe [j], ye [j]); (str, "% d", matr [ i] [j]); = (xe [i] + xe [j] -10)/2; = (ye [i] + ye [j] -10)/2; (hdc, xc, yc, str, 1);
}
} (i = 0; i
} (hwnd, & ps); (hpen); (hbrush); [] xe, ye;
} EndPaint (hwnd, & ps);: return 0;
} 1;
} WINAPI WinMain
(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
{
DialogBox (0, MAKEINTRESOURCE (IDD_DIALOG), 0, MyDlgProc);
}
1.