Skip to content

Commit 62c5dd9

Browse files
committed
create group files, comment out some desktop stuff for debugging
1 parent 3e9c662 commit 62c5dd9

File tree

6 files changed

+44
-3
lines changed

6 files changed

+44
-3
lines changed

progmgr/desktop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ HWND CreateListView(HWND hWndParent, RECT rc)
173173
{
174174
HWND hWndListView;
175175
LVITEM lviTestItem;
176-
WCHAR szTestItem = L"Test Item";
176+
//WCHAR szTestItem[20] = L"Test Item\0";
177177

178178
// Create the ListView
179179
hWndListView = CreateWindowEx(WS_EX_LEFT, WC_LISTVIEW, L"",
@@ -192,7 +192,7 @@ HWND CreateListView(HWND hWndParent, RECT rc)
192192
lviTestItem.iSubItem = 0;
193193
lviTestItem.state = 0;
194194
lviTestItem.stateMask = 0;
195-
lviTestItem.pszText = &szTestItem;
195+
//lviTestItem.pszText = &szTestItem;
196196
lviTestItem.cchTextMax = MAXTITLELEN;
197197
// lviTestItem.iImage = 1;
198198

progmgr/group.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* * * * * * * *\
2+
GROUP.C -
3+
Copyright (c) 2023 freedom7341, Vortesys
4+
DESCRIPTION -
5+
Group window and program item functions.
6+
LICENSE INFORMATION -
7+
MIT License, see LICENSE.txt in the root folder
8+
\* * * * * * * */
9+
10+
/* Headers */
11+
#include "progmgr.h"
12+
#include "group.h"
13+
#include "resource.h"
14+
#include "registry.h"
15+
// #define WIN32_LEAN_AND_MEAN
16+
#include <Windows.h>
17+
18+
/* Functions */

progmgr/group.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* * * * * * * *\
2+
GROUP.H -
3+
Copyright (c) 2023 freedom7341, Vortesys
4+
DESCRIPTION -
5+
Program group and item structures and... stuff.
6+
LICENSE INFORMATION -
7+
MIT License, see LICENSE.txt in the root folder
8+
\* * * * * * * */
9+
10+
/* Pragmas */
11+
#pragma once
12+
13+
/* Includes */
14+
#include <wtypes.h>
15+

progmgr/progmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
153153
InsertMenu(hSystemMenu, 6, MF_BYPOSITION | MF_STRING, IDM_TASKMGR, szBuffer);
154154

155155
// Create the desktop window...
156-
CreateDesktopWindow();
156+
// CreateDesktopWindow();
157157
}
158158

159159
while (GetMessage(&msg, NULL, 0, 0) > 0)

progmgr/progmgr.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
</Link>
160160
</ItemDefinitionGroup>
161161
<ItemGroup>
162+
<ClInclude Include="group.h" />
162163
<ClInclude Include="progmgr.h" />
163164
<ClInclude Include="registry.h" />
164165
<ClInclude Include="resource.h" />
@@ -167,6 +168,7 @@
167168
<ClCompile Include="desktop.c" />
168169
<ClCompile Include="progmgr.c" />
169170
<ClCompile Include="registry.c" />
171+
<ClCompile Include="group.c" />
170172
<ClCompile Include="sysint.c" />
171173
<ClCompile Include="wndproc.c" />
172174
</ItemGroup>

progmgr/progmgr.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<ClInclude Include="registry.h">
2828
<Filter>Header Files</Filter>
2929
</ClInclude>
30+
<ClInclude Include="group.h">
31+
<Filter>Header Files</Filter>
32+
</ClInclude>
3033
</ItemGroup>
3134
<ItemGroup>
3235
<ClCompile Include="progmgr.c">
@@ -44,6 +47,9 @@
4447
<ClCompile Include="wndproc.c">
4548
<Filter>Source Files</Filter>
4649
</ClCompile>
50+
<ClCompile Include="group.c">
51+
<Filter>Source Files</Filter>
52+
</ClCompile>
4753
</ItemGroup>
4854
<ItemGroup>
4955
<ResourceCompile Include="resource.rc">

0 commit comments

Comments
 (0)