1 ACLLib
1 ACLLib
1 ACLLib
ACLLib
Win32API
.c
Dev C++ MinGW
GPL
Windows
.h
github
MSVC
2009
2010
2012
2008
Windows
Windows API
32
Windows
Win32API.
C
C
Windows
Windows
main()?
main()
main
main
WinMain()
WinMain()
#include <windows.h>
int WINAPI WinMain(
HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note",
MB_OK);
return 0;
}
acllib
DC
WNDCLASSEX wc;
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = 0;
wc.lpfnWndProc = WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(NULL,
IDI_APPLICATION);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW
+1);
wc.lpszMenuName = NULL;
wc.lpszClassName = g_szClassName;
wc.hIconSm = LoadIcon(NULL,
IDI_APPLICATION);
DC
DC
while(GetMessage(&Msg, NULL, 0,
0)) {
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
return Msg.wParam;
DC
DC
DC
DC
DC
Win32API
WinMain()
Windows OS
Windows
ACLLib
WinMain()
Windows OS
Setup()
Windows
)
(
Setup()
)
(
Setup()
Setup()
Dev C++
ACLLib
Dev C++
Windows
Application
acllib.h
acllib.c
libwinmm.a
Dev
MinGW/lib
"C:/Program Files/Dev-Cpp/MinGW32/lib/libwinmm.a"
"C:/Program Files/Dev-Cpp/MinGW32/lib/libmsimg32.a"
"C:/Program Files/Dev-Cpp/MinGW32/lib/libkernel32.a"
"C:/Program Files/Dev-Cpp/MinGW32/lib/libuser32.a"
"C:/Program Files/Dev-Cpp/MinGW32/lib/libgdi32.a"
"C:/Program Files/Dev-Cpp/MinGW32/lib/libole32.a"
"C:/Program Files/Dev-Cpp/MinGW32/lib/liboleaut32.a"
"C:/Program Files/Dev-Cpp/MinGW32/lib/libuuid.a"
main.c
ACLLib
Windows
(0,0)
(0,0)
(639,479)
scanf
initConsole();
printf
scanf printf
/
void beginPaint();
void endPaint();
RGB(r,g,b)
> RGB(255,0,0)
*/
void chrod(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int
nXRadial1, int nYRadial1, int nXRadial2, int nYRadial2);
void ellipse( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
void pie(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int
nXRadial1, int nYRadial1, int nXRadial2, int nYRadial2);
void setBrushColor(ACL_Color color);
void setBrushStyle(ACL_Brush_Style style);
BRUSH_STYLE_SOLID = -1,
BRUSH_STYLE_HORIZONTAL, /* ----- */
BRUSH_STYLE_VERTICAL, /* ||||| */
BRUSH_STYLE_FDIAGONAL, /* \\\\\ */
BRUSH_STYLE_BDIAGONAL, /* ///// */
BRUSH_STYLE_CROSS, /* +++++ */
BRUSH_STYLE_DIAGCROSS, /* xxxxx */