|
-
Jan 23rd, 2002, 06:58 PM
#1
Thread Starter
New Member
Common Dialog problem
Hi All,
I am using common dialog for the purpose of selecting files
but I do not want the file deletion or renaming facility from it which can
be done by either choosing the delete option from the context popup menu
on a file or directory or simply pressing the "DEL" key, i.e. I just want
the files can be selected from there.
I tried two things :
a)setting the commondialog.flag to cdlOFNAllowMultiselect
which in turn sets off the explorer view of common dialog hence the
context popupmenu is not available ,
but,
in this case creation of new folder from common dialog is not available.I
do want that .
b) The second thing i tried is subclassing common dialog , i successfully
subclassed that but not able to intercept the right click message
(WM_RBUTTONUP) or pressing of "DEL" key ?
This is urgent , if anybody has any idea what to do or have some
direction/links. Please Help.
Thanks
Pankaj
-
Jan 23rd, 2002, 07:17 PM
#2
It's the WM_RBUTTONDOWN message, not WM_RBUTTONUP. And make sure that you're subclassing the ListView within the CommonDialog, not the common dialog itself.
-
Jan 23rd, 2002, 07:51 PM
#3
Thread Starter
New Member
Oh, yeah sure , that is the missing link ,
I must subclass the listview but that present another problem, how would i get the handle of contained listview ?
Pankaj
-
Jan 25th, 2002, 04:39 PM
#4
Well, since you already have the handle of the CommonDialog itself, just use FindWindowEx to get the handle of the ListView. The classname is SysListView32.
VB Code:
hwndListView = FindWindowEx(handle_of_CmDlg, 0, "SysListView32", vbNullString)
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
|