摘要:
HWNDm_hWndParent;BOOLm_fullscreen;voidCDialog::SwitchFullScreen(void){LONGstyle=::GetWindowLong(this->m_hWnd,GWL_STYLE);if(m_fullscreen==false){//隐藏系统任务栏CWnd*wnd=FindWindow("Shell_TrayWnd",NULL);wnd->SetWindowPos(NULL,0,0,0,0,SWP_HIDEWINDOW);m_hWndParent=::GetParent(m_hWnd);: 阅读全文
摘要:
HWND m_hWndParent;BOOL m_fullscreen;void CDialog::SwitchFullScreen(void){ LONG style = ::GetWindowLong(this->m_hWnd, GWL_STYLE); if (m_fullscreen == f... 阅读全文
摘要:
解决弹出菜单OnUpdata事件无效,重载窗体事件:OnInitMenuPopupvoid CDialog::OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu)
{ //CDialog::OnInitMenuPopup(pPopupMenu, nIndex, bSysMenu); // TODO: 在此处添加消息处理程序代码 ASSERT(pPopupMenu != NULL); // Check the enabled state of various menu items. CCmdUI s... 阅读全文
摘要:
近日使用VC开发一个带对话框的ActiveX控件第一步:创建ActiveX控件,正常使用第二步:ActiveX控件添加对话框,正常,参见http://blog.csdn.net/ljz9425/article/details/7192786第三步:对话框添加常用控件,测试正常第四步:对话框添加ActiveX控件,测试错误:debug assertion failed f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\winocc.cpp,经分析得原因是因为VC在创建ActiveX是不支持嵌入其它OLE对象,修改工程初始化方法BOOL CrApp::InitI 阅读全文
摘要:
I wanted to create a control which would behave as a dialog or formview (you can place controls here). There is a simple way to do it - to take advantage of ActiveX.Create a new MFC ActiveX ControlWizard workspace (no need to special options).Insert a new dialog resource named IDC_MYDIALOG (check fo 阅读全文