Files
Client/Server/ToolProject/PacketDecoder/FindFFEdit.cpp
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

57 lines
1.0 KiB
C++

// FindFFEdit.cpp : 구현 파일입니다.
//
#include "stdafx.h"
#include "PacketDecoder.h"
#include "FindFFEdit.h"
#include ".\findffedit.h"
// CFindFFEdit
IMPLEMENT_DYNAMIC(CFindFFEdit, CEdit)
CFindFFEdit::CFindFFEdit()
{
}
CFindFFEdit::~CFindFFEdit()
{
}
BEGIN_MESSAGE_MAP(CFindFFEdit, CEdit)
ON_WM_KEYDOWN()
END_MESSAGE_MAP()
// CFindFFEdit 메시지 처리기입니다.
void CFindFFEdit::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: 여기에 메시지 처리기 코드를 추가 및/또는 기본값을 호출합니다.
if (nChar == VK_F3)
{
CString szContents;
GetWindowText(szContents);
szContents.MakeUpper();
int nFoundPos = szContents.Find(_T("FF"), LOWORD(CharFromPos(GetCaretPos())));
if (-1 == nFoundPos)
{
SetSel(0, 0);
nFoundPos = szContents.Find(_T("FF"), LOWORD(CharFromPos(GetCaretPos())));
}
if (0 <= nFoundPos)
{
SetSel(nFoundPos, nFoundPos + 2);
}
}
CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
}