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

Author Topic: WM_ERASEBKGND message  (Read 2533 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
WM_ERASEBKGND message
« on: May 02, 2013, 05:40:42 pm »
Hi

I don't think SFML has any support for this Windows message....what is the best way to handle unsupported messages?? If I add another poll event check, I guess my SFML app will miss events??

Thanks
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: WM_ERASEBKGND message
« Reply #1 on: May 02, 2013, 06:03:00 pm »
There's currently no way to handle OS messages at the user level.

What do you want to do with WM_ERASEBKGND?
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Re: WM_ERASEBKGND message
« Reply #2 on: May 02, 2013, 06:27:21 pm »
Another application posts this message and I have to clear our screen when I receive it. I guess I have to do a special SFML version for us to handle this message? :(

If I can just get the event, then tell the game it's been received, the game can handle it. It doesn't actually need to be handled directly. Maybe something can be added to SFML to send unsupported events to the event queue for the game to handle (if it wants).

Ed
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: WM_ERASEBKGND message
« Reply #3 on: May 02, 2013, 08:32:41 pm »
Yep, I already thought of this.
Laurent Gomila - SFML developer