المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : No effect after sending EM_SETBKGNDCOLOR to windowless RichEdit Control.



C++ Programming
08-06-2009, 11:47 AM
Hello,

I use this snippet to send message. m_pTextBlockFocused is a windowless RichEdit host class.

LRESULT lr;
m_pTextBlockFocused->GetTextServices())->TxSendMessage(EM_SETBKGNDCOLOR, 0, RGB(0,0,255), &lr);

The return value lr is 0. But in my opinion, that should be 0x00FFFFFF. By MSDN, this call should return the previous RGB value of background - white background.

Thanks,
Xiang