Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loading a picture to picture control.

112 views
Skip to first unread message

Eitan M

unread,
Jan 29, 2007, 3:07:44 AM1/29/07
to
Hello,
How can I load a picture into a picture control ?
Need sample code, please.

Thanks :)


Check Abdoul

unread,
Jan 29, 2007, 3:21:14 AM1/29/07
to
See if the following link helps you

http://www.functionx.com/visualc/controls/picture.htm

Cheers
Check Abdoul
---------------------

"Eitan M" <no_spam_please@nospam_please.com> wrote in message
news:uYHBly3Q...@TK2MSFTNGP03.phx.gbl...

Eitan M

unread,
Jan 29, 2007, 3:25:39 AM1/29/07
to
Thanks,
but this sample not loading any file (bitmap).

Need some sample for loading file into the picture-control, please.

Thanks :)


Guido Franzke

unread,
Jan 29, 2007, 10:16:56 AM1/29/07
to

AliR (VC++ MVP)

unread,
Jan 29, 2007, 10:40:20 AM1/29/07
to
How about this.

CImage Image;
Image.Load(Filename);

m_PictureControl.SetBitmap(Image.Detach());

AliR.
Note: CImage can load JPEG, GIF, BMP, and PNG files only.


"Eitan M" <no_spam_please@nospam_please.com> wrote in message

news:%23xddl83...@TK2MSFTNGP02.phx.gbl...

Ajay Kalra

unread,
Jan 30, 2007, 9:26:30 AM1/30/07
to
Go to codeguru/codeproject and you will find lot of useful examples.

--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com


"Eitan M" <no_spam_please@nospam_please.com> wrote in message

news:%23xddl83...@TK2MSFTNGP02.phx.gbl...

0 new messages