--

Started by
14 comments, last by snisarenko 21 years, 5 months ago
not sure if this is correct
the issue could be with your main message loop

while( 1 )
{
if( PeekMessage(&Msg, hWnd, 0, 0, PM_REMOVE) )
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
else
{
// Draw to the screen
}
}

if your resizing the window the first if statement will always be true meaning it will never draw to the screen
Advertisement
WM_SIZING
quote:Original post by Neosmyle
WM_SIZING


funny, not? i''ve stated it 5 posts above but nobody cares..

now i''m going the hard way: in google, msdn tells me this:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowMessages/WM_SIZING.asp

"The WM_SIZING message is sent to a window that the user is resizing. By processing this message, an application can monitor the size and position of the drag rectangle and, if needed, change its size or position."

on the other hand, WM_SIZE:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowMessages/WM_SIZE.asp

"The WM_SIZE message is sent to a window after its size has changed."

btw.. if you checked WM_SIZE in the msdn, on the left you see the tree with the topics.. just one line under WM_SIZE you found WM_SIZING..

stfw,rtfm,whatever.. just..

"take a look around" - limp bizkit
www.google.com
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

sorry, i didn't mean any confusion when I put "WM_RESIZE". I was in the middle of going to my Engineering class and wasn't thinking. hehe, didn't think anyone would do research and find out WM_RESIZE wasn't in there, really sorry about that. I was able to prevent this event from happening by updating the scene during the process of 're-sizing' the window.

Also, another thing you'll notice, if not mentioned, is that when you create a dialog box and move it around your whole screen won't update the back either. This was easily fixed by a call in the WM_MOVE 'of that dialog' and updating the scene there as well.

[edited by - DJ_GL on October 30, 2002 1:32:53 PM]
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: &#106avascript Perl JSP PHP-MySQL Oracle Database Programming</span><a href='http://www.ethereal-studios.com'>http://www.ethereal-studios.com</a></a>
Thanks davepermen !!!!!
I will try that
quote:Original post by DJ_GL Also, another thing you''ll notice, if not mentioned, is that when you create a dialog box and move it around your whole screen won''t update the back either. This was easily fixed by a call in the WM_MOVE ''of that dialog'' and updating the scene there as well.


how about reacting on WM_MOVING? :D should work..

"take a look around" - limp bizkit
www.google.com
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

This topic is closed to new replies.

Advertisement