Click to See Complete Forum and Search --> : Picture


harish Kota
May 3rd, 1999, 03:23 PM
hi all

I want to set a bitmap (present in the resource) on to the from view. I tried using CPictureHolder class i seem to be missing something as nothing appers on the form view

Any ideas will be appreciated.
harish

Troy T
May 3rd, 1999, 05:05 PM
There are many ways to accomplish what you're shooting for, one of them is to create (or import) a bitmap into your resource file, and name it something like IDB_CIRCLE or something similar for your needs. Then go to the actual dialog that you are wanting to add the image to, and select the picture resource. Then put an item of that type onto the form view, or dialog resource. After you've done that, view the properties for that image, and select the "BITMAP" setting, and then choose the bitmap resource "IDB_CIRCLE" for example. That will get a bitmap onto your CFormView derived class, or your dialog. Good luck!

- Troy

harish Kota
May 4th, 1999, 08:33 AM
hi troy

i have already achieved that What i want is to programmaticaly change this bitmap is it possible and how ???
harish

Troy T
May 4th, 1999, 09:05 AM
Lookup "Win32 functions by category" in your MSDN Help index. Then search for Bitmap functions, and you should be given many things that you can do. :) Good luck..

- Troy

harish Kota
May 4th, 1999, 09:23 AM
hi troy

i did do it using SetBitmap but it did not work and later going through the MSDN i found that it does not display as per article

Article ID: Q151378

harish