// KeyBar.cpp: implementation of the CKeyBar class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "EffectEditor.h" #include "KeyBar.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CKeyBar::CKeyBar() { } CKeyBar::~CKeyBar() { } void CKeyBar::Destory() { m_lpKeySheet->DestroyWindow(); delete m_lpKeySheet; } void CKeyBar::OnInitDialogBar() { m_lpKeySheet=new CKeySheet("Belldandy"); m_lpKeySheet->Create(this, WS_CHILD | WS_VISIBLE, 0); m_lpKeySheet->ModifyStyleEx(0, WS_EX_CONTROLPARENT); m_lpKeySheet->ModifyStyle(0, WS_TABSTOP); m_lpKeySheet->MoveWindow(0, 0, 1000, 500); }