How can i add text just with Mouse Cursor.Actually i m writing one case on MOUSEMOVE.So i want to display X and y Coordinates with Mouse Cursor.I m getting X and y Coordinates.But how to add with mouse cursor.
Use SendMessageW (i.e. the Unicode variant of SendMessage) to send WM_GETTEXT to the control (IF there is less than 64K characters in the rich-edit control)
draw that string in a DC using DrawText
Just make sure you use the Unicode variant of DrawText and that the font you're drawing the text with has glyphs for the characters you want to display.
I want to know how to store unicode string for later use
How much later? If it's just within the same run of the program, then a variable of type CStringW[^] would do the job nicely. To save Unicode to a file on-disk, the routines in this article[^] look useful?
I am working on VC++ and developing a tool for Weather monitoring system.
Here I am facing problem in displaying different views for same dateset from the document class, where all the calculations are take place.
Here I am using SDI Multiple views architecture.All (Two) views are controlled by the menu and they are switching fine.
At this moment only one view is connected to the document and displaying the date.Second view is not updating the data implicitly.
Please suggest me an idea to update the data to both views concurrently.
I am getting an error like ExceptionAttacher.obj : error LNK2019: unresolved external symbol "int __cdecl RecordExceptionInfo(struct _EXCEPTION_POINTERS *,char const *)" (?RecordExceptionInfo@@YAHPAU_EXCEPTION_POINTERS@@PBD@Z) referenced in function "int __stdcall AfxWinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,wchar_t *,int)" (?AfxWinMain@@YGHPAUHINSTANCE__@@0PA_WH@Z)
What should I do to remove this linker error? Plz help me.