reorganize and move things out of headers

This commit is contained in:
Brady McDermott
2024-07-30 22:08:30 -06:00
parent 174edb0aaa
commit e3187f62c3
11 changed files with 34 additions and 38 deletions

View File

@@ -9,11 +9,11 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#include "progmgr.h" #define WIN32_LEAN_AND_MEAN
#include "resource.h"
// #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
#include <CommCtrl.h> #include <CommCtrl.h>
#include "progmgr.h"
#include "resource.h"
/* Structures */ /* Structures */
typedef struct _mrp typedef struct _mrp

View File

@@ -9,8 +9,8 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#include "progmgr.h"
#include <Windows.h> #include <Windows.h>
#include "progmgr.h"
/* Structures */ /* Structures */
typedef struct _DPI typedef struct _DPI

View File

@@ -9,16 +9,18 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Commctrl.h>
#include <Commdlg.h>
#include <Shlobj.h>
#include <shlwapi.h>
#include <shellapi.h>
#include <strsafe.h>
#include "progmgr.h" #include "progmgr.h"
#include "dialog.h" #include "dialog.h"
#include "group.h" #include "group.h"
#include "resource.h" #include "resource.h"
// #define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Commctrl.h>
#include <Shlobj.h>
#include <shlwapi.h>
#include <strsafe.h>
/* Variables */ /* Variables */
WCHAR szDlgTitle[64]; WCHAR szDlgTitle[64];

View File

@@ -8,17 +8,18 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#include "progmgr.h" #define WIN32_LEAN_AND_MEAN
#include "group.h"
#include "resource.h"
#include "registry.h"
// #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
#include <windowsx.h> #include <windowsx.h>
#include <CommCtrl.h> #include <CommCtrl.h>
#include <shlwapi.h> #include <shlwapi.h>
#include <shellapi.h>
#include <strsafe.h> #include <strsafe.h>
#include <uxtheme.h> #include <uxtheme.h>
#include "progmgr.h"
#include "group.h"
#include "resource.h"
#include "registry.h"
/* Variables */ /* Variables */
WNDCLASSEX wcGrp; WNDCLASSEX wcGrp;

View File

@@ -10,9 +10,6 @@
/* Pragmas */ /* Pragmas */
#pragma once #pragma once
/* Includes */
#include <CommCtrl.h>
/* Definitions */ /* Definitions */
#define MAX_GROUPS 512 #define MAX_GROUPS 512
#define MAX_ITEMS 512 #define MAX_ITEMS 512

View File

@@ -8,13 +8,13 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#define WIN32_LEAN_AND_MEAN
#define SECURITY_WIN32
#include <Windows.h>
#include "progmgr.h" #include "progmgr.h"
#include "group.h" #include "group.h"
#include "resource.h" #include "resource.h"
#include "registry.h" #include "registry.h"
// #define WIN32_LEAN_AND_MEAN
#define SECURITY_WIN32
#include <Windows.h>
/* Variables */ /* Variables */
// Global // Global

View File

@@ -11,13 +11,11 @@
#pragma once #pragma once
#pragma comment(lib, "ComCtl32.lib") #pragma comment(lib, "ComCtl32.lib")
#pragma comment(lib, "Shlwapi.lib") #pragma comment(lib, "Shlwapi.lib")
#pragma comment(lib, "Shell32.lib")
#pragma comment(lib, "Secur32.lib") #pragma comment(lib, "Secur32.lib")
#pragma comment(lib, "UxTheme.lib") #pragma comment(lib, "UxTheme.lib")
#pragma comment(lib, "Version.lib") #pragma comment(lib, "Version.lib")
/* Includes */
#include <wtypes.h>
/* Macros and Defines */ /* Macros and Defines */
#define GET_WM_COMMAND_ID(wParam, lParam) LOWORD(wParam) #define GET_WM_COMMAND_ID(wParam, lParam) LOWORD(wParam)
// RunFileDlg flags // RunFileDlg flags

View File

@@ -8,13 +8,13 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#include "progmgr.h" #define WIN32_LEAN_AND_MEAN
#include "group.h"
#include "registry.h"
// #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
#include <shlwapi.h> #include <shlwapi.h>
#include <strsafe.h> #include <strsafe.h>
#include "progmgr.h"
#include "group.h"
#include "registry.h"
/* Variables */ /* Variables */
// Global HKEYs // Global HKEYs

View File

@@ -10,9 +10,6 @@
/* Pragmas */ /* Pragmas */
#pragma once #pragma once
/* Includes */
#include <wtypes.h>
/* Defines */ /* Defines */
#define HKEYMAXLEN 261 #define HKEYMAXLEN 261
// Key Paths // Key Paths

View File

@@ -8,9 +8,9 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#include "progmgr.h"
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <Windows.h> #include <Windows.h>
#include "progmgr.h"
/* Functions */ /* Functions */

View File

@@ -8,17 +8,18 @@
\* * * * * * * */ \* * * * * * * */
/* Headers */ /* Headers */
#define WIN32_LEAN_AND_MEAN
#define SECURITY_WIN32
#include <Windows.h>
#include <strsafe.h>
#include <shellapi.h>
#include <Lmcons.h>
#include <security.h>
#include "progmgr.h" #include "progmgr.h"
#include "dialog.h" #include "dialog.h"
#include "group.h" #include "group.h"
#include "resource.h" #include "resource.h"
#include "registry.h" #include "registry.h"
// #define WIN32_LEAN_AND_MEAN
#define SECURITY_WIN32
#include <Windows.h>
#include <strsafe.h>
#include <Lmcons.h>
#include <security.h>
/* Functions */ /* Functions */