|
-
May 3rd, 2007, 09:17 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] VB 6 Class Name For FindWindow
When using the FindWindow API, what do i put in the Class Name Parameter? I'm targetting a Visual Basic 6 Program.
So far i've found 2 possible out comes: ThunderFormDC, and ThunderRT6Main, both have proven false when tested.
Should i just use vbNullString?
-
May 3rd, 2007, 09:28 AM
#2
Re: VB 6 Class Name For FindWindow
The third parameter is lpszClass. That is where the class name would go.
-
May 3rd, 2007, 11:10 AM
#3
Re: VB 6 Class Name For FindWindow
? FindWindow only has two arguments.
Code:
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
You should be using MS Spy++ to get the actual class names instead of trial and error
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 
-
May 3rd, 2007, 11:23 AM
#4
Addicted Member
Re: VB 6 Class Name For FindWindow
if you are targeting the FORM and not a child of the form
see Megatron's post
just change the "My Application" to the caption of the target form
/hth
Last edited by kewakl; May 3rd, 2007 at 11:43 AM.
Do not use if shrinkwrap is broken or missing!
I'm learning how to fish, too!
-
May 3rd, 2007, 03:52 PM
#5
Thread Starter
Fanatic Member
Re: VB 6 Class Name For FindWindow
Yeah i couldn't find a third parameter =S
But thanks for the link though. This is why it wasn't working! I was using ThunderRT6Form in the IDE
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
|