Results 1 to 4 of 4

Thread: Placing Image on a window

  1. #1
    amac
    Guest

    Exclamation Placing Image on a window

    How do I place a image on a window?

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Use the Picture Property of the window

  3. #3
    amac
    Guest
    you right i could do that if i was using VB. And yes i know this is a VB forum, but the Win32 API also applies to other languages as well (C++).

    So my question still stands... how can I add an image to a window?

    I was looking into the BitBlt() function, and I noticed that one of the parameters is a handle to a device context. I am not exactly sure about how to create a DC with an image on it. And yes I do know about the CreateDC() function...

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Use the SelectObject to assign a picture to a hdc.

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