SDI Application
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
The text you can change with SetWindowText[^]. You can move the blinking cursor using SetCaretPos[^].
«_Superman_» I love work. It gives me something to do between weekends.
-
The text you can change with SetWindowText[^]. You can move the blinking cursor using SetCaretPos[^].
«_Superman_» I love work. It gives me something to do between weekends.
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
susanne1 wrote:
Important: I can not use the class CRichEditView instead of CView to drive the View of my application.
And what about the CEditView[^] ? If you implement directly from CView, you don't have any support for text (so, no cursor neither) or you will need to implement it yourself.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
You need to do what ? a text editor ? and you cannot use either CEditView or CRichEditView ?
This signature was proudly tested on animals.
-
The problem is i do not have a blinking cursor., because this is a view derived from CView calss.
Did you try calling
SetCaretPos
?«_Superman_» I love work. It gives me something to do between weekends.
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
Stick an edit control in the view, occupying all of the view. (Which is, for all intents and purposes, what CEditView does, so why not use it?)
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
susanne1 wrote:
Important: I can not use the class CRichEditView instead of CView to drive the View of my application.
Why? This restriction severly limits, if not eliminates altogether, your options.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
I dont think, it is good to use CView instead of CEditView or CRichEditView. If you can derive a class from CView then you have handle SetCaretPos, SetWindowText and all to get the text support as suggested by earlier posters.
Величие не Бога может быть недооценена.
-
You need to do what ? a text editor ? and you cannot use either CEditView or CRichEditView ?
This signature was proudly tested on animals.
i need to print out the results of a database query, a class derived directly from CView is the only suitable possible solution till now i had before classes derived from CRichEditView and CEditView buut i hhad a lot of disadvanteges and ristrictions with them.
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
1/ Your question isn't really about SDI - it would be equally true from MDI too. 2/ If you're not allowed to use a Richedit control, maybe just a simple CEDitView? 3/ If you can;'t use that... then how about: Crystal Edit - syntax coloring text editor[^] It's not trivial to use, but I've used it for an in-program script editor with syntax colouring in the past to good effect. Good luck! Iain.
I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]
-
Hallo, i have an SDI-Application it is View class derived directly from CView, i need tob e able to change the output in it or to move the cursor with ctrl+pos1 or ctrl+end .Important: I can not use the class CRichEditView instead of CView to drive the View of my application. Thanks.
First off, you should use CScrollView, rather than CView. Secondly, you need to either register a custom window class with a custom cursor and override the PreCreateWindow method (preferred), or handle WM_SETCURSOR messages and call SetCursor() with the proper cursor handle, previously loaded in your init code (will flicker).
onwards and upwards...