mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[CARDLIB]
* Move some inclusions to the main header. * Remove inclusions and definitions that already exist in the main header. CORE-7716 svn path=/trunk/; revision=61532
This commit is contained in:
Vendored
+1
-1
@@ -102,4 +102,4 @@ private:
|
||||
bool fFaceUp;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* _CARD_INCLUDED */
|
||||
|
||||
+1
-10
@@ -5,16 +5,7 @@
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
|
||||
//#include <windows.h>
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdarg.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include "globals.h"
|
||||
#include "cardcolor.h"
|
||||
#include "cardlib.h"
|
||||
|
||||
#ifndef __REACTOS__
|
||||
#pragma comment( lib, "..\\CardLib\\cards16.lib" )
|
||||
|
||||
-8
@@ -4,16 +4,8 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
//#include <tchar.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
|
||||
#include "cardlib.h"
|
||||
//#include "cardwindow.h"
|
||||
//#include "cardbutton.h"
|
||||
#include "cardcolor.h"
|
||||
|
||||
HPALETTE UseNicePalette(HDC, HPALETTE);
|
||||
void RestorePalette(HDC, HPALETTE);
|
||||
|
||||
+1
-3
@@ -3,8 +3,6 @@
|
||||
|
||||
#define MAXBUTTONTEXT 64
|
||||
|
||||
//#include "cardlib.h"
|
||||
|
||||
class CardButton
|
||||
{
|
||||
friend class CardWindow;
|
||||
@@ -98,4 +96,4 @@ private:
|
||||
pButtonProc ButtonCallback;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* CARDBUTTON_INCLUDED */
|
||||
|
||||
+1
-4
@@ -1,11 +1,8 @@
|
||||
//
|
||||
// Colour support
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
#include <wingdi.h>
|
||||
#include "cardlib.h"
|
||||
|
||||
#define MakeRGB RGB
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
COLORREF ColorScaleRGB( const COLORREF Col1,
|
||||
const COLORREF Col2,
|
||||
|
||||
+1
@@ -18,6 +18,7 @@
|
||||
//
|
||||
// count.Clear();
|
||||
//
|
||||
|
||||
#include "cardcount.h"
|
||||
|
||||
CardCount::CardCount()
|
||||
|
||||
+1
-13
@@ -1,18 +1,6 @@
|
||||
#ifndef _CARDCOUNT_INCLUDED
|
||||
#define _CARDCOUNT_INCLUDED
|
||||
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdarg.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "cardstack.h"
|
||||
|
||||
class CardCount
|
||||
{
|
||||
public:
|
||||
@@ -36,4 +24,4 @@ private:
|
||||
//(ace,2,3,4,5,6,7,8,9,10,J,Q,K)
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* _CARDCOUNT_INCLUDED */
|
||||
|
||||
-5
@@ -4,13 +4,8 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
|
||||
#include "cardlib.h"
|
||||
//#include "globals.h"
|
||||
|
||||
void LoadCardBitmaps(void);
|
||||
|
||||
|
||||
+8
-6
@@ -2,11 +2,13 @@
|
||||
#define CARDLIB_INCLUDED
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#define CARDLIBPROC __stdcall
|
||||
|
||||
@@ -91,12 +93,13 @@ typedef int (CARDLIBPROC *pDropZoneProc) (int dzid, const CardStack &cards);
|
||||
|
||||
typedef void (CARDLIBPROC *pButtonProc) (CardButton &pButton);
|
||||
|
||||
|
||||
//#include "card.h"
|
||||
#include "globals.h"
|
||||
#include "card.h"
|
||||
#include "cardbutton.h"
|
||||
//#include "cardstack.h"
|
||||
#include "cardcolor.h"
|
||||
#include "cardstack.h"
|
||||
#include "cardregion.h"
|
||||
#include "cardcount.h"
|
||||
#include "dropzone.h"
|
||||
#include "cardwindow.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
@@ -104,5 +107,4 @@ typedef bool (CARDLIBPROC *pDebugClickProc) (CardRegion &stackobj);
|
||||
void CardLib_SetStackClickProc(pDebugClickProc proc);
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
#endif /* CARDLIB_INCLUDED */
|
||||
|
||||
-7
@@ -4,15 +4,8 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
|
||||
#include "cardlib.h"
|
||||
//#include "cardregion.h"
|
||||
//#include "cardwindow.h"
|
||||
//#include "cardcolor.h"
|
||||
|
||||
HBITMAP CreateSinkBmp(HDC hdcCompat, HDC hdc, int width, int height);
|
||||
|
||||
|
||||
+1
-6
@@ -1,10 +1,6 @@
|
||||
#ifndef CARDREGION_INCLUDED
|
||||
#define CARDREGION_INCLUDED
|
||||
|
||||
#include "globals.h"
|
||||
#include "cardstack.h"
|
||||
//#include "cardlib.h"
|
||||
|
||||
class CardWindow;
|
||||
|
||||
//
|
||||
@@ -215,5 +211,4 @@ private:
|
||||
HANDLE mxlock;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* CARDREGION_INCLUDED */
|
||||
|
||||
@@ -4,15 +4,8 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
|
||||
//#include <stdlib.h>
|
||||
#include "cardlib.h"
|
||||
//#include "cardregion.h"
|
||||
//#include "cardcolor.h"
|
||||
|
||||
HPALETTE UseNicePalette(HDC hdc, HPALETTE hPalette);
|
||||
void PaintRect(HDC hdc, RECT *rect, COLORREF colour);
|
||||
|
||||
+2
-9
@@ -4,17 +4,10 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
|
||||
#include <math.h>
|
||||
//#include <stdio.h>
|
||||
|
||||
#include "cardlib.h"
|
||||
//#include "cardwindow.h"
|
||||
//#include "cardregion.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#if 1
|
||||
#define TRACE(s)
|
||||
|
||||
-6
@@ -4,12 +4,6 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "cardstack.h"
|
||||
|
||||
|
||||
+2
-3
@@ -1,8 +1,6 @@
|
||||
#ifndef CARDSTACK_INCLUDED
|
||||
#define CARDSTACK_INCLUDED
|
||||
|
||||
#include "card.h"
|
||||
|
||||
#define MAX_CARDSTACK_SIZE 128
|
||||
|
||||
class CardStack
|
||||
@@ -50,4 +48,5 @@ private:
|
||||
int nNumCards;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* CARDSTACK_INCLUDED */
|
||||
|
||||
|
||||
+1
-11
@@ -4,20 +4,10 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
#include "cardlib.h"
|
||||
|
||||
#include <tchar.h>
|
||||
//#include <stdlib.h>
|
||||
|
||||
//#include "globals.h"
|
||||
#include "cardlib.h"
|
||||
//#include "cardbutton.h"
|
||||
//#include "cardregion.h"
|
||||
//#include "cardwindow.h"
|
||||
#include "cardcolor.h"
|
||||
|
||||
extern HPALETTE __holdplacepal;
|
||||
|
||||
|
||||
+1
-5
@@ -5,9 +5,6 @@
|
||||
#define MAXCARDSTACKS 32
|
||||
#define MAXDROPZONES 8
|
||||
|
||||
#include "dropzone.h"
|
||||
//#include "cardlib.h"
|
||||
|
||||
class CardRegion;
|
||||
class CardButton;
|
||||
|
||||
@@ -116,5 +113,4 @@ static LRESULT CALLBACK CardWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif /* CARDBOARD_INCLUDED */
|
||||
|
||||
-6
@@ -4,14 +4,8 @@
|
||||
// Freeware
|
||||
// Copyright J Brown 2001
|
||||
//
|
||||
//#include <windows.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
|
||||
#include "cardlib.h"
|
||||
//#include "cardwindow.h"
|
||||
//#include "dropzone.h"
|
||||
|
||||
bool CardWindow::RegisterDropZone(int id, RECT *rect, pDropZoneProc proc)
|
||||
{
|
||||
|
||||
+1
-1
@@ -36,4 +36,4 @@ private:
|
||||
pDropZoneProc DropZoneCallback;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* DROPZONE_INCLUDED */
|
||||
|
||||
+1
-1
@@ -12,4 +12,4 @@ extern HBITMAP __hbmPlaceHolder;
|
||||
|
||||
extern HPALETTE __hPalette;
|
||||
|
||||
#endif
|
||||
#endif /* GLOBALS_INCLUDED */
|
||||
|
||||
Reference in New Issue
Block a user