| | |
| | | NMHDR* pNMHDR; |
| | | }; |
| | | */ |
| | | struct xstruct |
| | | { |
| | | }; |
| | | |
| | | |
| | | |
| | | #ifdef _XWIN |
| | | typedef unsigned int UINT; |
| | | |
| | | typedef struct NMHDR |
| | |
| | | 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; |
| | | |
| | | //typedef TEvent TNotifyEvent; |
| | | /* |
| | | struct TEvent |
| | | { |
| | |
| | | }; |
| | | */ |
| | | |
| | | 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 |
| | | { |
| | | }; |
| | | |
| | | |
| | | typedef struct _OVERLAPPED { |
| | | ULONG_PTR Internal; |
| | | ULONG_PTR InternalHigh; |
| | |
| | | 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 |
| | | { |
| | |
| | | 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); |