SFML community forums

Help => Window => Topic started by: slotdev on May 02, 2013, 05:40:42 pm

Title: WM_ERASEBKGND message
Post by: slotdev 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
Title: Re: WM_ERASEBKGND message
Post by: Laurent 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?
Title: Re: WM_ERASEBKGND message
Post by: slotdev 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
Title: Re: WM_ERASEBKGND message
Post by: Laurent on May 02, 2013, 08:32:41 pm
Yep, I already thought of this.