C语言花朵代码的
.
C语言——绘画花朵
代码部分
#include
#include
#define PI 3
LRESULT CALLBACK WindowProcedure ( HWND, UINT, WPARAM, LPARAM );
void OnPaint ( HDC );
void DrawLine ( HDC, int, int, int, int );
void DrawFlower ( HDC, int, int, COLORREF );
void DrawTie ( HDC, int, int, COLORREF );
int WINAPI WinMain ( HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil )
{
char szClassName[] = TEXT ( "DrawFlower" );
HWND hwnd;
MSG msg;
WNDCLASSEX wc = { 0 };
wc.hInstance = hThisInstance;
wc.lpszClassName = szClassName;
wc.lpfnWndProc = WindowProcedure;
wc.style = CS_DBLCLKS;
wc.cbSize = sizeof ( WNDCLASSEX );
wc.hIcon = LoadIcon ( NULL, IDI_APPLICATION );
wc.hIconSm = LoadIcon