home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 December
/
PCWorld_2002-12_cd.bin
/
Software
/
Komercni
/
Baltik
/
katB.exe
/
katB
/
DESIGN
/
DESIGN_H.API
< prev
next >
Wrap
Text File
|
2002-09-20
|
7KB
|
229 lines
////////////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------------//
//-----project DESINGER, copyright 2002 Libor Bareτ-------------------------//
//----------------------------------------------------------------------------//
//#define true 1
//#define false 0
//# pragma stack = 10000
// something to store 2 variables int in one long
#define MAKELONG(x,y) ((long)(((int)(x))|((long)((int)(y))) << 16 ))
#define LOWORD(x) ((int)(x))
#define HIWORD(x) ((int)(((long)(x) >> 16 ) & 0xFFFF))
// no comment :-)
#define MAX(x,y) (( x > y ? x : y))
#define MIN(x,y) (( x < y ? x : y))
#define LPARAM long
#define HWND unsigned
#define WPARAM long
#define DWORD long
#define LONG long
#define INT int
#define UINT unsigned
#define bool char
// messages ...
#define WM_LBUTTONDOWN 1
#define WM_RBUTTONDOWN 2
#define WM_MOUSEMOVE 3
#define WM_MOUSELEAVE 4
#define WM_MOUSEENTER 5
#define WM_RBUTTONUP 6
#define WM_LBUTTONUP 7
#define WM_PAINT 8
#define WM_COMMAND 9
#define WM_CLOSE 10
#define WM_SETFOCUS 11
#define WM_KILLFOCUS 12
#define WM_TIMER 13
#define WM_CHAR 14
#define WM_DESTROY 15
#define WM_SHOWWINDOW 16
#define WM_SETTEXT 17
#define DIA_PAINTOBJECT 100
#define DIA_KILLFOCUS 101
#define DIA_SETFOCUS 102
#define DIA_DRAWCLIPRECT 103
#define LV_SELCHANGE 200
#define LV_ITEMCLICK 201
#define ED_ENTER 200
typedef struct tagLine{
int x;
int y;
int x2;
int y2;
}LINE;
typedef struct tagRect{
int left;
int top;
int right;
int bottom;
}RECT;
typedef struct tagSize{
int x,y;
}SIZE;
typedef struct tagPoint{
int left;
int top;
}POINT;
typedef struct tagMenu{
string strItem;
int nID;
int hBitmap;
}MENU;
typedef struct tagClassItem{
string strText;
long nType;
RECT nRectType;
}CLASSITEM;
typedef struct tagDIAGRAMCELL{
string ClassName; // 1B per char
RECT Rect; // 4*2B
unsigned nType; // 2B
long dwFlags; // 4B
void* pOperation; // 2B
void* pVariable; // 2B
// struct tagDIAGRAMCELL** pDependents; // 2B
int* pDependents; // 2B
int nSizeDependents; // 2B
int nSizeVariable; // 2B
int nSizeOperation; // 2B
RECT PT; // 4*2 B
string strExStereotypes; // 1B per char
string strExProperties; // 1B per char
int nBreakA,nBreakB,nBreakC; // 3*2 B
}DIAGRAMCELL; // TOTAL = 36B + strlen strings
typedef struct tagWnd{
string szText; // ??
unsigned hBitmap;
char hFont;
long dwStyle; // 4 26
unsigned nType; // 2 30
unsigned hWnd; // 2 32
unsigned nID; // 2 34
RECT Rect; // 2*4=8 42
long misc;
int lParam;
int misc2;
void* pData;
struct tagWnd* pParent;
struct tagWnd** pChild;
int nChildSize;
}WND; // ==
#define DFC_CAPTION 1
#define DFC_MENU 2
#define DFC_SCROLL 3
#define DFC_BUTTON 4
#define DFC_MENUPOPUP 5
#define DFC_EDIT 7
#define DFC_COMBOBOX 8
#define DFC_LISTBOX 9
#define DFC_SCROLLBARVER 10
#define DFC_SCROLLBARHOR 11
#define DFC_DIALOG 12
#define DFC_GROUPBOX 13
#define DFC_CUSTOM 6
#define DFCS_MENUNORMAL 0x0000000L
#define DFCS_MENUCHECKED 0x0000001L
#define DFCS_MENUOVER 0x0000002L
#define DFCS_MENUARROWRIGHT 0x0000004L
#define DFCS_SCROLLUP 0x0000010L
#define DFCS_SCROLLDOWN 0x0000020L
#define DFCS_SCROLLLEFT 0x0000040L
#define DFCS_SCROLLRIGHT 0x0000080L
#define DFCS_BUTTONCHECK 0x0000001L
#define DFCS_BUTTONRADIO 0x0000002L
#define DFCS_BUTTONPUSH 0x0000004L
#define DFCS_INACTIVE 0x0000100L
#define DFCS_PUSHED 0x0000200L
#define DFCS_FLAT 0x0001000L
#define DES_CLIENT 0x0001
#define DES_STATIC 0x0002
#define DES_MODAL 0x0004
// Window flags
#define WS_VISIBLE 0x00020000L
#define WS_TABSTOP 0x00040000L
#define WS_DISABLE 0x00080000L
#define WS_MOUSEOVER 0x00100000L
#define WS_CLIENTEDGE 0x00200000L
#define WS_FOCUS 0x00400000L
#define WS_NOTXP 0x00800000L
// DrawText flags
#define DT_TOP 0x00000000
#define DT_LEFT 0x00000000
#define DT_CENTER 0x00000001
#define DT_RIGHT 0x00000002
#define DT_VCENTER 0x00000004
#define DT_BOTTOM 0x00000008
#define DT_MODIFYSTRING 0x00000010
#define DT_UNDERLINE 0x00000020
// scrollbars :
#define SC_CAPTURE_TOP 0x00000001L
#define SC_CAPTURE_BOTTOM 0x00000002L
#define SC_CAPTURE_MIDDLE 0x00000004L
#define SC_MOUSEOVER 0x00000008L
#define LV_AUTOSELECT 0x00000400L
// button event ...
#define BN_CLICK
// KONEC SOUBORU
#define FONT_SYSTEM 0
#define FONT_TAHOMA_8 5
#define FONT_TAHOMA_BOLD_8 6
#define FONT_TAHOMA_ITALIC_8 2
#define FONT_TAHOMA_BOLD_ITALIC_8 4
#define FONT_ARIAL_BOLD_10 1
#define FONT_ARIAL_BOLD_ITALIC_10 3
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////