Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
as the title says, the program runs on the win32 platform;
like the powerpoint file demonstration,the teacher could use mouse drawing,if the (graphics)lines are useless,they could be selected and deleted;
anyone could help me analyse the tech-point or API using? thank you !

What I have tried:

I have no ideas ...so sorry..asking for solution,thanks once more!
Posted
Updated 28-Mar-16 3:54am

You can use Windows GDI[^] to draw lines, curves etc. See Win32 Programming - FunctionX[^] for some useful tutorials.
 
Share this answer
 
You can take Diagram Editor[^] as an example and extend its functionality based on the provided base classes

Or DrawCLI sample (in Visual Studio Samples Pack) can be another example as a startup project

But these two projects are based on MFC ,if use of MFC is a problem then you can easily port Diagram Editor to Win32

For hit testing on irregular shapes i would recommend to use of GDI+ instead of GDI
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900