2005-01-21 16:08:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
#include "CRank.h"
|
|
|
|
|
|
|
|
// Constants
|
|
|
|
#define MAX_LOADSTRING 100
|
|
|
|
#define VERSION "0.2"
|
2005-01-22 13:24:26 +00:00
|
|
|
#define STATS_FILENAME "csstats.dat"
|
2005-01-21 16:08:36 +00:00
|
|
|
|
|
|
|
// Global Variables:
|
|
|
|
HINSTANCE hInst; // current instance
|
|
|
|
TCHAR g_szTitle[MAX_LOADSTRING]; // The title bar text
|
|
|
|
TCHAR g_szWindowClass[MAX_LOADSTRING]; // the main window class name
|
|
|
|
RankSystem g_rank;
|
|
|
|
HWND g_hWnd;
|
|
|
|
|
|
|
|
// Forward declarations of functions included in this code module:
|
|
|
|
ATOM MyRegisterClass(HINSTANCE hInstance);
|
|
|
|
BOOL InitInstance(HINSTANCE, int);
|
|
|
|
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
|
|
|
LRESULT CALLBACK WinCSXBox(HWND, UINT, WPARAM, LPARAM);
|
2005-01-21 16:23:55 +00:00
|
|
|
LRESULT CALLBACK AboutBox(HWND, UINT, WPARAM, LPARAM);
|
2005-01-21 16:08:36 +00:00
|
|
|
bool LoadRankFromFile(HWND hDlg);
|
|
|
|
|