Results 1 to 3 of 3

Thread: Getting handle subwindow Word document, STRANGE BEHAVIOR

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    91

    Getting handle subwindow Word document, STRANGE BEHAVIOR

    I use Word automation in my VB6 Application
    I have to get the handle to a subwindow of an open Word document let say the textbox properties window.
    I found how to do it but couldn't get the handle (i get allways zero)
    I can only get the handle to he parent word document OpusApp.

    The code
    'I know i have the correct 10.0 version
    VB Code:
    1. Hendel = FindWIndowEx(0,0,"bosa_sdm_Microsoft Word 10.0","")

    So i get allways zero and i have the submenu 'FormatTexbox' open
    I can get the hendle using GetForegrondwindow but, using this method is useless here, because i have to find the window through the open windows not only the foreground or active one.

    Should i use an other API, to look for the submenu class or am i doing something wrong.
    Last edited by lvermeersch; Dec 16th, 2005 at 09:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width