SupportBuyTry
BCGSoft: Forums
BCGSoft: Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 BCGControlBar Forums
 BCGControlBar Bugs and Problems
 CBCGFileDialog problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jdm

6 Posts

Posted - 12/20/2000 :  1:18:36 PM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
Another problem: setting an initial directory (using m_ofn.lpstrInitialDir) does not work

Go to Top of Page

Support

2571 Posts

Posted - 12/21/2000 :  1:33:32 PM  Show Profile  Visit Support's Homepage  Reply with Quote
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
Go to Top of Page

jdm

6 Posts

Posted - 12/21/2000 :  2:52:17 PM  Show Profile  Reply with Quote
Thanks for your help. I appreciate the quick response.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft: Forums © Copyright (c) 1998-2010 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000
Copyright © 1998-2008 BCGSoft CO Ltd. All rights reserved. Terms of Use | Privacy Statement
Microsoft, Visual C++, Visual Studio, Visual Studio.NET, Outlook, Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners.
Design by Web-Master.spb and Creativemind