[osg-users] Oldie, but goodie... Aero themes and OpenGL/MFC
Andrew Cunningham
andrewC at mac.com
Wed Jul 1 15:17:08 PDT 2015
Hi,
I created a new class that inherits from CSplitterWndEx ( I am using the MFC feature pack, but it should apply to CSplitterWnd )
and added these methods
....
virtual void StartTracking(int ht);
virtual void StopTracking(BOOL bAccept);
virtual void OnInvertTracker(const CRect& rect);
If enableTrackSplitter_=false, you will no longer get the nasty trails left over the 3D window.
void CTransposableSplitterWnd::StartTracking(int ht)
{
CSplitterWndEx::StartTracking(ht);
}
void CTransposableSplitterWnd::StopTracking(BOOL bAccept)
{
CSplitterWndEx::StopTracking(bAccept);
}
void CTransposableSplitterWnd::OnInvertTracker(const CRect& rect)
{
if(enableTrackSplitter_){
CSplitterWndEx::OnInvertTracker(rect);
}
}
Cheers,
Andrew
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64238#64238
More information about the osg-users
mailing list