add property page winapi (not finished, I will implement it)
Modified: trunk/reactos/lib/shell32/shellord.c
Modified: trunk/reactos/lib/shell32/shv_item_cmenu.c
_____
Modified: trunk/reactos/lib/shell32/shellord.c
--- trunk/reactos/lib/shell32/shellord.c 2005-06-04 19:11:11 UTC
(rev 15786)
+++ trunk/reactos/lib/shell32/shellord.c 2005-06-04 19:21:15 UTC
(rev 15787)
@@ -1561,10 +1561,14 @@
return -1;
}
+
BOOL WINAPI SHObjectProperties(HWND hwnd, DWORD dwType, LPCWSTR
szObject, LPCWSTR szPage)
{
FIXME("%p, 0x%08lx, %s, %s - stub\n", hwnd, dwType,
debugstr_w(szObject), debugstr_w(szPage));
+ MessageBox (NULL, TEXT("SHObjectProperties-WINAPI:\n\nTODO: Add the
function code."), TEXT("SHObjectProperties; Dev: frik85"), 0);
+
+
return TRUE;
}
_____
Modified: trunk/reactos/lib/shell32/shv_item_cmenu.c
--- trunk/reactos/lib/shell32/shv_item_cmenu.c 2005-06-04 19:11:11 UTC
(rev 15786)
+++ trunk/reactos/lib/shell32/shv_item_cmenu.c 2005-06-04 19:21:15 UTC
(rev 15787)
@@ -254,8 +254,14 @@
_InsertMenuItem(hmenu, indexMenu++, TRUE, FCIDM_SHVIEW_DELETE,
MFT_STRING, "&Delete", MFS_ENABLED);
if(uFlags & CMF_CANRENAME)
+ {
_InsertMenuItem(hmenu, indexMenu++, TRUE,
FCIDM_SHVIEW_RENAME, MFT_STRING, "&Rename",
ISvItemCm_CanRenameItems(This) ? MFS_ENABLED : MFS_DISABLED);
+ }
+ _InsertMenuItem(hmenu, indexMenu++, TRUE, 0, MFT_SEPARATOR,
NULL, 0);
+ _InsertMenuItem(hmenu, indexMenu++, TRUE,
FCIDM_SHVIEW_PROPERTIES, MFT_STRING, "&Properties::", MFS_ENABLED);
+
+
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, (FCIDM_SHVIEWLAST));
}
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, 0);
@@ -432,6 +438,11 @@
TRACE("Verb FCIDM_SHVIEW_CUT\n");
DoCopyOrCut(iface, lpcmi->hwnd, TRUE);
break;
+ case FCIDM_SHVIEW_PROPERTIES:
+ TRACE("Verb FCIDM_SHVIEW_PROPERTIES\n");
+ /* Open the property sheet page */
+ SHObjectProperties(NULL, TEXT("SHOP_FILEPATH"),
lpcmi->hwnd, NULL);
+ break;
default:
FIXME("Unhandled Verb %xl\n",LOWORD(lpcmi->lpVerb));
}