Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mkoday

Blank button on taskbar

This topic is 6927 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
i''ve noticed this even in "professional" games, so it MUST be ok
this problem has been inconsistent in my code as well. i can''t seem to figure out what makes it appear and disappear. i think it may have something to do with how the WM_DESTROY message is handled, but i don''t really know.

crazy166
some people think i'm crazy, some people know it

Share this post


Link to post
Share on other sites
This may seem a bit hackish, but I do a ShowWindow(hWnd, SW_HIDE). I think I''ve got that in my WM_DESTROY case, but I can''t remember. Never had any problems from it.

Share this post


Link to post
Share on other sites
quote:
This may seem a bit hackish , but I do...


OOOOH, I like that word "hackish"! I think im gonna steal it . (Or use it if he didn''t make it up )

Share this post


Link to post
Share on other sites
The ShowWindow() definitely fixed it for me. If there still aren''t any answers by tonight, I''ll check through my code and find out exactly where I call it.

Share this post


Link to post
Share on other sites
Unfortunately, the call was right where I thought it was, at the end of my WM_DESTROY handler. So I guess if that didn''t work for you I don''t have any other suggestions to offer. It clearly is the solution in my code. I can comment it out and immediately start getting blank buttons.

As for moving desktop icons, is the desktop ever being shown while in 640x480? Do you change the resolution after creating your window, and change it back before your window is destroyed (or minimized, or hidden, etc)?

Share this post


Link to post
Share on other sites
I use to experience the blank buttons when I try to force quit the application in fullscreen mode when an error occurs..

It has to do something with the wrong deallocation order of Directdraw, DirectInput, page flipping, application focus, Messageboxes and DestroyWindows(..).


I cannot remember the exact solution as my code is totally in a mess, but I did manage to solve the problem. (I was working with the above when I experienced the problem, but I ''m not sure which part of the code that actually fixes it)

I do not think it is "OK", even it happens in professional games.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!