Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Any MFC ActiveX Control is there for Picture Box?
Kindly help me.
Posted

1 solution

You never really need such thing as PictureBox (do you know it from VB6? .NET?). These control is totally redundant; it was created for simplification of the most primitive image-showing chores.

With MCF, you can render graphics in any control. You need to handle the Windows message WM_PAINT. This is what you really need:
http://msdn.microsoft.com/en-us/library/01c9aaty%28v=vs.110%29.aspx[^].

You can derive the class CWnd to obtain your control.

—SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Mar-13 3:31am    
And please, don't post your comments as "solutions". This will be considered as abuse.
—SA
Rajeshkumar Ramasamy 22-Mar-13 4:51am    
Sergey, I want to draw (pixel by pixel) in a form. It take time to draw pixel by pixel (range : 1024 x 1024). Any Tools/Controls are there for draw?
Sergey Alexandrovich Kryukov 22-Mar-13 8:35am    
Who told you "pixel by pixel"?
—SA
Sergey Alexandrovich Kryukov 22-Mar-13 8:36am    
Please see the CodeProject article:
http://www.codeproject.com/Articles/356/Bitmap-Basics-A-GDI-tutorial

—SA

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