[RSP] Attempt to typedef-out WIN32 types to custom standards?
This commit is contained in:
parent
241befb67b
commit
00cc4344d7
|
@ -29,6 +29,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <Common/stdtypes.h>
|
#include <Common/stdtypes.h>
|
||||||
|
#include "Types.h"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define EXPORT __declspec(dllexport)
|
#define EXPORT __declspec(dllexport)
|
||||||
|
@ -99,6 +100,18 @@ typedef struct {
|
||||||
void (*ShowCFB)( void );
|
void (*ShowCFB)( void );
|
||||||
} RSP_INFO;
|
} RSP_INFO;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
long left, top, right, bottom;
|
||||||
|
} rectangle; /* <windows.h> equivalent: RECT */
|
||||||
|
typedef struct {
|
||||||
|
void * hdc;
|
||||||
|
Boolean fErase;
|
||||||
|
rectangle rcPaint;
|
||||||
|
Boolean fRestore;
|
||||||
|
Boolean fIncUpdate;
|
||||||
|
uint8_t rgbReserved[32];
|
||||||
|
} window_paint; /* <windows.h> equivalent: PAINTSTRUCT */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* Menu */
|
/* Menu */
|
||||||
/* Items should have an ID between 5001 and 5100 */
|
/* Items should have an ID between 5001 and 5100 */
|
||||||
|
@ -109,9 +122,9 @@ typedef struct {
|
||||||
int UseBPoints;
|
int UseBPoints;
|
||||||
char BPPanelName[20];
|
char BPPanelName[20];
|
||||||
void (*Add_BPoint) ( void );
|
void (*Add_BPoint) ( void );
|
||||||
void (*CreateBPPanel) (void * hDlg, RECT rcBox);
|
void (*CreateBPPanel) (void * hDlg, rectangle rcBox);
|
||||||
void (*HideBPPanel) ( void );
|
void (*HideBPPanel) ( void );
|
||||||
void (*PaintBPPanel) ( PAINTSTRUCT ps );
|
void (*PaintBPPanel) (window_paint ps);
|
||||||
void (*ShowBPPanel) ( void );
|
void (*ShowBPPanel) ( void );
|
||||||
void (*RefreshBpoints)(void * hList);
|
void (*RefreshBpoints)(void * hList);
|
||||||
void (*RemoveBpoint) (void * hList, int index);
|
void (*RemoveBpoint) (void * hList, int index);
|
||||||
|
|
Loading…
Reference in New Issue