lvermeersch
Dec 13th, 2005, 01:16 AM
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
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.
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
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.