error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CGameFrame::* )(CPoint
BEGIN_MESSAGE_MAP(CGameFrame,CFrameWnd)ON_WM_SIZE()ON_WM_PAINT()ON_WM_CLOSE()ON_WM_CR...
BEGIN_MESSAGE_MAP(CGameFrame, CFrameWnd)
ON_WM_SIZE()
ON_WM_PAINT()
ON_WM_CLOSE()
ON_WM_CREATE()
ON_WM_NCHITTEST()
ON_WM_ERASEBKGND()
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONDBLCLK()
ON_WM_SETTINGCHANGE()
ON_WM_GETMINMAXINFO()
ON_MESSAGE(WM_HOTKEY,OnHotKeyMessage)
ON_MESSAGE(WM_SETUP_FINISH,OnMessageSetupFinish)
ON_MESSAGE(WM_CLOSE_ROOM_VIEW_ITEM,OnCloseRoomViewItem)
ON_WM_NCMOUSEMOVE()
// ON_WM_MOUSEMOVE()
ON_WM_ACTIVATE()
END_MESSAGE_MAP()
//////////////////////////////////////////////////////////////////////////
//构造函数
CGameFrame::CGameFrame():m_Splitter(VorSpliter)
{
//设置变量
m_bRectify=false;
m_bHideGameList=false;
m_wShowListType=IDC_BT_LIST_CONTROL_1;
m_pActiveViewItem=NULL;
m_pRoomViewItemCreate=NULL;
memset(m_pRoomViewItem,0,sizeof(m_pRoomViewItem));
//界面状态
m_bMaxShow=false;
m_rcNormalSize.SetRect(0,0,0,0);
return;
错误信息:
error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CGameFrame::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
Cast from base to derived requires dynamic_cast or static_cast 展开
ON_WM_SIZE()
ON_WM_PAINT()
ON_WM_CLOSE()
ON_WM_CREATE()
ON_WM_NCHITTEST()
ON_WM_ERASEBKGND()
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONDBLCLK()
ON_WM_SETTINGCHANGE()
ON_WM_GETMINMAXINFO()
ON_MESSAGE(WM_HOTKEY,OnHotKeyMessage)
ON_MESSAGE(WM_SETUP_FINISH,OnMessageSetupFinish)
ON_MESSAGE(WM_CLOSE_ROOM_VIEW_ITEM,OnCloseRoomViewItem)
ON_WM_NCMOUSEMOVE()
// ON_WM_MOUSEMOVE()
ON_WM_ACTIVATE()
END_MESSAGE_MAP()
//////////////////////////////////////////////////////////////////////////
//构造函数
CGameFrame::CGameFrame():m_Splitter(VorSpliter)
{
//设置变量
m_bRectify=false;
m_bHideGameList=false;
m_wShowListType=IDC_BT_LIST_CONTROL_1;
m_pActiveViewItem=NULL;
m_pRoomViewItemCreate=NULL;
memset(m_pRoomViewItem,0,sizeof(m_pRoomViewItem));
//界面状态
m_bMaxShow=false;
m_rcNormalSize.SetRect(0,0,0,0);
return;
错误信息:
error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CGameFrame::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
Cast from base to derived requires dynamic_cast or static_cast 展开
展开全部
问题好像是 m_Splitter(VorSpliter)
去掉 : m_Splitter(VorSpliter)
试:
CGameFrame::CGameFrame()
因为 CGameFrame 来自 CFrameWnd 来自 CWnd,与 m_Splitter(VorSpliter) 有矛盾。
去掉 : m_Splitter(VorSpliter)
试:
CGameFrame::CGameFrame()
因为 CGameFrame 来自 CFrameWnd 来自 CWnd,与 m_Splitter(VorSpliter) 有矛盾。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询