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. ATL / WTL / STL
  4. How to manipulate CEdit in CAxDialogImpl

How to manipulate CEdit in CAxDialogImpl

Scheduled Pinned Locked Moved ATL / WTL / STL
helptutorialquestionlearning
7 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.
  • G Offline
    G Offline
    georgekjolly
    wrote on last edited by
    #1

    HI all, I have created an IE toolbar. And also I have created a dialog box derived from CAxDialogImpl . While clicking on a button on the ToolBar, this dialog box will come. On this dialog box I have an Edit Box . And I need to setfocus on that Edit box how can I do that , I am provided with only the ID of the Editbox from Resource. Please Help me, Thanks IN Advance. George

    M W 2 Replies Last reply
    0
    • G georgekjolly

      HI all, I have created an IE toolbar. And also I have created a dialog box derived from CAxDialogImpl . While clicking on a button on the ToolBar, this dialog box will come. On this dialog box I have an Edit Box . And I need to setfocus on that Edit box how can I do that , I am provided with only the ID of the Editbox from Resource. Please Help me, Thanks IN Advance. George

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Call SetFocus() in your WM_INITDIALOG handler, and return FALSE from the handler.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

      G 1 Reply Last reply
      0
      • M Michael Dunn

        Call SetFocus() in your WM_INITDIALOG handler, and return FALSE from the handler.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        G Offline
        G Offline
        georgekjolly
        wrote on last edited by
        #3

        Hi Mike, First of all thanks for your reply . And sorry for not informing u that , there are more than on Edit Boxes in that dialog. And I want to Set focus on one among those Edit Boxes. Thanks George

        M 1 Reply Last reply
        0
        • G georgekjolly

          Hi Mike, First of all thanks for your reply . And sorry for not informing u that , there are more than on Edit Boxes in that dialog. And I want to Set focus on one among those Edit Boxes. Thanks George

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          The answer is still the same - you set the focus to whatever edit box you want to have the focus.

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

          G 1 Reply Last reply
          0
          • G georgekjolly

            HI all, I have created an IE toolbar. And also I have created a dialog box derived from CAxDialogImpl . While clicking on a button on the ToolBar, this dialog box will come. On this dialog box I have an Edit Box . And I need to setfocus on that Edit box how can I do that , I am provided with only the ID of the Editbox from Resource. Please Help me, Thanks IN Advance. George

            W Offline
            W Offline
            wangweixing2008
            wrote on last edited by
            #5

            1、Get HWND of your dialog box. 2、Get HWND of edit. 3、use SetFocus() api. eg: HWND hDlg = ... //get hwnd of your dialog box. HWND hEdit = GetDlgItem(idEdit); SetFocus(hEdit);

            i love vc!This will appear at the end of messages you post to the Code Project

            G 1 Reply Last reply
            0
            • W wangweixing2008

              1、Get HWND of your dialog box. 2、Get HWND of edit. 3、use SetFocus() api. eg: HWND hDlg = ... //get hwnd of your dialog box. HWND hEdit = GetDlgItem(idEdit); SetFocus(hEdit);

              i love vc!This will appear at the end of messages you post to the Code Project

              G Offline
              G Offline
              georgekjolly
              wrote on last edited by
              #6

              Hai wang, Thankyou for your valuable reply , it helped me a lot Regards george

              1 Reply Last reply
              0
              • M Michael Dunn

                The answer is still the same - you set the focus to whatever edit box you want to have the focus.

                --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

                G Offline
                G Offline
                georgekjolly
                wrote on last edited by
                #7

                Hai Mike , Thankyou very much for your reply. regards George

                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