Hello world with vc++ 2019 & mfc? Trying to make a project running + share experience

Hum… MFC/Panda3d include conflicts!
I want to share a global PandaFramework global variable between sources:
PandaFramework gFramework;;

Here are the application app main class includes:
//#include “pch.h” -> panda3d does not manage precompiled headers
#include “pandaFramework.h”
#include “framework.h”
#include “afxwinappex.h”
#include “afxdialogex.h”
#include “MFCPanda3d.h”
#include “MainFrm.h”

#include “ChildFrm.h”
#include “MFCPanda3dDoc.h”
#include “MFCPanda3dView.h”

Compilation raised a nice:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\atlmfc\include\afxv_w32.h(16,1): fatal error C1189: #error: WINDOWS.H already included. MFC apps must not #include <Windows.h>
… as Panda3d manages Windows windows here
Any idea how it could be cleverly fixed?

I thought about sharing a LPVOID on the global variable gFramework between sources, and cast it to PandaFramework* in panda3d specific sources… Any recommandations? Ex: create interface classes between panda3d specific’s and MFC app core code?