Click here to Skip to main content
14,271,339 members
Rate this:
Please Sign up or sign in to vote.
See more:
Any MFC ActiveX Control is there for Picture Box?
Kindly help me.
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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
   
Comments
   
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?
   
Who told you "pixel by pixel"?
—SA
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100