Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
freedom7341 committed Oct 16, 2023
1 parent 4054dac commit e0fa663
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion progmgr/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ VOID UpdateGroup(_In_ PGROUP pg)
// Set the group checksum
pg->wChecksum = 1; // NOTE: implement this for real later lol

pg->dwFlags = GRP_FLAG_MAXIMIZED;// GetGroupFlags(pgw);
// TODO: set group flags
// pg->dwFlags = GRP_FLAG_MAXIMIZED;// GetGroupFlags(pgw);

// Set FILETIME
GetSystemTimeAsFileTime(&pg->ftLastWrite);
Expand Down
7 changes: 4 additions & 3 deletions progmgr/group.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
#define GRP_FLAG_MINIMIZED 0x00000004
#define GRP_FLAG_MAXIMIZED 0x00000008
// Item Flag Values (DWORD)
#define ITM_FLAG_MINIMIZED 0x00000001
#define ITM_FLAG_MAXIMIZED 0x00000002
#define ITM_FLAG_PRIVILEGE 0x00000004
#define ITM_FLAG_HOTKEY 0x00000001
#define ITM_FLAG_PRIVILEGE 0x00000002
#define ITM_FLAG_MINIMIZED 0x00000004
#define ITM_FLAG_MAXIMIZED 0x00000008

/* Structures */
// Item Structure
Expand Down
5 changes: 2 additions & 3 deletions progmgr/wndproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
return 0;
}

goto WndProcDefault;
return DefFrameProc(hWnd, hWndMDIClient, message, wParam, lParam);
}

case WM_COMMAND:
if (CmdProc(hWnd, wParam, lParam))
return 0;

goto WndProcDefault;
return DefFrameProc(hWnd, hWndMDIClient, message, wParam, lParam);

case WM_CLOSE:
if (bSaveSettings)
Expand All @@ -76,7 +76,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
break;

default:
WndProcDefault:
return DefFrameProc(hWnd, hWndMDIClient, message, wParam, lParam);
}
return 0;
Expand Down

0 comments on commit e0fa663

Please sign in to comment.