create group files, comment out some desktop stuff for debugging

This commit is contained in:
freedom
2023-08-01 01:35:14 -06:00
parent 3e9c6623c2
commit 62c5dd95bf
6 changed files with 44 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ HWND CreateListView(HWND hWndParent, RECT rc)
{
HWND hWndListView;
LVITEM lviTestItem;
WCHAR szTestItem = L"Test Item";
//WCHAR szTestItem[20] = L"Test Item\0";
// Create the ListView
hWndListView = CreateWindowEx(WS_EX_LEFT, WC_LISTVIEW, L"",
@@ -192,7 +192,7 @@ HWND CreateListView(HWND hWndParent, RECT rc)
lviTestItem.iSubItem = 0;
lviTestItem.state = 0;
lviTestItem.stateMask = 0;
lviTestItem.pszText = &szTestItem;
//lviTestItem.pszText = &szTestItem;
lviTestItem.cchTextMax = MAXTITLELEN;
// lviTestItem.iImage = 1;

18
progmgr/group.c Normal file
View File

@@ -0,0 +1,18 @@
/* * * * * * * *\
GROUP.C -
Copyright (c) 2023 freedom7341, Vortesys
DESCRIPTION -
Group window and program item functions.
LICENSE INFORMATION -
MIT License, see LICENSE.txt in the root folder
\* * * * * * * */
/* Headers */
#include "progmgr.h"
#include "group.h"
#include "resource.h"
#include "registry.h"
// #define WIN32_LEAN_AND_MEAN
#include <Windows.h>
/* Functions */

15
progmgr/group.h Normal file
View File

@@ -0,0 +1,15 @@
/* * * * * * * *\
GROUP.H -
Copyright (c) 2023 freedom7341, Vortesys
DESCRIPTION -
Program group and item structures and... stuff.
LICENSE INFORMATION -
MIT License, see LICENSE.txt in the root folder
\* * * * * * * */
/* Pragmas */
#pragma once
/* Includes */
#include <wtypes.h>

View File

@@ -153,7 +153,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
InsertMenu(hSystemMenu, 6, MF_BYPOSITION | MF_STRING, IDM_TASKMGR, szBuffer);
// Create the desktop window...
CreateDesktopWindow();
// CreateDesktopWindow();
}
while (GetMessage(&msg, NULL, 0, 0) > 0)

View File

@@ -159,6 +159,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="group.h" />
<ClInclude Include="progmgr.h" />
<ClInclude Include="registry.h" />
<ClInclude Include="resource.h" />
@@ -167,6 +168,7 @@
<ClCompile Include="desktop.c" />
<ClCompile Include="progmgr.c" />
<ClCompile Include="registry.c" />
<ClCompile Include="group.c" />
<ClCompile Include="sysint.c" />
<ClCompile Include="wndproc.c" />
</ItemGroup>

View File

@@ -27,6 +27,9 @@
<ClInclude Include="registry.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="group.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="progmgr.c">
@@ -44,6 +47,9 @@
<ClCompile Include="wndproc.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="group.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc">