List Info

Thread: Images & Windows resource files




Images & Windows resource files
user name
2006-04-22 00:32:32

Im building my apps using MS Visual Studio.
I want to have the images im using in dialogs compiled into my apps binaries via the
standard windows resource files.

Whats the best way to handle this with DialogBlocks?

Ive noticed DialogBlocks creates a resource file on creating a new app. Can
DialogBlocks specfiy the images in that file and then set the image type to
wxBITMAP_TYPE_xxxx_RESOURCE ?

Thanks.
Images & Windows resource files
user name
2006-04-22 02:45:45
<mwpsoft...> wrote:
&gt;
> Hi all,
>
> Im building my apps using MS Visual Studio.
&gt; I want to have the images im using in dialogs compiled into my apps
> binaries via the standard windows resource files.
&gt;
> Whats the best way to handle this with DialogBlocks?
>
> Ive noticed DialogBlocks creates a resource file on creating a new
> app. Can DialogBlocks specfiy the images in that file and then set
> the image type to wxBITMAP_TYPE_xxxx_RESOURCE ?
>
> Thanks.

I am only using an icon in my .rc and it looks like this:
<;handle> <type&gt; <file&gt;
AFL16 icon AFL_ICON.ico

In my frame code:
#include "wx/gdicmn.h&quot;
wxIcon icon1(wxICON(AFL16));
SetIcon(icon1);



Images & Windows resource files
user name
2006-04-22 06:04:03

At 01:32 22/04/2006, you wrote:
&gt;Hi all,
>
>Im building my apps using MS Visual Studio.
&gt;I want to have the images im using in dialogs compiled into my apps
>binaries via the
>standard windows resource files.
&gt;
>Whats the best way to handle this with DialogBlocks?
>
>Ive noticed DialogBlocks creates a resource file on creating a new app. Can
>DialogBlocks specfiy the images in that file and then set the image type to
>wxBITMAP_TYPE_xxxx_RESOURCE ?

Not automatically, I'm afraid, but you could tailor the generated
GetBitmapResource to load the resources you manually put in the .rc file,
putting the custom code at the front of the comment block or
removing the comment block.

Regards,

Julian



[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )