Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows programming Graphic Library SNPL. Basic Structure Windows Programming SNPL Application program initialization Exchange Message 1.part of initialization.

Similar presentations


Presentation on theme: "Windows programming Graphic Library SNPL. Basic Structure Windows Programming SNPL Application program initialization Exchange Message 1.part of initialization."— Presentation transcript:

1 Windows programming Graphic Library SNPL

2 Basic Structure Windows Programming SNPL Application program initialization Exchange Message 1.part of initialization 2.part of exchange message for communicate with kernel Kernel

3 Part of initialize kernel SNPL WinMain and WndProc WndProcWinMain Manage initial function and initial message

4 Using Visual c++ SNPL 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

5 SNPL Compile and Run 1.F7 compile 2.Ctrl+F5 run

6 Start Program SNPL Graphic Library Executive transferwindowINITIALMakeWindowWinMain Make windows and show screen in monitor Initialize shape of graph Be transmitted from message to WndPro

7 SNPL Header File RECTANGLE plot ticxy Hvlabel draw 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

8 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 Using Graphic Library


Download ppt "Windows programming Graphic Library SNPL. Basic Structure Windows Programming SNPL Application program initialization Exchange Message 1.part of initialization."

Similar presentations


Ads by Google