desktop junk, disabled it cause desktop later (i gotta master listview), buncha wallpapers n moved some files around

This commit is contained in:
freedom
2023-07-28 22:12:23 -06:00
parent 50f59ca105
commit 716921405a
16 changed files with 2224 additions and 14 deletions

BIN
misc/pman.pdn Normal file

Binary file not shown.

1037
misc/walls/starspc2.pdn Normal file

File diff suppressed because one or more lines are too long

BIN
misc/walls/starspc2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

BIN
misc/walls/starspc3.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

1108
misc/walls/starspc3.pdn Normal file

File diff suppressed because one or more lines are too long

BIN
misc/walls/starspc3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
misc/walls/starspc4.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

BIN
misc/walls/starspc4.pdn Normal file

Binary file not shown.

BIN
misc/walls/starspc4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
misc/walls/starspc5.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
misc/walls/starspc5.pdn Normal file

Binary file not shown.

BIN
misc/walls/starspc5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -13,12 +13,31 @@
#include "resource.h"
// #define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <CommCtrl.h>
/* Structures */
typedef struct _mrp
{
HWND hWndMRP;
DWORD dwFlags;
} MRP, * PMRP;
/* Defines */
// MRP Flags
#define MRP_ICONIFIED 0x000000001
#define MRP_FLASHING 0x000000002
// Miscellaneous
#define MAXTITLELEN 256
#define ID_LISTVIEW 1000
/* Variables */
HWND hWndDesktop;
HWND hWndListView;
RECT rcRoot;
/* Functions */
LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
HWND CreateListView(HWND hWndParent, RECT rc);
/* * * *\
CreateDesktopWindow -
@@ -56,15 +75,16 @@ BOOL CreateDesktopWindow()
wc.lpfnWndProc = DeskWndProc;
wc.hInstance = hAppInstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)(30);
wc.hbrBackground = (HBRUSH)GetStockObject(NULL_BRUSH);
wc.style = CS_NOCLOSE;
wc.lpszClassName = szClass;
if (!RegisterClassEx(&wc))
return FALSE;
if (!CreateWindowEx(WS_EX_TOOLWINDOW, wc.lpszClassName, NULL, WS_VISIBLE,
rcRoot.left, rcRoot.top, rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
NULL, NULL, hAppInstance, NULL));
if (CreateWindowEx(WS_EX_TOOLWINDOW, wc.lpszClassName,
NULL, WS_VISIBLE, rcRoot.left, rcRoot.top,
rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
NULL, NULL, hAppInstance, NULL) == NULL);
return 2;
while (GetMessage(&msg, NULL, 0, 0) > 0)
@@ -106,6 +126,9 @@ LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
SetWindowPos(hWndProgMgr, HWND_TOP,
0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
// Finally, Create the ListView control
hWndListView = CreateListView(hWndDesktop, rcRoot);
break;
case WM_ACTIVATE:
@@ -117,6 +140,10 @@ LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
SetWindowPos(hWndDesktop, HWND_BOTTOM,
rcRoot.left, rcRoot.top, rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
SWP_NOACTIVATE);
//if (hWndListView)
// SetWindowPos(hWndListView, hWndDesktop,
// rcRoot.left, rcRoot.top, rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
// SWP_NOZORDER | SWP_NOACTIVATE);
break;
case WM_WINDOWPOSCHANGING:
@@ -133,4 +160,43 @@ LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
}
return 0;
}
/* * * *\
CreateListView -
Creates the Desktop's ListView.
RETURNS -
HWND to the listview if successfull,
NULL otherwise.
\* * * */
HWND CreateListView(HWND hWndParent, RECT rc)
{
HWND hWndListView;
LVITEM lviTestItem;
WCHAR szTestItem = L"Test Item";
// Create the ListView
hWndListView = CreateWindowEx(WS_EX_LEFT, WC_LISTVIEW, L"",
WS_VISIBLE | WS_CHILD | WS_BORDER | LVS_ICON | LVS_SINGLESEL,
rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
hWndParent, (HMENU)ID_LISTVIEW, hAppInstance,
NULL);
if(hWndListView == NULL)
return NULL;
ListView_SetBkColor(hWndListView, CLR_NONE);
lviTestItem.mask = LVIF_STATE | LVIF_TEXT;
lviTestItem.iItem = 0;
lviTestItem.iSubItem = 0;
lviTestItem.state = 0;
lviTestItem.stateMask = 0;
lviTestItem.pszText = &szTestItem;
lviTestItem.cchTextMax = MAXTITLELEN;
// lviTestItem.iImage = 1;
ListView_InsertItem(hWndListView, &lviTestItem);
return hWndListView;
}

View File

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 766 B

View File

@@ -41,8 +41,7 @@ extern WCHAR szWebsite[64];
/* Function Prototypes */
// DESKTOP.C
BOOL CreateDesktopWindow();
LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
BOOL CreateDesktopWindow();// SYSINT.C
// SYSINT.C
BOOL RunFileDlg(HWND hWndOwner, HICON hIcon, LPWSTR lpszDir, LPWSTR lpszTitle, LPWSTR lpszDesc, DWORD dwFlags);
BOOL ExitWindowsDialog(HWND hWndOwner);

View File

@@ -20,16 +20,16 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
/* Icon Library */
// Primary
IDI_PROGMGR ICON PRELOAD icons\progmgr.ico
IDI_PROGGRP ICON icons\pmgroup.ico
IDI_PROGITM ICON icons\pmitem.ico
IDI_PROGMGR ICON icons\progmgr.ico
IDI_PROGGRP ICON icons\pmgroup.ico
IDI_PROGITM ICON icons\pmitem.ico
// Secondary
IDI_COMMS ICON icons\comms.ico
IDI_CONSOLE ICON icons\console.ico
IDI_DOCUMENT ICON icons\document.ico
IDI_SPREADSHEET ICON icons\spsheet.ico
IDI_COMMS ICON icons\comms.ico
IDI_CONSOLE ICON icons\console.ico
IDI_DOCUMENT ICON icons\document.ico
IDI_SPREADSHEET ICON icons\spsheet.ico
// Tertiary
IDI_SUPERMAN ICON icons\misc\superman.ico
IDI_SUPERMAN ICON icons\misc\superman.ico
/* Manifest */
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "progmgr.exe.manifest"