I have a code like as follows: richedit.cpp ITextServices* m_ptext_service; .... m_ptext_service->OnTxPropertyBitsChange(TXTBIT_VIEWINSETCHANGE, TXTBIT_VIEWINSETCHANGE);