LiFan
2024-07-05 378d4b51e3112a3a27eabfd3aa97caec2bd5dafd
jrj/project/vindexmenu.cpp
@@ -35,8 +35,7 @@
public:
   static vindexmenu* CreateInstance(void* implPtr, void* hWnd)
   {
      vindexmenu* pWin = new vindexmenu(implPtr, (HWND)hWnd);
      return pWin;
      return new vindexmenu(implPtr, (HWND)hWnd);
   }
   int OnHideWin()
@@ -188,10 +187,10 @@
      int TPM_RIGHTBUTTON = 0x0002;
      int TPM_RETURNCMD = 0x0100;
      AppendMenuW(m,MF_STRING, 1, str);   
      xrect xr = { 0,0,0,0 };
      RECT xr = { 0,0,0,0 };
      xpoint pt;
      GetCursorPos(pt);            
      return TrackPopupMenu (m, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, this->GetHandle(), xr);
      return TrackPopupMenu (m, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, this->GetHandle(), &xr);
   }         
         
   int OnRClicked(TEvent* evt,int p)