This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2002.
// -------------------------------------------------------------------------
// File name: inplacebutton.cpp
// Version: v1.00
// Created: 6/6/2002 by Timur.
// Compilers: Visual Studio.NET
// Description:
// -------------------------------------------------------------------------
// History: Based on Stefan Belopotocan code.
//
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "InPlaceButton.h"
// CInPlaceButton
IMPLEMENT_DYNAMIC(CInPlaceButton, CXTButton)
CInPlaceButton::CInPlaceButton( OnClick onClickFunctor )
{
m_onClick = onClickFunctor;
}
CInPlaceButton::~CInPlaceButton()
{
}
BEGIN_MESSAGE_MAP(CInPlaceButton, CXTButton)
ON_CONTROL_REFLECT(BN_CLICKED, OnBnClicked)
END_MESSAGE_MAP()
// CInPlaceButton message handlers
void CInPlaceButton::OnBnClicked()
{
if (m_onClick)
m_onClick();
}
void CInPlaceButton::Click()
{
OnBnClicked();
}