mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
[ConSrv]
- Move CreateSysMenu after creating the main window. This is a hax fix for CORE-8129. svn path=/trunk/; revision=63595
This commit is contained in:
parent
a9746d12cb
commit
50e8eb2f87
|
@ -250,7 +250,8 @@ AppendMenuItems(HMENU hMenu,
|
|||
} while (!(Items[i].uID == 0 && Items[i].SubMenu == NULL && Items[i].wCmdID == 0));
|
||||
}
|
||||
|
||||
static VOID
|
||||
//static
|
||||
VOID
|
||||
CreateSysMenu(HWND hWnd)
|
||||
{
|
||||
MENUITEMINFOW mii;
|
||||
|
@ -587,7 +588,7 @@ OnNcCreate(HWND hWnd, LPCREATESTRUCTW Create)
|
|||
SetWindowLongPtrW(GuiData->hWindow, GWLP_USERDATA, (DWORD_PTR)GuiData);
|
||||
|
||||
SetTimer(GuiData->hWindow, CONGUI_UPDATE_TIMER, CONGUI_UPDATE_TIME, NULL);
|
||||
CreateSysMenu(GuiData->hWindow);
|
||||
//CreateSysMenu(GuiData->hWindow);
|
||||
|
||||
DPRINT("OnNcCreate - setting start event\n");
|
||||
SetEvent(GuiData->hGuiInitEvent);
|
||||
|
|
|
@ -140,7 +140,8 @@ InvalidateCell(PGUI_CONSOLE_DATA GuiData,
|
|||
|
||||
VOID
|
||||
SwitchFullScreen(PGUI_CONSOLE_DATA GuiData, BOOL FullScreen);
|
||||
|
||||
VOID
|
||||
CreateSysMenu(HWND hWnd);
|
||||
static LRESULT CALLBACK
|
||||
GuiConsoleNotifyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
@ -199,6 +200,8 @@ GuiConsoleNotifyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
GuiConsoleMoveWindow(GuiData); // FIXME: This MUST be done via the CreateWindowExW call.
|
||||
SendMessageW(GuiData->hWindow, PM_RESIZE_TERMINAL, 0, 0);
|
||||
|
||||
CreateSysMenu(GuiData->hWindow);
|
||||
|
||||
/* Switch to full-screen mode if necessary */
|
||||
// FIXME: Move elsewhere, it cause misdrawings of the window.
|
||||
if (GuiData->GuiInfo.FullScreen) SwitchFullScreen(GuiData, TRUE);
|
||||
|
|
|
@ -32,6 +32,7 @@ KeyboardHookProc(int nCode,
|
|||
WPARAM wParam,
|
||||
LPARAM lParam)
|
||||
{
|
||||
DPRINT1("KeyboardHookProc Processing!\n");
|
||||
return CallNextHookEx(hhk, nCode, wParam, lParam);
|
||||
}
|
||||
/*** END - HACK from win32csr... ***/
|
||||
|
|
Loading…
Reference in a new issue