// FolderJoinLAN.h: interface for the CFolderJoinLAN class. // ////////////////////////////////////////////////////////////////////// #ifndef _FOLDER_JOIN_LAN_H_ #define _FOLDER_JOIN_LAN_H_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "BaseFolder.h" class CFolderJoinLAN : public CBaseFolder { public: CFolderJoinLAN(); virtual ~CFolderJoinLAN(); // Build the folder LTBOOL Build(); LTBOOL Render(HSURFACE hDestSurf); LTBOOL OnLButtonUp(int x, int y); LTBOOL OnRButtonUp(int x, int y); void OnFocus(LTBOOL bFocus); LTBOOL HandleKeyDown(int key, int rep); void Escape(); void JoinCurGame(); protected: uint32 OnCommand(uint32 dwCommand, uint32 dwParam1, uint32 dwParam2); LTBOOL InitSessions(); void FindServers(); LTBOOL SetService(); LTBOOL IsCurrentGame(CString sAddress); LTBOOL DoJoinGame(CString sAddress); LTBOOL IsValidPort(uint16 nPort); int m_nFrameDelay; char m_szPort[8]; CGroupCtrl *m_pPortGroup; CLTGUIEditCtrl *m_pPortEdit; CLTGUITextItemCtrl *m_pPortLabel; CMoArray m_lstSessions; }; inline LTBOOL CFolderJoinLAN::IsValidPort(uint16 nPort) { return LTTRUE; } #endif // _FOLDER_MULTI_H_