[ATL] Add some hacks for gcc,

since parsing templates is not something it can do
This commit is contained in:
Mark Jansen 2020-03-17 22:35:53 +01:00
parent 4439b53800
commit 1437433039
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
2 changed files with 11 additions and 1 deletions

View file

@ -456,7 +456,7 @@ class CComCreator2
public:
static HRESULT WINAPI CreateInstance(void *pv, REFIID riid, LPVOID *ppv)
{
ATLASSERT(ppv != NULL && riid != NULL);
ATLASSERT(ppv != NULL && &riid != NULL);
if (pv == NULL)
return T1::CreateInstance(NULL, riid, ppv);

View file

@ -1465,6 +1465,7 @@ public:
// + Hacks for gcc
using CWindowImplRoot<TBase>::WINSTATE_DESTROYED;
using CWindowImplRoot<TBase>::m_thunk;
using CWindowImplRoot<TBase>::m_hWnd;
// - Hacks for gcc
WNDPROC m_pfnSuperWindowProc;
@ -1623,6 +1624,11 @@ template <class T, class TBase = CWindow, class TWinTraits = CControlWinTraits>
class CWindowImpl : public CWindowImplBaseT<TBase, TWinTraits>
{
public:
// + Hacks for gcc
using CWindowImplRoot<TBase>::m_hWnd;
// - Hacks for gcc
static LPCTSTR GetWndCaption()
{
return NULL;
@ -1655,6 +1661,10 @@ template <class TBase = CWindow, class TWinTraits = CControlWinTraits>
class CContainedWindowT : public TBase
{
public:
// + Hacks for gcc
using TBase::m_hWnd;
// - Hacks for gcc
CWndProcThunk m_thunk;
LPCTSTR m_lpszClassName;
WNDPROC m_pfnSuperWindowProc;