+ fix: load set localized menu before displaying dialog

This commit is contained in:
Rainer Kottenhoff 2019-07-30 14:14:34 +02:00
parent 421e389315
commit e14a74eee5
4 changed files with 12 additions and 12 deletions

View File

@ -1 +1 @@
2518
2519

View File

@ -3,7 +3,7 @@
<assemblyIdentity
name="Notepad3"
processorArchitecture="*"
version="5.19.730.2518"
version="5.19.730.2519"
type="win32"
/>
<description>Notepad3 RC2</description>

View File

@ -918,15 +918,6 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
return 1;
}
if (Globals.hIcon128) {
SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)Globals.hIcon128);
}
if (Globals.hDlgIcon) {
SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)Globals.hDlgIcon);
}
if (Globals.hMainMenu) { SetMenu(hwnd, Globals.hMainMenu); }
#ifdef _EXTRA_DRAG_N_DROP_HANDLER_
DragAndDropInit(NULL);
#endif
@ -1187,6 +1178,13 @@ HWND InitInstance(HINSTANCE hInstance,LPCWSTR pszCmdLine,int nCmdShow)
}
//UpdateWindowLayoutForDPI(Globals.hwndMain, 0, 0, 0, 0);
if (Globals.hIcon128) {
SendMessage(Globals.hwndMain, WM_SETICON, ICON_BIG, (LPARAM)Globals.hIcon128);
}
if (Globals.hDlgIcon) {
SendMessage(Globals.hwndMain, WM_SETICON, ICON_SMALL, (LPARAM)Globals.hDlgIcon);
}
if (Settings.TransparentMode) {
SetWindowTransparentMode(Globals.hwndMain, true, Settings2.OpacityLevel);
}
@ -1195,6 +1193,8 @@ HWND InitInstance(HINSTANCE hInstance,LPCWSTR pszCmdLine,int nCmdShow)
SciCall_SetZoom(s_WinInfo.zoom);
}
SetMenu(Globals.hwndMain, Globals.hMainMenu);
// Current file information -- moved in front of ShowWindow()
FileLoad(true,true,false,Settings.SkipUnicodeDetection,Settings.SkipANSICodePageDetection,false,L"");

View File

@ -8,7 +8,7 @@
#define VERSION_MAJOR 5
#define VERSION_MINOR 19
#define VERSION_REV 730
#define VERSION_BUILD 2518
#define VERSION_BUILD 2519
#define SCINTILLA_VER 420
#define ONIGURUMA_REGEX_VER 6.9.3
#define VERSION_PATCH RC2