Is there a way to determine whether a window is fullscreened or not (and subsequently toggle it off)?
For example, I use AdjustWindowRectEx in a program to resize a window to the current bitmap it displays, which works as it should. However, when the window begins in fullscreen mode, then after the window is resized, it still retains a darker "fullscreen"-type border, and the restore button still exists in the upper-right corner. It doesn't affect anything negatively, but just looks wrong.