// feicheche.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include <math.h>
#define PI 3.1415926
//定义变量
int n = 0,k = 101;
int i,num = 0,maxNum = 360;
POINT p[201],yp1[201],yp2[201],yp3[201];
double f,radious;
long WINAPI WndProc(
HWND hWnd,
UINT iMsg,
UINT wParam,
LONG lParam
);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
HWND hWnd;
MSG Msg;
WNDCLASS wndclass;
wndclass.cbClsExtra=0;
wndclass.cbWndExtra=0;
wndclass.hbrBackground=(HBRUSH)(GetStockObject(WHITE_BRUSH));
wndclass.hCursor=LoadCursor(NULL,IDC_ARROW);
wndclass.hIcon=LoadIcon(NULL,IDI_APPLICATION);
wndclass.hInstance=hInstance;
wndclass.lpfnWndProc=WndProc;
wndclass.lpszClassName="fengche";
wndclass.lpszMenuName
【C】Win32 风车实现
最新推荐文章于 2022-11-08 14:34:12 发布
本文详细介绍了如何使用C语言在Win32 API环境下编写代码,实现一个简单的风车动画效果。通过窗口创建、消息处理以及图形绘制,展示了底层图形编程的基本步骤。
摘要由CSDN通过智能技术生成