rename stuff

This commit is contained in:
freedom
2023-08-11 17:47:48 -06:00
parent a4f7046760
commit f8578360f8
3 changed files with 10 additions and 7 deletions

View File

@@ -174,14 +174,14 @@ GROUP SaveGroup(PGROUPWND pgw)
.dwSignature = GRP_SIGNATURE, .dwSignature = GRP_SIGNATURE,
.wVersion = GRP_VERSION, .wVersion = GRP_VERSION,
.wChecksum = 0, .wChecksum = 0,
.szGroupName = L"", .szName = L"",
.dwFlags = 0, .dwFlags = 0,
.ftLastWrite = 0, .ftLastWrite = 0,
.cItems = 0, .cItems = 0,
.iItems = NULL .iItems = NULL
}; };
HWND hWndGrp; HWND hWndGrp;
WCHAR szName[MAX_TITLE_LENGTH]; WCHAR szGroupName[MAX_TITLE_LENGTH];
// Find the group and copy it // Find the group and copy it
grp = *pgw->pGroup; grp = *pgw->pGroup;
@@ -193,8 +193,8 @@ GROUP SaveGroup(PGROUPWND pgw)
grp.wChecksum = 1; // NOTE: implement this for real later lol grp.wChecksum = 1; // NOTE: implement this for real later lol
// Copy group information // Copy group information
GetWindowText(hWndGrp, szName, MAX_TITLE_LENGTH); GetWindowText(hWndGrp, szGroupName, MAX_TITLE_LENGTH);
StringCchCopy(grp.szGroupName, MAX_TITLE_LENGTH, szName); StringCchCopy(grp.szName, MAX_TITLE_LENGTH, szGroupName);
grp.dwFlags = GetGroupFlags(pgw); grp.dwFlags = GetGroupFlags(pgw);

View File

@@ -22,16 +22,19 @@
#define GRP_FLAG_READONLY 0x00000002 #define GRP_FLAG_READONLY 0x00000002
#define GRP_FLAG_MINIMIZED 0x00000004 #define GRP_FLAG_MINIMIZED 0x00000004
#define GRP_FLAG_MAXIMIZED 0x00000008 #define GRP_FLAG_MAXIMIZED 0x00000008
// Item Flag Values (DWORD)
#define ITM_FLAG_MINIMIZED 0x00000001
#define ITM_FLAG_MAXIMIZED 0x00000002
/* Structures */ /* Structures */
// Item Structure // Item Structure
typedef struct _ITEM { typedef struct _ITEM {
// Item executable and name // Item executable and name
WCHAR szItemName[MAX_TITLE_LENGTH]; WCHAR szName[MAX_TITLE_LENGTH];
WCHAR szExecPath[MAX_PATH]; // Path of the executable WCHAR szExecPath[MAX_PATH]; // Path of the executable
WCHAR szWorkPath[MAX_PATH]; // Working directory WCHAR szWorkPath[MAX_PATH]; // Working directory
// Item flags // Item flags
int nCmdShow; // Start application minimized DWORD dwFlags; // Use with ITM_FLAG_* values.
UINT uiHotkeyModifiers; UINT uiHotkeyModifiers;
UINT uiHotkeyVirtualKey; UINT uiHotkeyVirtualKey;
// Icon // Icon
@@ -46,7 +49,7 @@ typedef struct _GROUP {
WORD wVersion; // Group format version WORD wVersion; // Group format version
WORD wChecksum; WORD wChecksum;
// Group information // Group information
WCHAR szGroupName[MAX_TITLE_LENGTH]; WCHAR szName[MAX_TITLE_LENGTH];
DWORD dwFlags; // Use with GRP_FLAG_* values. DWORD dwFlags; // Use with GRP_FLAG_* values.
FILETIME ftLastWrite; FILETIME ftLastWrite;
// Icon // Icon

Binary file not shown.