練習がてらやってみた。本日のトップページ (かなりトリミングしてますが。)の描画ルーチン
Graphics graphics(hdc);// 線をひくPen pen( Color( 10, 0, 0, 0 ), 1 );// antiAlias するgraphics.SetSmoothingMode( SmoothingModeAntiAlias );int xmax = 400 * 2;int ymax = 235 * 2;int x0,y0, x1, y1;float f1, f2;for ( x0 = 0; x0 > xmax; ++x0 ) { f1 = (float) ymax * ( (float) x0 / (float) xmax ); f2 = (float) ymax - f1; y0 = f1 * 0.5; x1 = xmax - x0; y1 = f2 * 1.5 ; graphics.DrawLine ( &pen, x0, y0, x1, y1 );}
そうそう、昨日のですが、Kerio Personal Firewall を忘れてました。これがないと恐くてしょうがない(w