#pragma once
|
#include "base.hpp"
|
|
/*
|
struct xevent
|
{
|
int hWnd;
|
int message;
|
int wParam;
|
int lParam;
|
int time;
|
xpoint scpt;
|
};
|
|
struct xeventcommand
|
{
|
xevent evt;
|
string cmdid;
|
void* pfrom;
|
};
|
|
struct xeventmouse : public xevent
|
{
|
int nFlags;
|
xpoint pt;
|
};
|
|
struct NMHDR
|
{
|
HWND hwndFrom;
|
int idFrom;
|
int code;
|
};
|
|
struct xeventnotify : public xevent
|
{
|
int idCtrl;
|
NMHDR* pNMHDR;
|
};
|
*/
|
|
typedef unsigned int UINT;
|
|
typedef struct NMHDR
|
{
|
HWND hwndFrom;
|
UINT_PTR idFrom;
|
int code;
|
} * LPNMHDR;
|
|
typedef struct tagEvent
|
{
|
HWND hWnd;
|
DWORD message;
|
WPARAM wParam;
|
LPARAM lParam;
|
DWORD time;
|
POINT pt;
|
union
|
{
|
struct {
|
int wmId ;
|
int wmEvent ;
|
HWND hCtrl ;
|
}command;
|
struct
|
{
|
LPTSTR pStrID;
|
void * pCmdFrom;
|
}xcommand;
|
struct {
|
UINT nFlags;
|
POINT point;
|
} mouse;
|
struct {
|
UINT nFlags;
|
POINT point;
|
} size;
|
struct {
|
UINT nChar;
|
UINT nRepCnt;
|
UINT nFlags;
|
}key;
|
struct {
|
HDC hdc;
|
}paint;
|
struct {
|
HWND hWnd ;
|
UINT nHitTest;
|
UINT mouseMsg;
|
}cursor;
|
struct {
|
UINT nSBCode;
|
UINT nPos;
|
HWND hWndCtl;
|
}scroll;
|
struct {
|
POINT point;
|
UINT_PTR fwKeys;
|
short zDelta;
|
}wheel;
|
struct {
|
int idCtrl;
|
LPNMHDR pnmh;
|
}notify;
|
};
|
void * pSrcObject;
|
LPARAM dwRet;
|
} TEvent;
|
|
typedef TEvent TNotifyEvent;
|
/*
|
struct TEvent
|
{
|
int hWnd;
|
int message;
|
int wParam;
|
int lParam;
|
int time;
|
xpoint pt;
|
};
|
|
struct TMouseEvent : public TEvent
|
{
|
int nFlags;
|
xpoint point;
|
};
|
|
struct TKeyEvent : public TEvent
|
{
|
int nChar;
|
int nRepCnt;
|
int nFlags;
|
};
|
|
struct TXCommandEvent : public TEvent
|
{
|
string pStrID;
|
};
|
|
struct TCommandEvent : public TEvent
|
{
|
int wmId ;
|
int wmEvent ;
|
int hCtrl ;
|
};
|
|
struct TPaintEvent : public TEvent
|
{
|
int hdc;
|
};
|
|
struct TScrollEvent : public TEvent
|
{
|
int nSBCode;
|
int nPos;
|
int hWndCtl;
|
};
|
|
struct TWheelEvent : public TEvent
|
{
|
xpoint point;
|
int fwKeys;
|
short zDelta;
|
};
|
|
struct TNotifyEvent : public TEvent
|
{
|
int idCtrl;
|
NMHDR* pnmh; //ref
|
};
|
|
struct DWASKSTYLENMHDR : public NMHDR
|
{
|
int row;
|
int col;
|
string colname;
|
int mask;
|
int indent;
|
int imagelist;
|
int image;
|
int cximage;
|
int cyimage;
|
int imagerightindent;
|
string cssstyle;
|
string cssclass;
|
string text;
|
xrect rt;
|
};
|
*/
|
|
struct IMGNNMHDR : public NMHDR
|
{
|
string path;
|
string text;
|
int nIndex;
|
};
|
struct PAGENMHDR : public NMHDR
|
{
|
int max;
|
int cur;
|
};
|
struct LYSNMHDR : public NMHDR
|
{
|
int nSheet;
|
};
|
|
struct xstruct
|
{
|
};
|
|
struct OVERLAPPED : public xstruct
|
{
|
int Internal;
|
int InternalHigh;
|
int Offset;
|
int OffsetHigh;
|
int hEvent;
|
};
|
|
struct OFSTRUCT : public xstruct
|
{
|
int cBytes;
|
int fFixedDisk;
|
int nErrCode;
|
int Reserved1;
|
int Reserved2;
|
string szPathName;
|
};
|
|
struct CELLNMHDR : public NMHDR
|
{
|
int currentrow;
|
int currentcol;
|
string data;
|
int anchorrow;
|
int anchorcol;
|
};
|
|
struct DWNMHDR : public NMHDR
|
{
|
void* dw;
|
int row;
|
int col;
|
string data;
|
int oldrow;
|
int oldcol;
|
string colname;
|
string oldcolname;
|
};
|
|
struct DWASKSTYLENMHDR : public NMHDR
|
{
|
int row;
|
int col;
|
LPTSTR colname;
|
int mask;
|
int indent;
|
int imagelist;
|
int image;
|
int cximage;
|
int cyimage;
|
int indent1;
|
LPTSTR pCssStyle;
|
LPTSTR pCssClass;
|
RECT rt;
|
LPTSTR pStr;
|
};
|
|
//typedef int FEvent(TEvent * evt, int p);
|