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 Suggestions List
 Disable window animation when minimizing
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

blarivie

2 Posts

Posted - 05/13/2002 :  1:25:38 PM  Show Profile  Reply with Quote
In BCGWindowsManagerDlg.cpp, it would be nice to disable the animation when several windows are cascaded, tiled or minimized.
On my system, it takes around 30 seconds to minimize 100 windows.
Here are my changes if you want them: (I wouldn't have to redo it everytime you release a new version ;-)

//-------------------------------------------------------------------
// blarivie - 001205 - Faster if disable window animation
class CDisableAnimation
{
public:
CDisableAnimation()
{
// Inquire animation flag
ANIMATIONINFO anim;
anim.cbSize=sizeof(ANIMATIONINFO);
SystemParametersInfo(SPI_GETANIMATION, 0, &anim, 0);
m_bPrevAnimation=(anim.iMinAnimate!=0);

// Disable animation
anim.iMinAnimate=FALSE;
SystemParametersInfo(SPI_SETANIMATION, 0, &anim, 0);
}

~CDisableAnimation()
{
// Set back previous animation
ANIMATIONINFO anim;
anim.cbSize=sizeof(ANIMATIONINFO);
anim.iMinAnimate=m_bPrevAnimation;
SystemParametersInfo(SPI_SETANIMATION, 0, &anim, 0);
}

private:
BOOL m_bPrevAnimation;
};


//-------------------------------------------------------------------
In MDIMessage() and in OnMinimize()...
CDisableAnimation anim; // blarivie - 001205 - Faster if disable window animation

Support

2572 Posts

Posted - 05/14/2002 :  03:32:22 AM  Show Profile  Visit Support's Homepage  Reply with Quote
Thank you very much! We'll include this feature into the next library release (5.84)

Best regards,

BCGSoft Technical Support
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