void cmainframe::onfileimport()
if ( m_strcurrentdirpath.getlength() == strdir.getlength() && m_strcurrentdirpath == strdir )
position npos = dlg.getstartposition();
cmediator *pmediator = cmediator::getmediatorptr();
while (npos != null)
}//pmediator->invalidate();
::sendmessage( m_wndsplitter.getpane(0, 1)->m_hwnd, wm_user_setstatus, (wparam)2, null);
}}
MFC 實現開啟檔案對話方塊 儲存檔案對話方塊
cfiledialog cfiledialog bool bopenfiledialog,lpctstr lpszdefext null,lpctstr lpszfilename null,dword dwflags ofn hidereadonly ofn overwriteprompt,lpct...
開啟對話方塊開啟多個檔案
專案中需要開啟多個檔案,注意的地方1 ofn allowmultiselect 2 m ofn.lpstrfile要分配大點的記憶體 我發現 用ctrl a全選檔案,檔名按從小到大加進去。用shift新增檔案,檔名不是按從小到大加進去的。cstring strfilepath cstring str...
VC6 在對話方塊中開啟新對話方塊
在應用軟體中,常需要在當前視窗或對話方塊中再開啟乙個對話方塊,如button按鈕開啟 圖示按鈕開啟 選單選項開啟等,這樣就需要建立對話方塊。對話方塊分模態對話方塊和非模態對話方塊。具體的區別可以到網路上查詢。建立這兩種對話方塊的方法為 1 建立一非模態對話方塊 cmydlg pmainwnd new...