diff --git a/progmgr/desktop.c b/progmgr/desktop.c index 112fb9d..b7554af 100644 --- a/progmgr/desktop.c +++ b/progmgr/desktop.c @@ -193,7 +193,7 @@ HWND CreateListView(HWND hWndParent, RECT rc) lviTestItem.iSubItem = 0; lviTestItem.state = 0; lviTestItem.stateMask = 0; - lviTestItem.pszText = &szTestItem; + lviTestItem.pszText = (LPWSTR)&szTestItem; lviTestItem.cchTextMax = MAXTITLELEN; // lviTestItem.iImage = 1; diff --git a/progmgr/group.h b/progmgr/group.h index 64bb276..0acef7f 100644 --- a/progmgr/group.h +++ b/progmgr/group.h @@ -26,6 +26,18 @@ #define GRP_FLAG_MAXIMIZED 0x00000008 /* Structures */ +// Item Structure +typedef struct _ITEM { + // Item executable and name + WCHAR szItemName[MAX_TITLE_LENGTH]; + WCHAR szExecPath[MAX_PATH]; // Path of the item executable + WCHAR szWorkPath[MAX_PATH]; // Working directory + + // Icon + WCHAR szIconPath[MAX_PATH]; // Path of the icon + UINT uiIconIndex; // Index of the icon +} ITEM, * PITEM; + // Group format, .GRP typedef struct _GROUP { // Group file header @@ -53,18 +65,6 @@ typedef struct _GROUPWND { HANDLE hGroup; // Handle to GROUP object } GROUPINFO, * PGROUPINFO; -// Item Structure -typedef struct _ITEM { - // Item executable and name - WCHAR szItemName[MAX_TITLE_LENGTH]; - WCHAR szExecPath[MAX_PATH]; // Path of the item executable - WCHAR szWorkPath[MAX_PATH]; // Working directory - - // Icon - WCHAR szIconPath[MAX_PATH]; // Path of the icon - UINT uiIconIndex; // Index of the icon -} ITEM, * PITEM; - /* Function Prototypes */ LRESULT CALLBACK GroupWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); HWND TempCreateGroup(HWND hMDIClient);