2020-11-05 16:44:34 +01:00
|
|
|
#pragma once
|
2020-11-29 16:50:49 +01:00
|
|
|
#include "gdrv.h"
|
2020-11-05 16:44:34 +01:00
|
|
|
|
2020-11-07 16:41:14 +01:00
|
|
|
class winmain
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
|
|
|
|
static LRESULT CALLBACK message_handler(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
|
|
|
static void memalloc_failure();
|
|
|
|
static int ProcessWindowMessages();
|
|
|
|
static int check_expiration_date();
|
|
|
|
static HDC _GetDC(HWND hWnd);
|
|
|
|
static int a_dialog(HINSTANCE hInstance, HWND hWnd);
|
|
|
|
private:
|
2020-11-29 16:50:49 +01:00
|
|
|
static int iFrostUniqueMsg, return_value, bQuit, DispFrameRate, DispGRhistory;
|
|
|
|
static int has_focus, single_step, mouse_down, last_mouse_x, last_mouse_y, no_time_loss;
|
|
|
|
static DWORD then, now;
|
|
|
|
static gdrv_bitmap8 gfr_display;
|
2020-11-07 16:41:14 +01:00
|
|
|
|
|
|
|
static HDC _BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint);
|
|
|
|
};
|