preliminary group file structures

This commit is contained in:
freedom
2023-08-09 13:25:29 -06:00
parent 4cf88a12af
commit e333bec949
2 changed files with 70 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
GROUP.C -
Copyright (c) 2023 freedom7341, Vortesys
DESCRIPTION -
Group window and program item functions.
Group window and program group/item functions.
LICENSE INFORMATION -
MIT License, see LICENSE.txt in the root folder
\* * * * * * * */
@@ -15,6 +15,9 @@
// #define WIN32_LEAN_AND_MEAN
#include <Windows.h>
/* Variables */
WNDCLASSEX wcGrp;
/* Functions */
/* * * *\
@@ -31,13 +34,21 @@ LRESULT CALLBACK GroupWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
{
break;
}
default:
// GrpProcDefault:
default:
// GroupProcDefault:
return DefMDIChildProc(hWnd, message, wParam, lParam);
}
return 0;
}
/* * * *\
InitGroups -
Initialize variables for the betterment of groups forever
Make great glorious MDI Client
RETURNS -
Zero if nothing, otherwise returns the good stuff.
\* * * */
/* * * *\
TempCreateGroup -
th
@@ -53,7 +64,7 @@ HWND TempCreateGroup(HWND hMDIClient)
mcs.szTitle = L"";
mcs.hOwner = hAppInstance;
mcs.x = mcs.y = mcs.cx = mcs.cy = CW_USEDEFAULT;
mcs.style = WS_VSCROLL | WS_HSCROLL;
mcs.style = WS_VISIBLE;
hChild = (HWND)SendMessage(hMDIClient, WM_MDICREATE, 0, (LPARAM)(LPTSTR)&mcs);
// if (!hChild)
@@ -62,4 +73,4 @@ HWND TempCreateGroup(HWND hMDIClient)
// MB_ICONEXCLAMATION | MB_OK);
// }
return hChild;
}
}