minor changes to the group format
This commit is contained in:
@@ -160,16 +160,13 @@ DWORD GetGroupFlags(PGROUPWND pgw)
|
|||||||
SaveGroup -
|
SaveGroup -
|
||||||
Saves group from a group window
|
Saves group from a group window
|
||||||
into a GROUP structure.
|
into a GROUP structure.
|
||||||
INFO -
|
ABSTRACT -
|
||||||
This function operates under the
|
This function will extract all of the
|
||||||
assumption that the GROUP structure
|
necessary information from a group window
|
||||||
doesn't get modified over the course
|
in order to produce a group structure.
|
||||||
of the MDI window's life and we can't
|
|
||||||
just grab the structure directly and
|
|
||||||
expect it to be updated.
|
|
||||||
RETURNS -
|
RETURNS -
|
||||||
Formatted GROUP structure.
|
Formatted GROUP structure.
|
||||||
Otherwise NULL if failure.
|
Upon failure, wChecksum will be 0.
|
||||||
\* * * */
|
\* * * */
|
||||||
GROUP SaveGroup(PGROUPWND pgw)
|
GROUP SaveGroup(PGROUPWND pgw)
|
||||||
{
|
{
|
||||||
@@ -192,10 +189,8 @@ GROUP SaveGroup(PGROUPWND pgw)
|
|||||||
// Get the window handle as well
|
// Get the window handle as well
|
||||||
hWndGrp = pgw->hWndGroup;
|
hWndGrp = pgw->hWndGroup;
|
||||||
|
|
||||||
// Set the group header information
|
// Set the group checksum
|
||||||
grp.dwSignature = GRP_SIGNATURE;
|
grp.wChecksum = 1; // NOTE: implement this for real later lol
|
||||||
grp.wVersion = GRP_VERSION;
|
|
||||||
grp.wChecksum = 0; // NOTE: implement this later lol
|
|
||||||
|
|
||||||
// Copy group information
|
// Copy group information
|
||||||
GetWindowText(hWndGrp, szName, MAX_TITLE_LENGTH);
|
GetWindowText(hWndGrp, szName, MAX_TITLE_LENGTH);
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ typedef struct _ITEM {
|
|||||||
WCHAR szItemName[MAX_TITLE_LENGTH];
|
WCHAR szItemName[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
|
||||||
|
int nCmdShow; // Start application minimized
|
||||||
|
UINT uiHotkeyModifiers;
|
||||||
|
UINT uiHotkeyVirtualKey;
|
||||||
// Icon
|
// Icon
|
||||||
WCHAR szIconPath[MAX_PATH];
|
WCHAR szIconPath[MAX_PATH];
|
||||||
UINT uiIconIndex;
|
UINT uiIconIndex;
|
||||||
@@ -45,12 +48,13 @@ typedef struct _GROUP {
|
|||||||
DWORD dwSignature; // Set to GRP_SIGNATURE
|
DWORD dwSignature; // Set to GRP_SIGNATURE
|
||||||
WORD wVersion; // Group format version
|
WORD wVersion; // Group format version
|
||||||
WORD wChecksum;
|
WORD wChecksum;
|
||||||
|
|
||||||
// Group information
|
// Group information
|
||||||
WCHAR szGroupName[MAX_TITLE_LENGTH];
|
WCHAR szGroupName[MAX_TITLE_LENGTH];
|
||||||
DWORD dwFlags; // Use with GRP_FLAG_* values.
|
DWORD dwFlags; // Use with GRP_FLAG_* values.
|
||||||
FILETIME ftLastWrite;
|
FILETIME ftLastWrite;
|
||||||
|
// Icon
|
||||||
|
WCHAR szIconPath[MAX_PATH];
|
||||||
|
UINT uiIconIndex;
|
||||||
// Items
|
// Items
|
||||||
WORD cItems; // Number of items
|
WORD cItems; // Number of items
|
||||||
PITEM iItems; // Array of items
|
PITEM iItems; // Array of items
|
||||||
@@ -58,10 +62,9 @@ typedef struct _GROUP {
|
|||||||
|
|
||||||
// Group window information
|
// Group window information
|
||||||
typedef struct _GROUPWND {
|
typedef struct _GROUPWND {
|
||||||
// Window information
|
// Window
|
||||||
HWND hWndGroup;
|
HWND hWndGroup;
|
||||||
|
// Group
|
||||||
// Group information
|
|
||||||
PGROUP pGroup; // Pointer to GROUP structure
|
PGROUP pGroup; // Pointer to GROUP structure
|
||||||
} GROUPWND, * PGROUPWND;
|
} GROUPWND, * PGROUPWND;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user