CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Picture

  1. #1
    Join Date
    Apr 1999
    Posts
    5

    Picture

    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


  2. #2
    Join Date
    May 1999
    Location
    WA
    Posts
    65

    Re: Picture

    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

  3. #3
    Join Date
    Apr 1999
    Posts
    5

    Re: Picture

    hi troy

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


  4. #4
    Join Date
    May 1999
    Location
    WA
    Posts
    65

    Re: Picture

    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

  5. #5
    Join Date
    Apr 1999
    Posts
    5

    Re: Picture

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured