whisht

    十年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  125 随笔 :: 1 文章 :: 7 评论 :: 19万 阅读
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

01 2012 档案

摘要:HWNDm_hWndParent;BOOLm_fullscreen;voidCDialog::SwitchFullScreen(void){LONGstyle=::GetWindowLong(this-&gt;m_hWnd,GWL_STYLE);if(m_fullscreen==false){//隐藏系统任务栏CWnd*wnd=FindWindow("Shell_TrayWnd",NULL);wnd-&gt;SetWindowPos(NULL,0,0,0,0,SWP_HIDEWINDOW);m_hWndParent=::GetParent(m_hWnd);: 阅读全文
posted @ 2012-01-11 16:45 WHISHT 阅读(445) 评论(0) 推荐(0) 编辑

摘要:HWND m_hWndParent;BOOL m_fullscreen;void CDialog::SwitchFullScreen(void){ LONG style = ::GetWindowLong(this->m_hWnd, GWL_STYLE); if (m_fullscreen == f... 阅读全文
posted @ 2012-01-11 16:45 WHISHT 阅读(270) 评论(0) 推荐(0) 编辑

摘要:解决弹出菜单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... 阅读全文
posted @ 2012-01-11 16:09 WHISHT 阅读(1144) 评论(0) 推荐(0) 编辑

摘要:近日使用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 阅读全文
posted @ 2012-01-11 14:52 WHISHT 阅读(974) 评论(1) 推荐(0) 编辑

摘要: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 阅读全文
posted @ 2012-01-11 10:23 WHISHT 阅读(748) 评论(0) 推荐(0) 编辑

摘要:项目中需要将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); 阅读全文
posted @ 2012-01-10 11:23 WHISHT 阅读(427) 评论(0) 推荐(0) 编辑

摘要: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 阅读全文
posted @ 2012-01-07 22:24 WHISHT 阅读(1655) 评论(0) 推荐(0) 编辑

摘要://取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 阅读全文
posted @ 2012-01-07 22:22 WHISHT 阅读(1089) 评论(0) 推荐(0) 编辑

摘要: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 阅读全文
posted @ 2012-01-07 22:21 WHISHT 阅读(1374) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示