|
-
Aug 10th, 2006, 12:08 PM
#1
Thread Starter
Lively Member
Button handle
Hi,
I have a strange situation here. I manage to get a handle for a window (with API functions) and when I try to find the button in that window (with FindWindowEx API function) I get 0 as the handle. I have the right class and text for the button. Any idea on what it might be? I've also checked if the button is maybe in a subwindow, but it's not.
-
Aug 10th, 2006, 12:11 PM
#2
Thread Starter
Lively Member
Re: Button handle
That window appears when a directory doesn't exist, so it kind of gets on top of the other windows (seems like it might be a modal window for that application it comes from). So maybe it's not possible to find controls for those modal windows?
-
Aug 10th, 2006, 12:38 PM
#3
Re: Button handle
Use ms spy++ to see the window heirachy. If its not viewable in spy++ then it could be drawn on and not a calssic control type style and you cant get it handle then.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 10th, 2006, 01:47 PM
#4
Thread Starter
Lively Member
Re: Button handle
It's OK now...somehow it works heh...I had breakpoints in my program earlier and then it behaved strangely...but now it seems to work fine
-
Aug 10th, 2006, 02:18 PM
#5
Re: Button handle
Ok cool.
Ps, dont forget to Resolve your thread so other members will know its solved.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|