CRichEditCtrrl and EN_REQUESTRESIZE [modified]
-
I am using a rich text control to display a block of formatted text. I create the control, set the content, then call the RequestResize method to notify the parent of the required height, and adjust the height to match. This works fine under VS 2005 on XP and Vista. Rebuilding under VS2010 as a 32 bit app and running on Windows 7 64 bit, the code does not work. The parent window does not receive the EN_REQUESTRESIZE message: ON_NOTIFY(EN_REQUESTRESIZE, 0, OnRequestResize); The parent window's OnRequestResize method is never called. So the control has zero height. This is bog standard code which worked fine before. Has anyone come across this? Any possible cause? Okay: Problem solved. A zero control ID is not valid although we do not care about the control id, and it was accepted under VC 2005 on XP.