Hi,
One method is to use the Static Control, in particular:
<extract from MSDN>
Image Static Control
An image static control can display bitmaps, icons (including animated
icons), or enhanced metafiles. The type of graphic that a particular static
control displays depends on the control's style: SS_BITMAP, SS_ICON, or
SS_ENHMETAFILE. An application specifies the style when it creates the
control and also specifies a handle to the bitmap, icon, or metafile for the
control to display. After the control is created, an application can
associate a different graphic with the control by sending it an STM_SETIMAGE
message, specifying a handle to the new graphic object. An application can
retrieve a handle to the graphic object currently associated with a static
control by sending it an STM_GETIMAGE message. An application sends messages
to a static control by using the SendDlgItemMessage function.
</extract from MSDN>
Another method is to use GDI. IMHO, this is more flexible. You can display
any image type any where.
Regards,
Yeoh
http://www.yeohhs.com
----- Original Message -----
From: "Ioannis Vranos" <iv...@em...>
To: "Dev-C++ Mailing List" <dev...@li...>
Sent: Saturday, May 03, 2003 6:55 AM
Subject: [Dev-C++] Stand alone image on a form
> If I want to add staand alone images on a form (not part of a toolbar or
> something), is there some control specific for that or I have to use GDI
> only?
>
>
>
>
>
> Regards,
>
> Ioannis Vranos
>
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL 1: http://run.to/noicys
> * Alternative URL 2: http://www.noicys.cjb.net
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|