#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; }; */ struct xstruct { }; #ifdef _XWIN typedef unsigned int UINT; typedef struct NMHDR { HWND hwndFrom; UINT_PTR idFrom; int code; } * LPNMHDR; //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; }; */ typedef struct _OVERLAPPED { ULONG_PTR Internal; ULONG_PTR InternalHigh; union { struct { DWORD Offset; DWORD OffsetHigh; } DUMMYSTRUCTNAME; LPVOID Pointer; } DUMMYUNIONNAME; HANDLE hEvent; } OVERLAPPED, * LPOVERLAPPED; #define OFS_MAXPATHNAME 128 typedef struct _OFSTRUCT { BYTE cBytes; BYTE fFixedDisk; WORD nErrCode; WORD Reserved1; WORD Reserved2; CHAR szPathName[OFS_MAXPATHNAME]; } OFSTRUCT; #endif 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 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 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; //typedef int FEvent(TEvent * evt, int p);