Adding a Bitmap to a Dialog Box In Borland 5.0 Using Resource Workshop

Adding a Bitmap to a Dialog Box In Borland 5.0 Using Resource Workshop

Post by Randy Yat » Wed, 11 Sep 1996 04:00:00



I have been fiddling for HOURS trying to get this to happen. I simply
want to place a bitmap on my dialog box. I have successfully added
the bitmap resource to my .rc file, but I don't see how to get that
bitmap onto the dialog box. When I'm in the dialog editor, it seems
that you should select Dialog | Insert New Control..., then select
"Static Picture".

The question is, how does one specify that the bitmap resource is the
picture to show with the static picture control? I've tried setting
the caption and ID of the picture properties to everything various
combinations of what seems might make sense and nothing seems to
work.

Thanks for any input you can provide. Direct e-mail is welcomed.

think that ma

 
 
 

Adding a Bitmap to a Dialog Box In Borland 5.0 Using Resource Workshop

Post by Norbert Hach » Fri, 13 Sep 1996 04:00:00



> I have been fiddling for HOURS trying to get this to happen. I simply
> want to place a bitmap on my dialog box. I have successfully added
> the bitmap resource to my .rc file, but I don't see how to get that
> bitmap onto the dialog box. When I'm in the dialog editor, it seems
> that you should select Dialog | Insert New Control..., then select
> "Static Picture".

> The question is, how does one specify that the bitmap resource is the
> picture to show with the static picture control? I've tried setting
> the caption and ID of the picture properties to everything various
> combinations of what seems might make sense and nothing seems to
> work.

> Thanks for any input you can provide. Direct e-mail is welcomed.

> think that ma

Hi Randy,

The way I usually do it, is I load my bitmap resource from within my
dialog procedure (in response to a WM_INITDIALOG message)and I blit it
into the static control. You can easily obtain the hwnd of the static
control from within your dialog box function by using GetDlgItem.

Hope this helps, good luck.

 
 
 

1. Borland Resource Workshop - Problem with bitmapped resources

    I have also had the same thing happen to me.  I have found another way
of getting the screen to redraw is by resizing the bitmap.  My config is
a 486/33,340M HD, 8M RAM, ATI Ultra with drivers dated 4/22/92,Win 3.1,
4DOS 4.0 running on DOS 5.0, Award BIOS.

   Any other ATI Ultra users seen this?  Maybe it is a driver problem??

Andy

2. FS: sparc 5 systems

3. Change Properties of Dialog Box created by Borland Resource Workshop

4. What _precisely_ does track mean in Quark?

5. Flakey dialog box tab stops and Borland's Resource Workshop - test.zip (0/1)

6. GSOS

7. Flakey dialog box tab stops and Borland's Resource Workshop - test.zip (1/1)

8. HELP?:Teamwork Graphics - Exporting to WP51

9. Dialog box resource edit box problem (Borland C++ 3.1)

10. Including a BitMap resource in Borland C++ 5.0

11. Borland C++ Resource Workshop (BITMAP PALETTES)

12. Visual C++ 5.0 Power Add-Ins