Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Own window design from .png with shadows  (Read 8387 times)

0 Members and 2 Guests are viewing this topic.

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: Own window design from .png with shadows
« Reply #15 on: March 07, 2016, 02:56:30 pm »
Here is the code you need:
(click to show/hide)

The attached result.png shows how it looks when running the program.
TGUI: C++ SFML GUI

chadushkind

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Own window design from .png with shadows
« Reply #16 on: March 07, 2016, 07:55:30 pm »
Works perfect! Thank you very much. But can you explain about BLENDFUNCTION, DC, BITMAPS, etc. or give a good article about it all? And why UpdateLayeredWindow need to call not in cycle?
« Last Edit: March 07, 2016, 07:57:23 pm by chadushkind »

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: Own window design from .png with shadows
« Reply #17 on: March 07, 2016, 08:12:15 pm »
I can't give a good explanation on these things since I barely know enough myself to get it working.
If you just want to know how a specific structure or function looks like you should check the MSDN documentation, everything is explained in detail there.

Quote
And why UpdateLayeredWindow need to call not in cycle?
That is just how it works. By calling that function you are basically giving control of the rendering to windows.
TGUI: C++ SFML GUI