xj qian
2024-07-01 2ae36e271599ea723348132dd7c8a7e139162d18
jrj/xframe/wobject/xbase.hpp
@@ -38,7 +38,13 @@
   NMHDR*  pNMHDR;
};
*/
struct xstruct
{
};
#ifdef _XWIN
typedef unsigned int UINT;
   
typedef struct NMHDR
@@ -48,67 +54,9 @@
   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
{
@@ -189,27 +137,6 @@
};   
*/
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;
@@ -234,6 +161,24 @@
   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
{
@@ -274,4 +219,66 @@
   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);