一种全新的软件界面设计方法[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 aweay 的 blog

    /* [out] */ idroptarget __rpc_far *__rpc_far *ppdroptarget) {

        return e_notimpl;

    }

  virtual hresult stdmethodcalltype getexternal(

    /* [out] */ idispatch __rpc_far *__rpc_far *ppdispatch) {

      *ppdispatch = new mycommandhandler();

      return s_ok;

    }

  virtual hresult stdmethodcalltype translateurl(

    /* [in] */ dword dwtranslate,

    /* [in] */ olechar __rpc_far *pchurlin,

    /* [out] */ olechar __rpc_far *__rpc_far *ppchurlout) {

        return e_notimpl;

    }

  virtual hresult stdmethodcalltype filterdataobject(

    /* [in] */ idataobject __rpc_far *pdo,

    /* [out] */ idataobject __rpc_far *__rpc_far *ppdoret) {

        return e_notimpl;

    }

};

上面重载了showcontextmenu方法屏蔽掉右键菜单,使用户不能得到网页代码,关于getexternal是这样实现的:

  virtual hresult stdmethodcalltype getexternal(

    /* [out] */ idispatch __rpc_far *__rpc_far *ppdispatch) {

      *ppdispatch = new mycommandhandler();

      return s_ok;

    }

本文关键:一种全新的软件界面设计方法
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top