borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (CreateDesktop on VB6)Next Topic (Set Focus to Access application) New Topic New Poll Post Reply
AndreaVB Forum : API : Got a handle to a window-can I find if the path/filename of the window's file has changed?
Poster Message
jmtsnprn
Level: Guest


icon Got a handle to a window-can I find if the path/filename of the window's file has changed?

Got a handle to a window-can I find if the path/filename of the window's file has changed?

I have captured the window handle, but if the user saves the file and changes the path/name of the file, I need to find it out. Can't figure out how to do this.

Please help!!!!
Thanks,

Jeff

15-08-2003 at 04:17 PM
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Got a handle to a window-can I find if the path/filename of the window's file has changed?

I am not sure what you exactly want...

Storing a window handle into variable is not recommended. You need to get window handle before u make an api call that needs one. I dont know how do you get window handle, but you can always do it by knowing its title (in this case lpWindowName).

Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Hope this helped.  

____________________________
If you find the answer helpful, please mark this topic as solved.

16-08-2003 at 01:25 AM
View Profile Send Email to User Show All Posts | Quote Reply
siddhs
Level: Professor

Registered: 02-03-2003
Posts: 92
icon Re: Got a handle to a window-can I find if the path/filename of the window's file has changed?

hi
  actually i didnt understand the question VERY WELL ....

but getting the handle of the window ...may be u can use GetForegroundWindow API to get the handle and then process with what you want ??


May be that was stupid ...but it was wat i understood ...

Siddhs

Helped ??

____________________________
FireFox - Its Yours & Its Free
Here it is

45 Gmail Invities left ;) ....PM me to get one...

14-09-2003 at 10:19 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Got a handle to a window-can I find if the path/filename of the window's file has changed?

You may use GetForegroundWindow, but u must be sure that the window u want to get handle to is currently ACTIVE.

____________________________
If you find the answer helpful, please mark this topic as solved.

14-09-2003 at 05:12 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Got a handle to a window-can I find if the path/filename of the window's file has changed?
Previous Topic (CreateDesktop on VB6)Next Topic (Set Focus to Access application) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder