Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
////////////////////////////////////////////////////////////////
|
|
// PixieLib(TM) Copyright 1997-1999 Paul DiLascia
|
|
// If this code works, it was written by Paul DiLascia.
|
|
// If not, I don't know who wrote it.
|
|
//
|
|
#ifndef _STATLINK_H
|
|
#define _STATLINK_H
|
|
|
|
#include "HyprLink.h"
|
|
|
|
//////////////////
|
|
// CStaticLink implements a static control that's a hyperlink
|
|
// to any file on your desktop or web. You can use it in dialog boxes
|
|
// to create hyperlinks to web sites. When clicked, opens the file/URL
|
|
//
|
|
class CStaticLink : public CStatic {
|
|
public:
|
|
DECLARE_DYNAMIC(CStaticLink)
|
|
CStaticLink(LPCTSTR lpText = NULL, BOOL bDeleteOnDestroy=FALSE);
|
|
~CStaticLink() { }
|
|
|
|
// Hyperlink contains URL/filename. If NULL, I will use the window text.
|
|
// (GetWindowText) to get the target.
|
|
CHyperlink m_link;
|
|
COLORREF m_color;
|
|
|
|
// Default colors you can change
|
|
// These are global, so they're the same for all links.
|
|
static COLORREF g_colorUnvisited;
|
|
static COLORREF g_colorVisited;
|
|
|
|
// Cursor used when mouse is on a link--you can set, or
|
|
// it will default to the standard hand with pointing finger.
|
|
// This is global, so it's the same for all links.
|
|
static HCURSOR g_hCursorLink;
|
|
|
|
protected:
|
|
CFont m_font; // underline font for text control
|
|
BOOL m_bDeleteOnDestroy; // delete object when window destroyed?
|
|
|
|
virtual void PostNcDestroy();
|
|
|
|
// message handlers
|
|
DECLARE_MESSAGE_MAP()
|
|
afx_msg UINT OnNcHitTest(CPoint point);
|
|
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
|
|
};
|
|
|
|
#endif _STATLINK_H
|