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. cricheditctrl on cmdichildwnd

cricheditctrl on cmdichildwnd

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
11 Posts 3 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.
  • P prithaa

    Hello, class CRICH : CRichEditCtrl { afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); }; I have 5 CRICH boxes on CMDIChildWnd which are shown properly with a cursor in the first box . That is it has focus but once if I press a mouse cursor on the box the cursor disappears and none of the boxes has focus.If I click the mouse on the box LButtonDown message handler is not called. What must be the problem ? thanks Prithaa

    S Offline
    S Offline
    Sakthi Gs
    wrote on last edited by
    #2

    For that we Need to set Focus for the 2nd box once i u have pressed enter..n u should monitor the window properly

    S P 2 Replies Last reply
    0
    • S Sakthi Gs

      For that we Need to set Focus for the 2nd box once i u have pressed enter..n u should monitor the window properly

      S Offline
      S Offline
      Sakthi Gs
      wrote on last edited by
      #3

      Use the SetFocus Function & handle properly..

      1 Reply Last reply
      0
      • S Sakthi Gs

        For that we Need to set Focus for the 2nd box once i u have pressed enter..n u should monitor the window properly

        P Offline
        P Offline
        prithaa
        wrote on last edited by
        #4

        Hello, Thanks When 5 boxes appear on the window and I move the mouse on the box the cursor should change from arrow cursor to text type line cursor but the cursor type doesnt change. Pritha

        C 1 Reply Last reply
        0
        • P prithaa

          Hello, Thanks When 5 boxes appear on the window and I move the mouse on the box the cursor should change from arrow cursor to text type line cursor but the cursor type doesnt change. Pritha

          C Offline
          C Offline
          Chandrasekharan P
          wrote on last edited by
          #5

          see first you write down all what needs to be done. Don't keep on adding requirements.

          P 1 Reply Last reply
          0
          • C Chandrasekharan P

            see first you write down all what needs to be done. Don't keep on adding requirements.

            P Offline
            P Offline
            prithaa
            wrote on last edited by
            #6

            Hello, Thanks for your reply. I am not adding to my requirements .I am just saying that the cursor type doesnt cange hence I am not able to handle the mouse LButtonDown message. If it had changed than I would have been able to handle the mouse messages. Prithaa

            C 1 Reply Last reply
            0
            • P prithaa

              Hello, Thanks for your reply. I am not adding to my requirements .I am just saying that the cursor type doesnt cange hence I am not able to handle the mouse LButtonDown message. If it had changed than I would have been able to handle the mouse messages. Prithaa

              C Offline
              C Offline
              Chandrasekharan P
              wrote on last edited by
              #7

              what is that you have done to change the cursor type?

              P 1 Reply Last reply
              0
              • C Chandrasekharan P

                what is that you have done to change the cursor type?

                P Offline
                P Offline
                prithaa
                wrote on last edited by
                #8

                Hello, thansk for your reply. I have done nothing to change the type but I thought since when the mouse goes on the box the arrow point automatically changes to text type pointer. But somewhere I feel the box is not identified by the mouse . prithaa

                C 1 Reply Last reply
                0
                • P prithaa

                  Hello, thansk for your reply. I have done nothing to change the type but I thought since when the mouse goes on the box the arrow point automatically changes to text type pointer. But somewhere I feel the box is not identified by the mouse . prithaa

                  C Offline
                  C Offline
                  Chandrasekharan P
                  wrote on last edited by
                  #9

                  i don't think what you need will automatically happen. you are not setting the cursor. you are setting the focus to the editbox. you can always hide the cursor but AFAIK changing the cursor to text type pointer is not possible

                  P 1 Reply Last reply
                  0
                  • C Chandrasekharan P

                    i don't think what you need will automatically happen. you are not setting the cursor. you are setting the focus to the editbox. you can always hide the cursor but AFAIK changing the cursor to text type pointer is not possible

                    P Offline
                    P Offline
                    prithaa
                    wrote on last edited by
                    #10

                    Hello thanks for all your replies . I ll look into it and take your advice Pritha

                    C 1 Reply Last reply
                    0
                    • P prithaa

                      Hello thanks for all your replies . I ll look into it and take your advice Pritha

                      C Offline
                      C Offline
                      Chandrasekharan P
                      wrote on last edited by
                      #11

                      Your Welcome and Please let me know if you could change the cursor to text pointer.

                      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