Results 1 to 7 of 7

Thread: CreateWindowEx

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    CreateWindowEx

    Sorry guys, this is probably an easy one but I'm tired...

    How can I create a PictureBox / Image / Whatever can display a GIF file with transparency, through the API (assuming CreateWindowEx here)?

  2. #2
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  3. #3

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Erm no.. I have to use the API :-)

    The point is that I'm going to create a new window so I can add it to other window's title bars... that reminds me a window can't be transparent except when using layer effects, damn!

    Would probably be easier to BitBlt a picture there, hm..

  4. #4
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    Yes, BitBlt it like you would a sprite (with the use of a mask).

    (Since I recall you're fairly advanced in GDI/Graphics, I'll assume you know what I mean)

  5. #5

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Yes I am. Hoped there could be some workaround since BitBlt is still eating more performance than some internal windows stuff but guess 16x16 pixel won't hurt.

    Well I got nearly everything to work now, in the worst case I'll just use a standard button instead of icons

  6. #6

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    btw I sent you a PM Megatron, hope you can give me a clue..

  7. #7
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    Whoops, didn't notice. I'll check that now

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