Beispiel #1
0
        public void GetPropertyPage(ref Guid guidPage, Microsoft.VisualStudio.Shell.Interop.VSPROPSHEETPAGE[] ppage)
        {
            PropertySheet sheet = GetPropertySheet(guidPage);

            if (sheet != null && ppage != null)
            {
                ppage[0]            = new VSPROPSHEETPAGE();
                ppage[0].dwSize     = (uint)Marshal.SizeOf(typeof(VSPROPSHEETPAGE));
                ppage[0].hwndDlg    = sheet.Handle;
                ppage[0].pfnDlgProc = NativeWindowHelper.GetNativeWndProc(sheet);
                return;
            }
            throw new NotImplementedException();
        }
Beispiel #2
0
        public int GetPropertyPage(ref Guid guidPage, Microsoft.VisualStudio.Shell.Interop.VSPROPSHEETPAGE[] ppage)
        {
            PropertySheet sheet = GetPropertySheet(guidPage);

            if (sheet != null && ppage != null)
            {
                ppage[0]            = new VSPROPSHEETPAGE();
                ppage[0].dwSize     = (uint)Marshal.SizeOf(typeof(VSPROPSHEETPAGE));
                ppage[0].hwndDlg    = sheet.Handle;
                ppage[0].pfnDlgProc = NativeWindowHelper.GetNativeWndProc(sheet);
                return(0);
            }
            return((int)HResult.E_NOTIMPL);
        }