80 likes | 186 Views
Windows programming Graphic Library. SNPL. Application program. initialization. Kernel. Exchange Message. Basic Structure Windows Programming. 1.part of initialization 2.part of exchange message for communicate with kernel. SNPL. WinMain. WndProc. WinMain and WndProc.
E N D
Windows programming Graphic Library SNPL
Application program initialization Kernel Exchange Message Basic Structure Windows Programming 1.part of initialization 2.part of exchange message for communicate with kernel SNPL
WinMain WndProc WinMain and WndProc • Manage initial function and initial message Part of initialize kernel SNPL
Using Visual c++ 1.File New 2.Project 3.Win32 Application 4.Project name 5.a typical”Hello world”application 6.finish Ok 7.Fileview 8.source files 9.example.cpp SNPL
Compile and Run 1.F7 compile 2.Ctrl+F5 run SNPL
WinMain MakeWindow INITIAL transferwindow Graphic Library Executive Make windows and show screen in monitor Start Program Initialize shape of graph Be transmitted from message to WndPro SNPL
RECTANGLE ticxy Hvlabel plot draw Header File Draw rectangle Draw tic Draw label outside x , y axis of coordinates The value of coordinates get and then mark with a point Draw line between point and point SNPL
Using Graphic Library 1.WinMain 2.#include “graph.h” 3. INITIAL() 4.set variable 5.Set function in graph.h 6.F7 compile 7.ctrl+F5 run Application program SNPL