上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 164 下一页
摘要: Gdiplus::FontFamily fontfm(_T("微软雅黑")); Gdiplus::Font font(&fontfm, 24, Gdiplus::FontStyleBold, Gdiplus::UnitPixel); /* 参数1:FontFamily family 字体,如我们常见 阅读全文
posted @ 2023-05-12 20:52 天子骄龙 阅读(483) 评论(0) 推荐(0)
摘要: HDC hdc = ::GetDC(m_hWnd); Graphics graphics(hdc); SolidBrush brush(Color(150,0,0,255)); graphics.FillEllipse(&brush,10,10,200,100);//填充椭圆 /* 格式: Stat 阅读全文
posted @ 2023-05-12 05:37 天子骄龙 阅读(90) 评论(0) 推荐(0)
摘要: 打开执行程序 SHELLEXECUTEINFO ShellInfo; /* typedef struct _SHELLEXECUTEINFO { DWORD cbSize; 存储该结构的长度,以字节为单位 ULONG fMask; 一个标志数组,用来设置其他成员的有效性 SEE_MASK_CLASS 阅读全文
posted @ 2023-05-11 17:06 天子骄龙 阅读(293) 评论(0) 推荐(0)
摘要: TCHAR path[] = _T("C:\\WINDOWS\\NOTEPAD.EXE C:\\123.txt"); PROCESS_INFORMATION info; STARTUPINFO si = { sizeof(si) }; BOOL b = CreateProcess(NULL, pat 阅读全文
posted @ 2023-05-11 12:28 天子骄龙 阅读(254) 评论(0) 推荐(0)
摘要: int iRet = 0; //char* szPath = "C:\\WINDOWS\\NOTEPAD.EXE"; char *szPath = "C:\\WINDOWS\\NOTEPAD.EXE C:\\123.txt"; iRet = WinExec(szPath, SW_SHOW); /* 阅读全文
posted @ 2023-05-11 07:48 天子骄龙 阅读(57) 评论(0) 推荐(0)
摘要: //int iRet = (int)ShellExecute(m_hWnd, _T("open"), _T("C:\\WINDOWS\\NOTEPAD.EXE"), _T("C:\\123.txt"), NULL, SW_SHOW);//创建进程-打开记事本文件 /* 运行一个外部程序,或者打开一个 阅读全文
posted @ 2023-05-11 07:23 天子骄龙 阅读(185) 评论(0) 推荐(0)
摘要: HDC hdc = ::GetDC(m_hWnd); BITMAP bm; HBITMAP hbmp = LoadBitmap(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_BITMAP1));//从资源中读取位图 GetObject(hbmp, sizeo 阅读全文
posted @ 2023-05-11 05:29 天子骄龙 阅读(198) 评论(0) 推荐(0)
摘要: ExitProcess结束进程 TerminateProcess终止进程 不同程序进程间通信 GetCurrentProcess获取当前进程的伪句柄 IsWow64Process 32位进程是否运行在64位操作系统中 CreateProcess创建一个新的进程和它的主线程并执行外部程序 ShellE 阅读全文
posted @ 2023-05-10 14:10 天子骄龙 阅读(22) 评论(0) 推荐(0)
摘要: HDC hdc = ::GetDC(m_hWnd); Graphics graphics(hdc); Gdiplus::Pen pen(Color(255, 0, 0, 255), 3); LinearGradientBrush linGrBrush(Point(10, 10), Point(200 阅读全文
posted @ 2023-05-09 05:57 天子骄龙 阅读(53) 评论(0) 推荐(0)
摘要: HDC hdc = ::GetDC(m_hWnd); Graphics graphics(hdc); Gdiplus::Pen pen(Color(255, 0, 0, 255),3); Status status=graphics.DrawLine(&pen,10,10,200,200);//绘制 阅读全文
posted @ 2023-05-09 05:34 天子骄龙 阅读(188) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 164 下一页