Results 1 to 11 of 11

Thread: graphics

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    graphics

    That whole skinning thread has inspired me. The only thing I need to know is how to put pictures into a static. I have an example but every time the window refreshes it's gone, and I would like the biitmap to be from a file instead drawn by me. How do I connect my rc file to a bitmap? Thanks all

  2. #2
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Smile

    I think you need to insert this flag when calling the CreateWindowEx to create your static:
    Code:
    SS_BITMAP
    That should allow you to enter a bitmap
    hope it works
    Amon Ra
    The Power of Learning.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    so If I put SS_BITMAP into my static how would I tell it which resource to use?

  4. #4
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Unhappy hmmmm...

    I am not sure(never worked with resources) but there should be a function that moves a bitmap to it(maybe BitBlt??) and you would pass the resource ID of the bitmap. Parksie should know this
    Amon Ra
    The Power of Learning.

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Steve - the property sheet changes
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Unhappy Parksie...

    So, did you find what is wrong in my program(FindWindow...)?
    Amon Ra
    The Power of Learning.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    property sheet? Im confused

  8. #8
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Let me see if I can get this mess sorted out.

    You have a window you are creating with CreateWindowEX

    You want to have the window have a static image on it rather than BitBlting it every time?

    You dont like BitBlting it because it desappears on a redray?

    Am I right?
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    I'll do any method that keeps the picture on the screen.

  10. #10
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Do you know how to use bitblt?
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Not really but I think the two of us have already had a long thread on this.....let me find it....I still have the project from that too.

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