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
 Bug with Multiple Montiors
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gabmurillo

27 Posts

Posted - 04/19/2001 :  7:39:59 PM  Show Profile  Reply with Quote
You have a minor but with Multiple Monitors and saving the state of the application. I use control bars and if they are floating
on Monitor 2, they are saved at the right edge of Monitor 1. Also, if the entire App is on Monitor 2, then it seems the state
of the App does not get saved.

Thanks

Gabriel

tm

1 Posts

Posted - 04/20/2001 :  10:41:36 AM  Show Profile  Reply with Quote
There is another bug with multiple monitors. If for example the primary monitor is not the leftmost one you have to deal with negative x-coordinates.
If you start one of the BCG Controlbar examples, move it to the leftmost monitor and rightclick in the toolbar area the context menu will be displayed on the primary monitor.
To avoid this problem you simply have to use GET_X_LPARAM/GET_Y_LPARAM (defined in windowsx.h) instead of LOWORD/HIWORD when extracting coordinate information from an LPARAM value, especially in
CMainFrame::OnToolbarContextMenu
. There are further occurences; search for LOWORD to find them all...
More information about the pitfalls when using multiple monitors can be found in MSDN (search for 'Multiple Display Monitors').

Thomas

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