IntPtr m_hMainBMP32; // Handle for the 32x32 main bitmap //------------------------------------------------- // CAbout - Constructor // // The constructor is responsible for loading the about images // that will be displayed in the MMC //------------------------------------------------- public CAbout() { // Load the main bitmap as a 16x16 bitmap m_hMainBMP16 = CResourceStore.GetHBitmap("IDB_NET", 16, 16, false); // Load the main bitmap as a 32x32 bitmap m_hMainBMP32 = CResourceStore.GetHBitmap("IDB_NET", 32, 32, false); }// CAbout
}// MaxLevels internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CSecurityAdjustmentWiz2)); this.m_lblSelectZone = new System.Windows.Forms.Label(); this.m_gbChooseLevel = new System.Windows.Forms.GroupBox(); this.m_lvZones = new System.Windows.Forms.ListView(); this.m_lblNoTrust = new System.Windows.Forms.Label(); this.m_lblFullTrust = new System.Windows.Forms.Label(); this.m_btnDefault = new System.Windows.Forms.Button(); this.m_lblZoneDescription = new System.Windows.Forms.Label(); this.m_lblTrustDescription = new System.Windows.Forms.Label(); this.m_tbLevelOfTrust = new System.Windows.Forms.TrackBar(); ((System.ComponentModel.ISupportInitialize)(this.m_tbLevelOfTrust)).BeginInit(); /* this.m_lblSelectZone.Location = ((System.Drawing.Point)(resources.GetObject("m_lblSelectZone.Location"))); * this.m_lblSelectZone.Size = ((System.Drawing.Size)(resources.GetObject("m_lblSelectZone.Size"))); * this.m_lblSelectZone.TabIndex = ((int)(resources.GetObject("m_lblSelectZone.TabIndex"))); * this.m_lblSelectZone.Text = resources.GetString("m_lblSelectZone.Text"); */ this.m_lblSelectZone.Visible = false; this.m_gbChooseLevel.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_lblTrustDescription, this.m_lblNoTrust, this.m_lblFullTrust, this.m_tbLevelOfTrust, this.m_btnDefault }); this.m_gbChooseLevel.Location = ((System.Drawing.Point)(resources.GetObject("m_gbChooseLevel.Location"))); this.m_gbChooseLevel.Size = ((System.Drawing.Size)(resources.GetObject("m_gbChooseLevel.Size"))); this.m_gbChooseLevel.TabIndex = ((int)(resources.GetObject("m_gbChooseLevel.TabIndex"))); this.m_gbChooseLevel.TabStop = false; this.m_gbChooseLevel.Text = resources.GetString("m_gbChooseLevel.Text"); m_gbChooseLevel.Name = "ChooseLevelBox"; m_sOriginalGBText = m_gbChooseLevel.Text; this.m_lvZones.Location = ((System.Drawing.Point)(resources.GetObject("m_lvZones.Location"))); this.m_lvZones.Size = ((System.Drawing.Size)(resources.GetObject("m_lvZones.Size"))); this.m_lvZones.TabIndex = ((int)(resources.GetObject("m_lvZones.TabIndex"))); m_lvZones.Name = "Zones"; this.m_lblNoTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_lblNoTrust.Location"))); this.m_lblNoTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_lblNoTrust.Size"))); this.m_lblNoTrust.TabIndex = ((int)(resources.GetObject("m_lblNoTrust.TabIndex"))); this.m_lblNoTrust.Text = resources.GetString("m_lblNoTrust.Text"); m_lblNoTrust.TextAlign = ContentAlignment.MiddleCenter; m_lblNoTrust.Name = "NoTrustLabel"; this.m_lblFullTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_lblFullTrust.Location"))); this.m_lblFullTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_lblFullTrust.Size"))); this.m_lblFullTrust.TabIndex = ((int)(resources.GetObject("m_lblFullTrust.TabIndex"))); this.m_lblFullTrust.Text = resources.GetString("m_lblFullTrust.Text"); m_lblFullTrust.Name = "FullTrustLabel"; m_lblFullTrust.TextAlign = ContentAlignment.MiddleCenter; this.m_btnDefault.Location = ((System.Drawing.Point)(resources.GetObject("m_btnDefault.Location"))); this.m_btnDefault.Size = ((System.Drawing.Size)(resources.GetObject("m_btnDefault.Size"))); this.m_btnDefault.TabIndex = ((int)(resources.GetObject("m_btnDefault.TabIndex"))); this.m_btnDefault.Text = resources.GetString("m_btnDefault.Text"); m_btnDefault.Name = "Default"; this.m_lblZoneDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_lblZoneDescription.Location"))); this.m_lblZoneDescription.Size = ((System.Drawing.Size)(resources.GetObject("m_lblZoneDescription.Size"))); this.m_lblZoneDescription.TabIndex = ((int)(resources.GetObject("m_lblZoneDescription.TabIndex"))); m_lblZoneDescription.Name = "ZoneDescription"; this.m_lblTrustDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_lblTrustDescription.Location"))); this.m_lblTrustDescription.Size = ((System.Drawing.Size)(resources.GetObject("m_lblTrustDescription.Size"))); this.m_lblTrustDescription.TabIndex = ((int)(resources.GetObject("m_lblTrustDescription.TabIndex"))); m_lblTrustDescription.Name = "TrustDescription"; this.m_tbLevelOfTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_tbLevelOfTrust.Location"))); this.m_tbLevelOfTrust.Maximum = 3; this.m_tbLevelOfTrust.Orientation = System.Windows.Forms.Orientation.Vertical; this.m_tbLevelOfTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_tbLevelOfTrust.Size"))); this.m_tbLevelOfTrust.TabIndex = ((int)(resources.GetObject("m_tbLevelOfTrust.TabIndex"))); this.m_tbLevelOfTrust.LargeChange = 1; m_tbLevelOfTrust.Name = "TrustLevel"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblZoneDescription, this.m_lvZones, this.m_gbChooseLevel, this.m_lblSelectZone }); ((System.ComponentModel.ISupportInitialize)(this.m_tbLevelOfTrust)).EndInit(); // Some tweaks on the listview // Create an image list of icons we'll be displaying m_ilIcons = new ImageList(); m_ilIcons.ImageSize = new Size(32, 32); // Keep the order of these consistant with the const's declared at the top // of this class m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_MYCOMPUTER", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_INTRANET", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_INTERNET", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_TRUSTED", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_UNTRUSTED", 32, 32))); m_ilIcons.TransparentColor = Color.White; // Some customizations we've made.... m_lvZones.LargeImageList = m_ilIcons; m_lvZones.MultiSelect = false; m_lvZones.View = View.LargeIcon; m_lvZones.Activation = System.Windows.Forms.ItemActivation.OneClick; m_lvZones.HideSelection = false; PutValuesinPage(); m_lvZones.Items[0].Selected = true; // Hook up the event handlers m_tbLevelOfTrust.ValueChanged += new EventHandler(onLevelChange); m_lvZones.SelectedIndexChanged += new EventHandler(onZoneChange); m_btnDefault.Click += new EventHandler(onResetClick); return(1); }// InsertPropSheetPageControls