Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SDI Application

SDI Application

Scheduled Pinned Locked Moved C / C++ / MFC
12 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ _Superman_

    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.

    S Offline
    S Offline
    susanne1
    wrote on last edited by
    #3

    The problem is i do not have a blinking cursor., because this is a view derived from CView calss.

    _ 1 Reply Last reply
    0
    • S susanne1

      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.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #4

      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++

      1 Reply Last reply
      0
      • S susanne1

        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.

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #5

        You need to do what ? a text editor ? and you cannot use either CEditView or CRichEditView ?

        This signature was proudly tested on animals.

        S 1 Reply Last reply
        0
        • S susanne1

          The problem is i do not have a blinking cursor., because this is a view derived from CView calss.

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #6

          Did you try calling SetCaretPos?

          «_Superman_» I love work. It gives me something to do between weekends.

          1 Reply Last reply
          0
          • S susanne1

            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.

            J Offline
            J Offline
            Joe Woodbury
            wrote on last edited by
            #7

            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?)

            1 Reply Last reply
            0
            • S susanne1

              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.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #8

              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

              1 Reply Last reply
              0
              • S susanne1

                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.

                A Offline
                A Offline
                Adam Roderick J
                wrote on last edited by
                #9

                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.

                Величие не Бога может быть недооценена.

                1 Reply Last reply
                0
                • M Maximilien

                  You need to do what ? a text editor ? and you cannot use either CEditView or CRichEditView ?

                  This signature was proudly tested on animals.

                  S Offline
                  S Offline
                  susanne1
                  wrote on last edited by
                  #10

                  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.

                  1 Reply Last reply
                  0
                  • S susanne1

                    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 Offline
                    I Offline
                    Iain Clarke Warrior Programmer
                    wrote on last edited by
                    #11

                    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/[^]

                    1 Reply Last reply
                    0
                    • S susanne1

                      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.

                      B Offline
                      B Offline
                      basementman
                      wrote on last edited by
                      #12

                      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...

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups