summaryrefslogtreecommitdiff
path: root/win/Steppop.cpp
diff options
context:
space:
mode:
authorleo2006-02-14 05:47:16 +0000
committerleo2006-02-14 05:47:16 +0000
commit517715abd19f057b9d4894bcc86de8a4edd52234 (patch)
treec00bfdc017c28f69b97eeb9969ce09a987e2c068 /win/Steppop.cpp
parente7a01e3d8402bce14ba6433d41095c5362076ff3 (diff)
Added the lcApplication class.
git-svn-id: http://svn.leocad.org/trunk@473 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Steppop.cpp')
-rw-r--r--win/Steppop.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/Steppop.cpp b/win/Steppop.cpp
index eff6447..3314763 100644
--- a/win/Steppop.cpp
+++ b/win/Steppop.cpp
@@ -6,6 +6,7 @@
#include "StepPop.h"
#include "project.h"
#include "globals.h"
+#include "lc_application.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -32,7 +33,7 @@ CStepPopup::CStepPopup(CPoint pt, CWnd* pParentWnd)
m_Slider.Create (WS_CHILD|WS_VISIBLE|TBS_BOTH|TBS_HORZ|TBS_NOTICKS, CRect(5,10,90,30), this, 1000);
int from, to;
- project->GetTimeRange(&from, &to);
+ lcGetActiveProject()->GetTimeRange(&from, &to);
m_Slider.SetRange(1, to);
m_Slider.SetPos(from);
}
@@ -82,7 +83,7 @@ void CStepPopup::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
int pos = m_Slider.GetPos();
if (pos > 0)
- project->HandleCommand(LC_VIEW_STEP_SET, pos);
+ lcGetActiveProject()->HandleCommand(LC_VIEW_STEP_SET, pos);
CWnd::OnHScroll(nSBCode, nPos, pScrollBar);
}