| Author |
Topic  |
|
|
jdm
6 Posts |
Posted - 12/20/2000 : 1:18:36 PM
|
Sometimes you might want to use both the CBCGFileDialog and the common CFileDialog in the same application (because you sometimes don't want the recent files tab to be displayed). If you invoke a BCGFileDialog after having resized (and closed) a standard FileDialog, the new BCGFileDialog gets the size of the old FileDialog. Weird!
|
|
|
jdm
6 Posts |
Posted - 12/21/2000 : 10:22:21 AM
|
Another problem: setting an initial directory (using m_ofn.lpstrInitialDir) does not work
|
 |
|
|
Support
2571 Posts |
Posted - 12/21/2000 : 1:33:32 PM
|
Hi,
thank you very much for the detailed bug description! The fix is very simple: open file BCGFileDialog.cpp and make the following modification in CBCGFileDialog::WindowProcNew:
LRESULT CALLBACK CBCGFileDialog::WindowProcNew(HWND hwnd,UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { ... case WM_SIZE: { LRESULT lRes = CallWindowProc(CBCGFileDialog::m_wndProc, hwnd, message, wParam, lParam); // Add this CBCGFileDialog* pFD = GetBCGFileDlg (hwnd); .... return lRes; // and this } }
return CallWindowProc(CBCGFileDialog::m_wndProc, hwnd, message, wParam, lParam); }
quote:
Another problem: setting an initial directory (using m_ofn.lpstrInitialDir) does not work
Unable to reconstruct this problem. We've tried the following code and it works fine:
CBCGFileDialog dlg ("Test", TRUE); dlg.m_ofn.lpstrInitialDir = "c:\\work"; dlg.DoModal ();
Best regards,
Technical Support BCGSoft Ltd.
Edited by - support on 12/21/2000 14:05:06 |
 |
|
|
jdm
6 Posts |
Posted - 12/21/2000 : 2:52:17 PM
|
Thanks for your help. I appreciate the quick response.
|
 |
|
| |
Topic  |
|
|
|