有些语言是从右向左读的,例如ArabicIE的右键菜单中 可以选择编码——〉再选择 “从右向左读”,
请问如何用程序做到?我的view类是从CHtmlView继承的。谢谢!!!

解决方案 »

  1.   

    设置Edit控件有此属性即可:ES_RIGHT
      

  2.   

    要改CSS
    你可以实现IDocHostUIHandler来修改默认的CSS,或者直接改网页
      

  3.   

    IHTMLDocument3::dir PropertySets or retrieves the reading order of the object. SyntaxHRESULT IHTMLDocument3::get_dir(BSTR *p);HRESULT IHTMLDocument3::put_dir(BSTR v);
    Parametersp
    Pointer to a BSTR that receives one of the values listed in Possible Values.
    v
    BSTR that specifies one of the values listed in Possible Values.
    Possible Valuesltr Default. Content flows left to right. 
    rtl Content flows right to left. Return ValueReturns S_OK if successful, or an error value otherwise. 
    ResThe property does not affect alphanumeric characters in Latin documents. These characters always render ltr. However, the property does affect punctuation characters in Latin documents.See AlsoIHTMLStyle2::direction, HTML Character Sets