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. how to control the controls in the dialogs of the word?

how to control the controls in the dialogs of the word?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 Posts 5 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
    G Richard
    wrote on last edited by
    #1

    I want to control word through the interface the word provided. But I found some problems. I found not all the controls such as buttons, comboboxs are window control. They don't have the window handles. But I want to process some messages it sended. you can found this through spyxx.What can I do? thanks to all the programmers who have helped me.

    C M M 3 Replies Last reply
    0
    • G G Richard

      I want to control word through the interface the word provided. But I found some problems. I found not all the controls such as buttons, comboboxs are window control. They don't have the window handles. But I want to process some messages it sended. you can found this through spyxx.What can I do? thanks to all the programmers who have helped me.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      How on earth do you presume to have found that a button or combobox in Word does not have a HWND associated with it ? I believe Word does not use MFC, ( so no CWnd ), but I can't see how it could possibly show you a button without it being a window, with a handle. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

      T 1 Reply Last reply
      0
      • G G Richard

        I want to control word through the interface the word provided. But I found some problems. I found not all the controls such as buttons, comboboxs are window control. They don't have the window handles. But I want to process some messages it sended. you can found this through spyxx.What can I do? thanks to all the programmers who have helped me.

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #3

        What are you trying to make Word do? Which controls/windows are you trying to control? You seem to be approaching this from a strange angle. What do you want to achieve? Michael :-)

        G 1 Reply Last reply
        0
        • C Christian Graus

          How on earth do you presume to have found that a button or combobox in Word does not have a HWND associated with it ? I believe Word does not use MFC, ( so no CWnd ), but I can't see how it could possibly show you a button without it being a window, with a handle. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          How on earth do you presume to have found that a button or combobox in Word does not have a HWND associated with it He's probably thinking about Word toolbars - the comboboxes and buttons you can see there aren't real tax-paying, HWND-having windows. Tomasz Sowinski -- http://www.shooltz.com

          G 1 Reply Last reply
          0
          • G G Richard

            I want to control word through the interface the word provided. But I found some problems. I found not all the controls such as buttons, comboboxs are window control. They don't have the window handles. But I want to process some messages it sended. you can found this through spyxx.What can I do? thanks to all the programmers who have helped me.

            M Offline
            M Offline
            Masaaki Onishi
            wrote on last edited by
            #5

            Hello, the codegurus around the world.;) It seems that you want to use some functionality of Word. We can use Word Automation to access all Word functionality in our application.:cool: Have a nice day!

            -Masaaki Onishi-

            G 1 Reply Last reply
            0
            • T Tomasz Sowinski

              How on earth do you presume to have found that a button or combobox in Word does not have a HWND associated with it He's probably thinking about Word toolbars - the comboboxes and buttons you can see there aren't real tax-paying, HWND-having windows. Tomasz Sowinski -- http://www.shooltz.com

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

              I want to use my own dialog to control word. for example, I want to control the "insert -> index and content" dialog in my code. So I can send a message to set the checkboxes status. But i can't get the checkboxs' window handle now. thanks to all the programmers who have helped me.

              1 Reply Last reply
              0
              • M Masaaki Onishi

                Hello, the codegurus around the world.;) It seems that you want to use some functionality of Word. We can use Word Automation to access all Word functionality in our application.:cool: Have a nice day!

                -Masaaki Onishi-

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

                right! But when the dialogs of the word show modal, I can't use the interfaces, I have to waiting for the user to select an item. How can I do it automaticly? thanks to all the programmers who have helped me.

                1 Reply Last reply
                0
                • M Michael P Butler

                  What are you trying to make Word do? Which controls/windows are you trying to control? You seem to be approaching this from a strange angle. What do you want to achieve? Michael :-)

                  G Offline
                  G Offline
                  G Richard
                  wrote on last edited by
                  #8

                  to be simple, I want to create a word document with my own format. And I will provide some dialogs to let people coustomize the format. so have to use some word's automation interface. But when a dialog of word do modaled, I can't get the status untile the dialog ended. for example, in the dialog "insert -> index and content" there are some check boxes, and i want to set the check boxes' status in my code. what can I do? thanks to all the programmers who have helped me.

                  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