Mercurial > mm7
changeset 1467:0a7ceb4b25b7
Window title text fixed.
author | Nomad |
---|---|
date | Mon, 26 Aug 2013 20:32:08 +0200 |
parents | 2ca62c9e7b3c |
children | d88df3a2369d |
files | mm7_2.cpp |
diffstat | 1 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/mm7_2.cpp Wed Aug 21 16:06:50 2013 +0200 +++ b/mm7_2.cpp Mon Aug 26 20:32:08 2013 +0200 @@ -3422,11 +3422,22 @@ struct tagPAINTSTRUCT Paint; // [sp+24h] [bp-48h]@13 int pXY[2]; // [sp+64h] [bp-8h]@261 int a2; // [sp+7Ch] [bp+10h]@50 - + switch (Msg) { case WM_SIZING: return 1; + case WM_SHOWWINDOW: + case WM_GETTEXT: case WM_SETTEXT: return DefWindowProcW(hWnd, Msg, wParam, lParam); + + case WM_WINDOWPOSCHANGED: + { + if (pVideoPlayer && pVideoPlayer->AnyMovieLoaded() && pVideoPlayer->pBinkBuffer) + BinkBufferSetOffset(pVideoPlayer->pBinkBuffer, 0, 0); + + return DefWindowProcW(hWnd, Msg, wParam, lParam); + } + case WM_CHAR: { if (!pKeyActionMap->_459F10(wParam) && !viewparams->field_4C) @@ -3773,15 +3784,7 @@ } if ( Msg > WM_ACTIVATEAPP ) { - if ( Msg == WM_WINDOWPOSCHANGED ) - { - if (pVideoPlayer && pVideoPlayer->AnyMovieLoaded() && pVideoPlayer->pBinkBuffer) - { - BinkBufferSetOffset(pVideoPlayer->pBinkBuffer, 0, 0); - } - return DefWindowProcA(hWnd, Msg, wParam, lParam); - } - if ( Msg != WM_KEYFIRST ) + if ( Msg != WM_KEYFIRST && Msg != WM_WINDOWPOSCHANGED) { if ( Msg == WM_KEYUP && wParam == VK_CONTROL ) {