DragonNest/Server/ServiceManagerEx/Commander.h
2024-12-20 16:56:44 +08:00

28 lines
868 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
class CCommander : public CEdit
{
DECLARE_DYNAMIC(CCommander)
public:
CCommander();
virtual ~CCommander();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
public:
void SetCommand(const wstring& command);
void OnCommand();
void OnPrevCommand();
void OnNextCommand();
private:
vector<wstring> history;
size_t index;
};