how to drawline on picture box in MFC/C++?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
i need to drawline on picture box in MFC/C++ how can do it? please give some tip or hint to me thanks so much....
-
i need to drawline on picture box in MFC/C++ how can do it? please give some tip or hint to me thanks so much....
- Override CStatic to give you an MFC class that subclasses the picture box.
- Add an OnPaint handler to that new class.
- In the OnPaint handler, get a DC with BeginPaint
- Use MoveTo[^] and LineTo[^] to draw a line
- Add a class variable (of the type you created in step 1) for the picture box in your parent window
drawline on picture box - DONE!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p