请问各位大虾,我的一个菜单特效是在基于对话框中实现的~但我想把MDI中的菜单也实现这个特效~代码如下:
font.CreateFont(-20,0,0,0,900,0,0,0,0,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,
DEFAULT_PITCH,"Times New Roman");
m_menu = new CFreeMenu(IDR_MYImgProcessTYPE,CPoint(10,10),this,
RGB(0,192,192),
RGB(0,225,255),
RGB(0,128,128),
RGB(255,255,255),&font,0);
m_menu->DrawMenu();
提示的错误为:
error C2664: '__thiscall CFreeMenu::CFreeMenu(unsigned int,class CPoint,class CWnd *,unsigned long,unsigned long,unsigned long,unsigned long,class CFont *,
int,class CFreeMenu *)' : cannot convert parameter 3 from 'class CMyImgProcessApp *const ' to 'class CWnd *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast请问该如何解决呢?~
font.CreateFont(-20,0,0,0,900,0,0,0,0,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,
DEFAULT_PITCH,"Times New Roman");
m_menu = new CFreeMenu(IDR_MYImgProcessTYPE,CPoint(10,10),this,
RGB(0,192,192),
RGB(0,225,255),
RGB(0,128,128),
RGB(255,255,255),&font,0);
m_menu->DrawMenu();
提示的错误为:
error C2664: '__thiscall CFreeMenu::CFreeMenu(unsigned int,class CPoint,class CWnd *,unsigned long,unsigned long,unsigned long,unsigned long,class CFont *,
int,class CFreeMenu *)' : cannot convert parameter 3 from 'class CMyImgProcessApp *const ' to 'class CWnd *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast请问该如何解决呢?~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货