Commit c8eb4afe authored by Sven Strickroth's avatar Sven Strickroth

Restore the window size in WM_CREATE, before calling the client handler

This fixes an issue with centering the images in TortoiseIDiff on start.

Based on TortoiseSVN rev. 26912.
Signed-off-by: Sven Strickroth's avatarSven Strickroth <email@cs-ware.de>
parent 6c9a3f93
// TortoiseGit - a Windows shell extension for easy version control
// Copyright (C) 2003-2009, 2012-2013 - TortoiseSVN
// Copyright (C) 2003-2009, 2012-2013, 2015 - TortoiseSVN
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
......@@ -83,8 +83,8 @@ LRESULT CALLBACK CWindow::stWinMsgHandler(HWND hwnd, UINT uMsg, WPARAM wParam, L
{
switch (uMsg)
{
case WM_ACTIVATE:
if ((wParam == WA_ACTIVE) && (!pWnd->bWindowRestored) && (!pWnd->sRegistryPath.empty()))
case WM_CREATE:
if ((!pWnd->bWindowRestored) && (!pWnd->sRegistryPath.empty()))
{
WINDOWPLACEMENT wpl = {0};
DWORD size = sizeof(wpl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment