11-09-2019, 09:45 AM
In a SHODC control, if user right clicks on a folder and then selects "open" the shdoc control navigates to that folder location.
Is it possible to "catch" the folder location and put it in a editfield?
For example when the user right clicks "My QM" the shdoc navigates to that folder, I want to put that path in the below editfield (id: 8).
It is probably difficult request, attempted to find online: https://docs.microsoft.com/en-us/dotnet/...mework-4.8
(This might be complex, I understand if can not provide solution because time consuming)
Function shdoc_test
Is it possible to "catch" the folder location and put it in a editfield?
For example when the user right clicks "My QM" the shdoc navigates to that folder, I want to put that path in the below editfield (id: 8).
It is probably difficult request, attempted to find online: https://docs.microsoft.com/en-us/dotnet/...mework-4.8
(This might be complex, I understand if can not provide solution because time consuming)
Function shdoc_test
str dd=
;BEGIN DIALOG
;0 "" 0x90CF0AC8 0x1 0 0 242 168 "Dialog"
;3 ActiveX 0x54000000 0x0 5 7 114 141 "SHDocVw.WebBrowser"
;8 Edit 0x54030080 0x200 5 151 224 12 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2040601 "*" "" "" ""
str controls = "3 8"
str ax3SHD e8
ax3SHD="$Documents$"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1