desktop junk, disabled it cause desktop later (i gotta master listview), buncha wallpapers n moved some files around
BIN
misc/pman.pdn
Normal file
1037
misc/walls/starspc2.pdn
Normal file
BIN
misc/walls/starspc2.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
misc/walls/starspc3.bmp
Normal file
|
After Width: | Height: | Size: 301 KiB |
1108
misc/walls/starspc3.pdn
Normal file
BIN
misc/walls/starspc3.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
misc/walls/starspc4.bmp
Normal file
|
After Width: | Height: | Size: 301 KiB |
BIN
misc/walls/starspc4.pdn
Normal file
BIN
misc/walls/starspc4.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
misc/walls/starspc5.bmp
Normal file
|
After Width: | Height: | Size: 150 KiB |
BIN
misc/walls/starspc5.pdn
Normal file
BIN
misc/walls/starspc5.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
@@ -13,12 +13,31 @@
|
|||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
// #define WIN32_LEAN_AND_MEAN
|
// #define WIN32_LEAN_AND_MEAN
|
||||||
#include <Windows.h>
|
#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 */
|
/* Variables */
|
||||||
HWND hWndDesktop;
|
HWND hWndDesktop;
|
||||||
|
HWND hWndListView;
|
||||||
RECT rcRoot;
|
RECT rcRoot;
|
||||||
|
|
||||||
/* Functions */
|
/* Functions */
|
||||||
|
LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
|
HWND CreateListView(HWND hWndParent, RECT rc);
|
||||||
|
|
||||||
/* * * *\
|
/* * * *\
|
||||||
CreateDesktopWindow -
|
CreateDesktopWindow -
|
||||||
@@ -56,15 +75,16 @@ BOOL CreateDesktopWindow()
|
|||||||
wc.lpfnWndProc = DeskWndProc;
|
wc.lpfnWndProc = DeskWndProc;
|
||||||
wc.hInstance = hAppInstance;
|
wc.hInstance = hAppInstance;
|
||||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||||
wc.hbrBackground = (HBRUSH)(30);
|
wc.hbrBackground = (HBRUSH)GetStockObject(NULL_BRUSH);
|
||||||
wc.style = CS_NOCLOSE;
|
wc.style = CS_NOCLOSE;
|
||||||
wc.lpszClassName = szClass;
|
wc.lpszClassName = szClass;
|
||||||
if (!RegisterClassEx(&wc))
|
if (!RegisterClassEx(&wc))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!CreateWindowEx(WS_EX_TOOLWINDOW, wc.lpszClassName, NULL, WS_VISIBLE,
|
if (CreateWindowEx(WS_EX_TOOLWINDOW, wc.lpszClassName,
|
||||||
rcRoot.left, rcRoot.top, rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
|
NULL, WS_VISIBLE, rcRoot.left, rcRoot.top,
|
||||||
NULL, NULL, hAppInstance, NULL));
|
rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
|
||||||
|
NULL, NULL, hAppInstance, NULL) == NULL);
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
while (GetMessage(&msg, NULL, 0, 0) > 0)
|
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,
|
SetWindowPos(hWndProgMgr, HWND_TOP,
|
||||||
0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||||
|
|
||||||
|
// Finally, Create the ListView control
|
||||||
|
hWndListView = CreateListView(hWndDesktop, rcRoot);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_ACTIVATE:
|
case WM_ACTIVATE:
|
||||||
@@ -117,6 +140,10 @@ LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
|
|||||||
SetWindowPos(hWndDesktop, HWND_BOTTOM,
|
SetWindowPos(hWndDesktop, HWND_BOTTOM,
|
||||||
rcRoot.left, rcRoot.top, rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
|
rcRoot.left, rcRoot.top, rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
|
||||||
SWP_NOACTIVATE);
|
SWP_NOACTIVATE);
|
||||||
|
//if (hWndListView)
|
||||||
|
// SetWindowPos(hWndListView, hWndDesktop,
|
||||||
|
// rcRoot.left, rcRoot.top, rcRoot.right - rcRoot.left, rcRoot.bottom - rcRoot.top,
|
||||||
|
// SWP_NOZORDER | SWP_NOACTIVATE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_WINDOWPOSCHANGING:
|
case WM_WINDOWPOSCHANGING:
|
||||||
@@ -133,4 +160,43 @@ LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
|
|||||||
}
|
}
|
||||||
return 0;
|
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;
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
@@ -41,8 +41,7 @@ extern WCHAR szWebsite[64];
|
|||||||
|
|
||||||
/* Function Prototypes */
|
/* Function Prototypes */
|
||||||
// DESKTOP.C
|
// DESKTOP.C
|
||||||
BOOL CreateDesktopWindow();
|
BOOL CreateDesktopWindow();// SYSINT.C
|
||||||
LRESULT CALLBACK DeskWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
|
||||||
// SYSINT.C
|
// SYSINT.C
|
||||||
BOOL RunFileDlg(HWND hWndOwner, HICON hIcon, LPWSTR lpszDir, LPWSTR lpszTitle, LPWSTR lpszDesc, DWORD dwFlags);
|
BOOL RunFileDlg(HWND hWndOwner, HICON hIcon, LPWSTR lpszDir, LPWSTR lpszTitle, LPWSTR lpszDesc, DWORD dwFlags);
|
||||||
BOOL ExitWindowsDialog(HWND hWndOwner);
|
BOOL ExitWindowsDialog(HWND hWndOwner);
|
||||||
|
|||||||
@@ -20,16 +20,16 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
|||||||
|
|
||||||
/* Icon Library */
|
/* Icon Library */
|
||||||
// Primary
|
// Primary
|
||||||
IDI_PROGMGR ICON PRELOAD icons\progmgr.ico
|
IDI_PROGMGR ICON icons\progmgr.ico
|
||||||
IDI_PROGGRP ICON icons\pmgroup.ico
|
IDI_PROGGRP ICON icons\pmgroup.ico
|
||||||
IDI_PROGITM ICON icons\pmitem.ico
|
IDI_PROGITM ICON icons\pmitem.ico
|
||||||
// Secondary
|
// Secondary
|
||||||
IDI_COMMS ICON icons\comms.ico
|
IDI_COMMS ICON icons\comms.ico
|
||||||
IDI_CONSOLE ICON icons\console.ico
|
IDI_CONSOLE ICON icons\console.ico
|
||||||
IDI_DOCUMENT ICON icons\document.ico
|
IDI_DOCUMENT ICON icons\document.ico
|
||||||
IDI_SPREADSHEET ICON icons\spsheet.ico
|
IDI_SPREADSHEET ICON icons\spsheet.ico
|
||||||
// Tertiary
|
// Tertiary
|
||||||
IDI_SUPERMAN ICON icons\misc\superman.ico
|
IDI_SUPERMAN ICON icons\misc\superman.ico
|
||||||
|
|
||||||
/* Manifest */
|
/* Manifest */
|
||||||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "progmgr.exe.manifest"
|
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "progmgr.exe.manifest"
|
||||||
|
|||||||