LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Are VBA userforms always child of Windows desktop?

Had a look at some code in the the book of Bullen et Al, Professional Excel
Development.
I thought that it was suggested that VBA Userforms are the children of the
Excel
desktop window, but it appears that this is not the case and that these
windows are the
direct children of the Windows desktop.
Is this always the case?
I am interested in this as I need the form's hwnd.
I used to do this with the FindWindow API and this only needs the form's
class name
(ThunderDFrame or ThunderXFrame) and the form's caption.
Possibly it is faster (not tested yet) to get this hwnd with the
FindWindowEx API, but then
I need to know for sure that the Windows desktop is indeed always the parent
of this form.
This is directly after the window is created as I know I can alter the
parent window of a form.
Thanks for any advice/insight.

RBS

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7 moving desktop icons dlw Excel Discussion (Misc queries) 1 April 20th 10 05:58 AM
opening a file from windows explorer or the desktop, etc. Lance Napier Excel Discussion (Misc queries) 4 June 24th 08 03:27 AM
Windows browser Parent/Child structure ERK New Users to Excel 2 December 3rd 06 12:44 AM
Windows 98 desktop icons disappearing kempton Excel Programming 3 April 19th 04 02:11 AM
COM Add-ins and Keyboard Hooks/Child Windows Gareth[_5_] Excel Programming 0 April 5th 04 10:31 AM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"