#include "stdafx.h"
#include "GMTool.h"
#include "resource.h"

/// 스킬 관련
void cGMTool::InitDlgSkill()
{
	HWND hWnd = mSubDlg[GMTOOL_SUBDLG_SKILL];

	/// 위치세팅
	RECT rc0;
	::GetWindowRect( mMainDlg, &rc0 );
	int x = rc0.right;
	int y = rc0.top + GetSystemMetrics(SM_CYCAPTION);
	::SetWindowPos( hWnd, 0, x, y, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE );

	mSubDlgPos[GMTOOL_SUBDLG_SKILL].x = 0;
	mSubDlgPos[GMTOOL_SUBDLG_SKILL].y = GetSystemMetrics(SM_CYCAPTION);
}

void cGMTool::OnCommandSkill( int id, int msg )
{
	switch( id )
	{
	case IDC_BUTTON_SKILLCREATE:
		::ShowWindow( mSubDlg[GMTOOL_SUBDLG_SKILL], SW_HIDE );
		break;
	case IDC_BUTTON_SKILLCANCEL:
		::ShowWindow( mSubDlg[GMTOOL_SUBDLG_SKILL], SW_HIDE );
		::SetActiveWindow( mParentWnd );
		break;
	}
}

bool cGMTool::LoadSkillData()
{
	return true;
}