My hobbyist coding updates and releases as the mysterious "Mr. Tines"

Thursday, 22 August 2002

PassiveFTP/Fox 1.1

PassiveFTP client 1.1.960.32720 for Win32 and Linux - Available from the Windows page. This release demonstrates theming of the FOX toolkit v1.1.13 - from FOX 1.1.16, changes to the message mapping class change the details - the change is to the following routine in plaf.hpp (new version shown):-

template<class T, class X> void Skin<T,X>::override(bool set)
{
  static typename T::FXMapEntry * oldmap = 0;
  static long (T::*oldfn)(FXObject*,FX::FXSelector, void*) = 0;

  if(!set)
  {
    if(!oldmap)
      return;
    if(!oldfn)
      return;
    oldmap->func = oldfn;
    return;
  }
  const FX::FXMetaClass * meta = &T::metaClass;
  typename T::FXMapEntry * f = reinterpret_cast<typename T::FXMapEntry *>

    (const_cast<void*>(meta->search(SEL_PAINT<<16)));
  if(f)
  {
    oldmap = f;
    oldfn = f->func;
    f->func = (long (T::*)(FXObject*,FX::FXSelector, void*))(&Skin<T,X>::skin);
  }
}

No comments: