[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?
Re: VB 6 Class Name For FindWindow
The third parameter is lpszClass. That is where the class name would go.
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 ;)
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
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