随笔分类 - Windows与图形
DEV C++的Windows调用,etc...
摘要:#include <windows.h>LRESULT APIENTRY WndProc(HWND, UINT, WPARAM, LPARAM); //窗口函数BOOL ckzc(HINSTANCE); //注册窗口类函数BOOL ckcj(HINSTANCE, int); //创建窗口函数HINSTANCE hInst; //当前句柄HWND hWndMain; //窗口句柄int x=100, y=100, dx=20, dy=0, cxClient, cyClient, color=255;int A[100], B[100], xs, ys, flag, len=3, dl
阅读全文
摘要:#include <windows.h>LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { static int cxClient, cyClient, draw=0, started=0, LineWide=0, R=0, G=0, B=0; static HPEN hPen; static HDC hdc ; int i ; static PAINTSTRUCT ps ; switch(Message) { ...
阅读全文
摘要:小海豚学NOIP,老师说要用DEV C++。小海豚喜欢画图,记得以前用C#编些程序给她看。可前一阵打开看,我的免费Visual Studio过期了。可恶的Microsoft ,不想用盗版难道就要每个月就下载一次?于是就用DEV C++的Windows调用吧。这里还有一个插曲:我搜DEV C++如何作图,结果找到了CSDN,花4个点下了winbgim,然后才想起直接用Windows调用岂不更正宗些?如图:这样就建立了名为tstdraw的工程。 1 #include <windows.h> 2 3 LRESULT CALLBACK WndProc(HWND hwnd, UINT Mes
阅读全文

浙公网安备 33010602011771号