Beispiel #1
0
        public WsatPropertySheet()
        {
            activeItem = new ArrayList();

            propSheet = new PropSheetPage();
            propSheet.dwSize = Marshal.SizeOf(typeof(PropSheetPage));
            propSheet.dwFlags = PSP.DEFAULT | PSP.USETITLE | PSP.DLGINDIRECT;
            propSheet.pfnDlgProc = new DialogProc(PropPageDialogProc);
            propSheet.pfnCallback = null;
            propSheet.pszTitle = SR.GetString(SR.WSATPropPageTitle);
            propSheet.pResource = GetDialogTemplate(250, 230);
            propSheet.longParameter = IntPtr.Zero;

            handlePropSheetPage = new SafePropertyPage(propSheet, false);
        }
Beispiel #2
0
        public WsatPropertySheet()
        {
            activeItem = new ArrayList();

            propSheet               = new PropSheetPage();
            propSheet.dwSize        = Marshal.SizeOf(typeof(PropSheetPage));
            propSheet.dwFlags       = PSP.DEFAULT | PSP.USETITLE | PSP.DLGINDIRECT;
            propSheet.pfnDlgProc    = new DialogProc(PropPageDialogProc);
            propSheet.pfnCallback   = null;
            propSheet.pszTitle      = SR.GetString(SR.WSATPropPageTitle);
            propSheet.pResource     = GetDialogTemplate(250, 230);
            propSheet.longParameter = IntPtr.Zero;

            handlePropSheetPage = new SafePropertyPage(propSheet, false);
        }
Beispiel #3
0
 internal SafePropertyPage(PropSheetPage psp, bool ownsHandle)
     : base(ownsHandle)
 {
     SetHandle(SafeNativeMethods.CreatePropertySheetPage(ref psp));
 }
Beispiel #4
0
 internal SafePropertyPage(PropSheetPage psp, bool ownsHandle)
     : base(ownsHandle)
 {
     SetHandle(SafeNativeMethods.CreatePropertySheetPage(ref psp));
 }
 internal static extern IntPtr CreatePropertySheetPage(
     [In] ref PropSheetPage psp);