摘要: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);:
阅读全文
01 2012 档案
摘要: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
阅读全文
摘要:项目中需要将UINT64数据输出,使用CString.FormatINT64 i = 1239848894330306899;
CString Msg;
Msg.Format("%I64d“, ui);
MessageBox(Msg); //16进制
char buffer[64]; _i64toa(ui, buffer, 16);
MessageBox(buffer); UINT64 ui = 12398488943303068994;
CString Msg;Msg.Format("%I64u“, ui);
MessageBox(Msg);
阅读全文
摘要:Video Manager and Video Title Set IFO file headersOffsetsizeVMG IFO ContentsFile StructuresVTS IFO Contents000012DVDVIDEO-VMGVMG Files00000000Video_ts.ifo(001C)->(00C0)->Video_ts.vobVideo_ts.bup(000C)->VTS Files Vts_xx_0.ifo00000000<-(001C)Vts_xx_0.vob<-(00C0)Vts_xx_1.vob:Vts_xx_9.vob
阅读全文
摘要://取Exif信息functionGetExifItem(GPImage:TGPImage;ItemID:PROPID):String;varPropSize:UINT;PropItem:PPropertyItem;S:PChar;S1,S2:String;beginPropSize:=GPImage.GetPropertyItemSize(ItemID);ifPropSize=0thenbeginResult:='';Exit;end;GetMem(PropItem,PropSize);GPImage.GetPropertyItem(ItemID,PropSize,PropI
阅读全文
摘要:1、写注册表lResult = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\MapInfo\\MapX\\5.0");if not lResult thenRegistry.CreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\MapInfo\\MapX\\5.0"); end;Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\MapInfo\\MapX\\5.0", "ProgramDi
阅读全文