13 #define IDC_MAIN_MDI 101 14 #define IDC_MAIN_TOOL 102 15 #define IDC_MAIN_STATUS 103 17 #define IDC_CHILD_EDIT 101 19 #define ID_MDI_FIRSTCHILD 50000 41 if(pszFileText !=
NULL)
75 DWORD dwBufferSize = dwTextLength + 1;
104 ofn.
lpstrFilter =
"Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0";
132 ofn.
lpstrFilter =
"Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0";
156 mcs.szTitle =
"[Untitled]";
183 int statwidths[] = {100, -1};
264 iToolHeight = rcTool.
bottom - rcTool.
top;
272 iStatusHeight = rcStatus.
bottom - rcStatus.
top;
278 iMDIHeight = rcClient.
bottom - iToolHeight - iStatusHeight;
369 HMENU hMenu, hFileMenu;
453 MessageBox(0,
"Could Not Register Child Window",
"Oh Oh...",
463 LPSTR lpCmdLine,
int nCmdShow)
497 "MDI Test Application",
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define OFN_FILEMUSTEXIST
BOOL LoadTextFileToEdit(HWND hEdit, LPCTSTR pszFileName)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define TB_BUTTONSTRUCTSIZE
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
BOOL WINAPI DrawMenuBar(_In_ HWND)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI UpdateWindow(_In_ HWND)
#define INVALID_HANDLE_VALUE
#define IDB_STD_SMALL_COLOR
BOOL WINAPI TranslateMDISysAccel(HWND hwndClient, LPMSG msg)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
#define SendDlgItemMessage
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI DestroyWindow(_In_ HWND)
#define MB_ICONEXCLAMATION
const char g_szChildClassName[]
SERVICE_STATUS_HANDLE hStatus
LRESULT CALLBACK MDIChildWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
WORD WORD PSZ PSZ pszFileName
#define OFN_PATHMUSTEXIST
#define ID_WINDOW_CASCADE
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define MDIS_ALLCHILDSTYLES
BOOL SetUpMDIChildWindowClass(HINSTANCE hInstance)
void DoFileSave(HWND hwnd)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
void DoFileOpen(HWND hwnd)
BOOL SaveTextFileFromEdit(HWND hEdit, LPCTSTR pszFileName)
#define FILE_ATTRIBUTE_NORMAL
#define ID_MDI_FIRSTCHILD
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
const char g_szClassName[]
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
IN OUT PVCB OUT PDIRENT OUT PBCB IN BOOLEAN CreateFile
#define OFN_OVERWRITEPROMPT
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
#define ReadFile(a, b, c, d, e)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
HWND CreateNewMDIChild(HWND hMDIClient)
static struct myctx * mcs
#define WS_OVERLAPPEDWINDOW
#define GetWindowTextLength
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
VOID WINAPI InitCommonControls(void)
HMENU WINAPI GetMenu(_In_ HWND)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)