Is there any difference between \x20AC and \u20AC for example ?
Characters size or code page issues or other?
I've thought they display exactly the same and wcscmp confirmed that produced strings are identical.
[EDIT] But MS VC++ happily compiled it - apparently, a MS-specific extension [^]: "If a backslash precedes a character that does not appear in the table, the compiler handles the undefined character as the character itself. For example, \c is treated as an c."
This wont work as you have not got the Dialog item for your edit control ..
If you have an MFC application in the pretranslateMessage() or OnInitdialog() or where ever you want to introduce new property to the control :
GetDlgItem(Your RichEditControl's ID for eg.IDC_RICHEDIT_CTRL)->ModifyStyleEx(ES_READONLY,0,SWP_NOSIZE);
I am in need of a method to keep my rectangle frame, drawn with OnMouseMove() and OnDraw() with coords specified from OnLButtonUp() and OnLButtonDown(), on the top of an image that is being updated with and OnTimer() function every some odd milliseconds. Here are a few code snippets:
This setup causes my FrameRect to be drawn but then it gets covered by my image being updated. I need a way to draw on top of a refreshing image. I think I may need to use some sort of graphic control, but I am really unsure where to start to tackle this problem!
Any help would be appreciated and thanks in advance for taking the time to read my post!
You should put all of your drawing stuff inside the OnDraw message handler. OnMouseMove and OnTimer should only change the state of your class and then notify the area should be updated (so that OnDraw will be called).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke