91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

acllib.h acllib.c 用于教學(xué) 圖形界面編程

資源截圖

代碼片段和文件信息

/*
????This?program?is?free?software:?you?can?redistribute?it?and/or?modify
????it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
????the?Free?Software?Foundation?either?version?3?of?the?License?or
????(at?your?option)?any?later?version.

????This?program?is?distributed?in?the?hope?that?it?will?be?useful
????but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
????MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
????GNU?General?Public?License?for?more?details.

????You?should?have?received?a?copy?of?the?GNU?General?Public?License
????along?with?this?program.??If?not?see?.
*/
////////////////////////////////////////////////////////////////
//??ACLLib?-?Advanced?C?Lab?Library
//????Ver.?2014-07
// For?Students‘?Lab?at?Zhejiang?University
// Created? 2008?by?Gao?Yuan
// Modified? 2009?by?Cui?Liwei
// ????2010?by?Lan?Huidong
// Revised 2012?by?Li?Rui
//??Modified??2014?by?Weng?Kai?for?MOOC
////////////////////////////////////////////////////////////////

#define?_CRT_SECURE_NO_WARNINGS
#define?_CRT_NON_CONFORMING_SWPRINTFS

#define?CINTERFACE

#ifdef?_UNICODE
#undef?_UNICODE
#endif
#ifdef?UNICODE
#undef?UNICODE
#endif

#include?“acllib.h“

#include?
#include?
#include?

#ifdef?_MSC_VER
#pragma?comment(lib“winmm.lib“)
#pragma?comment(lib“msimg32.lib“)
#endif

#ifdef?_DEBUG
#define?ACL_ASSERT(_expressionerrStr)?(void)(?(!!(_expression))?||?(acl_error(errStr)0)?)
#else
#define?ACL_ASSERT(flagerrStr)?((void)0)
#endif

#define?ACL_ASSERT_HWND?ACL_ASSERT(g_hWnd!=0?\
“You?should?call?function?\“initWindow(...)\“?befor?use?function?\““?__FUNCTION__?“\““?)
#define?ACL_ASSERT_BEGIN_PAINT?ACL_ASSERT(g_hmemdc!=0?\
“You?should?call?function?\“beginPaint()\“?befor?use?function?\““?__FUNCTION__?“\““?)

//?f
int?Setup(void);

const?char?g_wndClassName[]?=?“ACL_WND_CLASS“;
const?char?g_libName[]?=?“ACLLIB“;

HINSTANCE?g_hInstance;

HWND?g_hWnd?=?NULL;
HDC?g_hmemdc?=?NULL;
HBITMAP?g_hbitmap?=?NULL;

int?g_wndHeight;
int?g_wndWidth;

HPEN?g_pen?=?NULL;
ACL_Color?g_penColor?=?BLACK;
int?g_penWidth?=?1;
int?g_penstyle?=?PEN_style_SOLID;

HBRUSH?g_brush?=?NULL;
ACL_Color?g_brushColor?=?BLACK;
int?g_brushstyle?=?BRUSH_style_SOLID;

HFONT?g_font?=?NULL;
char?g_fontName[256]?=?“宋體“;
int?g_textSize?=?12;
ACL_Color?g_textColor?=?BLACK;
ACL_Color?g_textBkColor?=?WHITE;

int?g_caretHeight?=?12;
int?g_caretWidth?=?6;
int?g_caretX?=?0;
int?g_caretY?=?0;

int?g_soundID?=?0;

KeyboardEventCallback?g_keyboard?=?NULL;
MouseEventCallback?g_mouse?=?NULL;
TimerEventCallback?g_timer?=?NULL;
CharEventCallback?g_char?=?NULL;

LRESULT?CALLBACK?WndProc(HWND?UINT?WPARAM?LPARAM);

//
void?acl_error(char?*errStr)
{
MessageBoxA(g_hWnderrStrg_libNameMB_IConerror);
exit(0);
}

//
int?WINAPI?WinMain(HINSTANCE?hInstance?HINSTANCE?hPrevInstance?PSTR?szCmdLine?int?iCmdShow)
{
MSG??????????msg;
WNDCLASSA?????wndclass;
????
g_hInstance?=?hInstance;
g_hWnd?=?NULL;
????g_key

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????6249??2014-08-08?10:22??acllib.h

?????文件?????877505??2015-06-09?17:16??1?ACLLib.pdf

?????文件?????188026??2015-06-09?17:17??acllib_doc.pdf

?????文件??????18726??2014-08-08?10:22??acllib.c

-----------?---------??----------?-----??----

??????????????1090506????????????????????4


評(píng)論

共有 條評(píng)論

相關(guān)資源