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>
This commit is contained in:
2025-11-29 20:17:20 +09:00
parent 5d3cd64a25
commit dd97ddec92
11602 changed files with 1446576 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
#include "stdafx.h"
#include "SysTray.h"
#include <shellapi.h>
#include <stdio.h>
// constructor and destructor
CSysTray::CSysTray(HWND hWnd, HINSTANCE hInstance)
: m_hWnd(hWnd), m_hInstance(hInstance), m_uIconCount(0)
{
memset(&m_IconData, 0, sizeof(NOTIFYICONDATA));
}
CSysTray::~CSysTray()
{
RemoveIcon();
}
// add item
BOOL CSysTray::AddIcon(const char *lpToolTip, HICON hIcon, UINT uID)
{
BOOL res;
if(0 != m_IconData.cbSize)
{
RemoveIcon();
}
m_IconData.cbSize = sizeof(NOTIFYICONDATA);
m_IconData.hWnd = m_hWnd;
m_IconData.uID = uID;
m_IconData.uFlags = NIF_MESSAGE|NIF_ICON|NIF_TIP;
m_IconData.hIcon = hIcon;
m_IconData.uCallbackMessage = GetSysTrayNotifyMsg();
if (lpToolTip)
{
_snprintf(m_IconData.szTip, 64, "%s", lpToolTip);
}
else
{
_snprintf(m_IconData.szTip, 64, "Temp Application");
}
res = Shell_NotifyIcon(NIM_ADD, &m_IconData);
if(res)
{
m_uIconCount++;
}
return res;
}
// remove item
BOOL CSysTray::RemoveIcon(void)
{
BOOL res = Shell_NotifyIcon(NIM_DELETE, &m_IconData);
//decrement the counter
if (res)
{
if(m_IconData.hIcon)
{
DestroyIcon(m_IconData.hIcon);
}
--m_uIconCount;
memset(&m_IconData, 0, sizeof(NOTIFYICONDATA));
}
return res;
}
BOOL CSysTray::Update()
{
if(0 != m_IconData.cbSize)
{
return Shell_NotifyIcon(NIM_MODIFY, &m_IconData);
}
return FALSE;
}
// show popup menu
void CSysTray::ShowPopupMenu(HWND hWnd, HMENU hMenu)
{
POINT mouse;
GetCursorPos(&mouse);
SetForegroundWindow(hWnd);
TrackPopupMenu(hMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON, mouse.x, mouse.y, 0, hWnd, NULL);
SetForegroundWindow(hWnd);
}
const UINT CSysTray::GetSysTrayNotifyMsg()
{
static const UINT s_MsgID = RegisterWindowMessage(TEXT("CSysTrayNotifyMessage"));
return s_MsgID;
}

View File

@@ -0,0 +1,38 @@
#ifndef _MY_SYSTRAY_H_
#define _MY_SYSTRAY_H_
// 2002<30><32> 9<><39> 3<><33>
// <20><><EFBFBD><EFBFBD>ȣ
#pragma once
#include <winsock2.h>
#include <windows.h>
#include <shellapi.h>
class CSysTray
{
private:
NOTIFYICONDATA m_IconData;
HWND m_hWnd;
HINSTANCE m_hInstance;
UINT m_uIconCount;
public:
// constructor and destructor
CSysTray(HWND hWnd, HINSTANCE hInstance);
~CSysTray();
BOOL AddIcon(const char *lpToolTip, HICON hIcon, UINT uID);
BOOL RemoveIcon();
BOOL Update();
void ShowPopupMenu(HWND hWnd, HMENU hMenu);
static const UINT GetSysTrayNotifyMsg();
};
#endif