66 if (hWndMDIChild ==
NULL)
106 Info->nConsoleCount++;
152 Info->hMenuConsoleSmall);
184 DPRINT1(
"SetFileName(&p \'%S\')\n",
Info, pFileName);
192 if (pFileName !=
NULL)
212 DPRINT1(
"pChildInfo %p\n", pChildInfo);
232 DPRINT1(
"pChildInfo %p\n", pChildInfo);
287 if (pChildInfo ==
NULL)
301 if (pChildInfo ==
NULL)
324 Info->hMenuConsoleLarge);
437 if (
Info->hMenuConsoleSmall !=
NULL)
443 if (
Info->hMenuConsoleLarge !=
NULL)
458 Info->nConsoleCount--;
459 if (
Info->nConsoleCount == 0)
462 Info->hMenuConsoleSmall);
604 if (hWndConsole !=
NULL)
static struct myctx * mcs
static VOID FrameOnCommand(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL DoSaveFile(HWND hWnd, PCONSOLE_CHILDFRM_WND pChildInfo)
static LRESULT CALLBACK ConsoleChildFrmProc(IN HWND hwnd, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
struct _CONSOLE_MAINFRAME_WND * PCONSOLE_MAINFRAME_WND
static BOOL FrameOnSaveAs(HWND hWnd)
static const TCHAR szMMCChildFrm[]
struct _CONSOLE_MAINFRAME_WND CONSOLE_MAINFRAME_WND
static VOID SetFileName(PCONSOLE_CHILDFRM_WND Info, PWSTR pFileName)
static ULONG NewConsoleCount
static LRESULT CALLBACK ConsoleMainFrameWndProc(IN HWND hwnd, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
PCONSOLE_CHILDFRM_WND GetActiveChildInfo(VOID)
HWND CreateNewMDIChild(PCONSOLE_MAINFRAME_WND Info, HWND hwndMDIClient)
struct _CONSOLE_CHILDFRM_WND * PCONSOLE_CHILDFRM_WND
static VOID FrameOnSize(HWND hMainWnd, WORD cx, WORD cy)
struct _CONSOLE_CHILDFRM_WND CONSOLE_CHILDFRM_WND
VOID UnregisterMMCWndClasses(VOID)
static BOOL FrameOnSave(HWND hWnd)
static LPTSTR CreateNewConsoleTitle(VOID)
static BOOL DoSaveFileAs(HWND hWnd, PCONSOLE_CHILDFRM_WND pChildInfo)
HWND CreateConsoleWindow(IN LPCTSTR lpFileName OPTIONAL, int nCmdShow)
static LRESULT FrameOnCreate(HWND hwnd, LPARAM lParam)
BOOL RegisterMMCWndClasses(VOID)
static const TCHAR szMMCMainFrame[]
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
DWORD LoadAndFormatString(IN HINSTANCE hInstance, IN UINT uID, OUT LPTSTR *lpTarget,...)
#define WM_USER_CLOSE_CHILD
#define IDM_CONSOLE_SMALL
#define IDM_MDI_FIRSTCHILD
#define IDM_CONSOLE_LARGE
#define OFN_OVERWRITEPROMPT
#define OFN_PATHMUSTEXIST
OPENFILENAMEA OPENFILENAME
#define HeapFree(x, y, z)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define WS_OVERLAPPEDWINDOW
_Out_opt_ int _Out_opt_ int * cy
PULONG MinorVersion OPTIONAL
PCONSOLE_MAINFRAME_WND MainFrame
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define MDIS_ALLCHILDSTYLES
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI DestroyWindow(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)