fix some stuff

This commit is contained in:
freedom
2023-08-09 13:29:25 -06:00
parent dbd33f1e5d
commit c16ebce58c
2 changed files with 13 additions and 13 deletions

View File

@@ -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;

View File

@@ -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);