I have two questions to ask here.
First, I have custom maximize / restore handlers. Maximizing by clicking the button or right clicking the caption bar and selecting maximize works normally, by double clicking the caption bar itself doesn't show the right results. Turns out it's not sending SC_MAXIMIZE when I double click the caption bar, although it does just fine when I click the maximize button or right click caption bar->maximize. What message is sent when you double click the caption bar?
Secondly, I have scrolling code that works correctly on transition to full screen. If the X screen is larger than my client area bitmap, the scroll range is shrunk appropriately to not include the hroizontal scroll bar. Though, upon transition back to 'restore state', it brings up the scroll bars again because the X size of the bitmap window is less than it's maximum width. This means I can't get to the bottom strip of the bitmap; the size of a horizontal scroll bar. The code is made to handle this on WM_SIZE messages, and it does to an extent. You see, when I restore the window, it doesn't modify the scroll bars range when it clearly should. The twist is that when I manually resize it by any amount the scroll bar gains its correct proportions and I am able to scroll all the way. I tried slapping on stuff like doubling up on WM_SIZEs in parts but that did it no good...Any tips?