|
-
Jun 26th, 2001, 01:01 PM
#1
Thread Starter
New Member
Does a VB class have a window handle?
Is a VB class a Window? The first parameter of the API function SHGetFolderPath() is:
hwndOwner
(A handle to the window calling the function, which will own any dialog boxes the function may create. )
Issue 1: I don't see what dialog boxes this call could create.
Issue 2: I don't know what to use as the hwndOwner when calling this function from a module or class.
It seems to work if I send the Long '1'. Is this safe?
Last edited by andwise; Jun 26th, 2001 at 03:53 PM.
-
Jun 26th, 2001, 02:09 PM
#2
Frenzied Member
As hwndowner use
frmName.hWnd
-
Jun 26th, 2001, 03:15 PM
#3
Thread Starter
New Member
I know how to get the hWnd from a Form. But what do I do if I'm not using any Forms? Is there a window handle associated with class or standard modules?
-
Jun 27th, 2001, 01:52 AM
#4
A class does not have a hWnd. I would suggest to pass 0, and not 1.
From MSDN:
hwndOwner
Handle to an owner window. This parameter is typically set to NULL. If it is not NULL, and a dial-up connection needs to be made to access the folder, a UI prompt will appear in this window.
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
|