#include
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
char arg[200]={0};
arg[0]='\"';
strcpy(arg+1, argv[0]);
int len=int(strlen(arg));
arg[len]='\"';
HWND hWnd=FindWindow(NULL, arg);
HDC hDC=GetDC(hWnd);
HPEN hPen, hOldPen;
hPen=CreatePen(PS_SOLID, 2, 0x00ff00);
hOldPen=(HPEN)SelectObject(hDC, hPen);
Arc(hDC, 100, 100, 300, 300, 350, 500, 350, 500);
SelectObject(hDC, hOldPen);
cout<<"画圆形:"<
return 0;
}
上面 的肯定不行!VC 不包含TC的图形函数库 !
是什么开发环境,是MFC还是纯DOS?