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>
56 lines
1.6 KiB
C++
56 lines
1.6 KiB
C++
// GUIScroll.h: interface for the CGUIScroll class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_GUISCROLL_H__C81725BD_9D43_4837_9DCC_A1DD9832F875__INCLUDED_)
|
|
#define AFX_GUISCROLL_H__C81725BD_9D43_4837_9DCC_A1DD9832F875__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "GUIButton.h"
|
|
|
|
#define SCROLL_VSCROLL FALSE
|
|
#define SCROLL_HSCROLL TRUE
|
|
|
|
class CGUIScroll
|
|
{
|
|
public:
|
|
BOOL m_bShow;
|
|
BOOL m_bScrollKind;
|
|
POINT m_ptPosition;
|
|
RECT m_rcEdge;
|
|
CGUIButton *m_lpBarButton;
|
|
CGUIButton *m_lpUpArrowButton;
|
|
CGUIButton *m_lpDownArrowButton;
|
|
long m_lMax;
|
|
long m_lMin;
|
|
long *m_lValue;
|
|
long m_lNowPos;
|
|
|
|
long lMove;
|
|
BOOL bScroll;
|
|
|
|
CGUIScroll();
|
|
~CGUIScroll();
|
|
|
|
void SetEdge(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)
|
|
{
|
|
m_rcEdge.left = x1; m_rcEdge.top = y1; m_rcEdge.right = x2; m_rcEdge.bottom = y2;
|
|
}
|
|
void SetMove(unsigned short wMoveX, unsigned short wMoveY)
|
|
{
|
|
m_lpBarButton->SetMove(wMoveX, wMoveY);
|
|
if(m_lpUpArrowButton) m_lpUpArrowButton->SetMove(wMoveX, wMoveY);
|
|
if(m_lpDownArrowButton) m_lpDownArrowButton->SetMove(wMoveX, wMoveY);
|
|
}
|
|
void SetScrollKind(BOOL bScrollKind) { m_bScrollKind = bScrollKind; }
|
|
void SetRange(long lMin, long lMax) { m_lMin = lMin; m_lMax = lMax; }
|
|
void SetPosition(unsigned short wPosX, unsigned short wPosY) { m_ptPosition.x = wPosX; m_ptPosition.y = wPosY; }
|
|
void Update(void);
|
|
void Render(LPDIRECT3DDEVICE8 lpD3DDevice, unsigned char cAlpha = 0xFF);
|
|
};
|
|
|
|
#endif // !defined(AFX_GUISCROLL_H__C81725BD_9D43_4837_9DCC_A1DD9832F875__INCLUDED_)
|