private SetWindowTheme ( |
||
hwnd | ||
pszSubAppName | string | |
pszSubIdList | string | |
리턴 | int |
public MainWindow() { if (Settings.Default.FirstLaunch && dev_FirstLaunch) { Hide(); } SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.DoubleBuffer | ControlStyles.ResizeRedraw, true); InitAfterLng(); changing = true; loadlng(); var c = Program.GetCulture(); setlngitem(c); automaticallyAddISOInfoToolStripMenuItem.Checked = Settings.Default.AutoAddInfo; SetSize(); if (Program.IsWin) { Utils.SetWindowTheme(lvIsos.Handle, "EXPLORER", null); } ISOInfo.UpdateFinished += (o, args) => { try { if (InvokeRequired) { Invoke((MethodInvoker)(() => mniUpdate.Visible = false)); } else { mniUpdate.Visible = false; } } catch { } }; if (Settings.Default.FirstLaunch && dev_FirstLaunch) { var firstlaunch = new FirstLaunch(); firstlaunch.ShowDialog(); Show(); } }
public CustomFileFrm() { InitializeComponent(); if (Program.IsWin) { Utils.SetWindowTheme(lvFiles.Handle, "EXPLORER", null); } lblHeader.Text = Strings.AddFiles; btnOK.Text = Strings.OK; btnAnnul.Text = Strings.Cancel; }
public About() { InitializeComponent(); richTextBox1.Text = richTextBox1.Text.Insert(9, " " + Program.GetVersion()) .Replace("{0}", ISOInfo.AppDBVersion.ToString()) .Replace("{1}", Strings.SharpBootUsesSoft); if (Program.IsWin) { Utils.SetWindowTheme(lvTranslators.Handle, "explorer", null); } rtbMyWebsite.SelectAll(); rtbMyWebsite.SelectionAlignment = HorizontalAlignment.Right; rtbMyWebsite.DeselectAll(); Text = Strings.AboutSharpBoot; btnOK.Text = Strings.OK; }
public About() { InitializeComponent(); label1.Text = label1.Text.Insert(9, " " + Program.GetVersion()) .Replace("{0}", ISOInfo.AppDBVersion.ToString()) .Replace("{1}", Strings.SharpBootUsesSoft); if (Program.IsWin) { Utils.SetWindowTheme(lvTranslators.Handle, "explorer", null); } rtbMyWebsite.SelectAll(); rtbMyWebsite.SelectionAlignment = HorizontalAlignment.Right; rtbMyWebsite.DeselectAll(); Text = Strings.AboutSharpBoot; btnOK.Text = Strings.OK; pbLogo.Image = new Icon(Resources.logo, 48, 48).ToBitmap(); FormClosing += (sender, args) => { mp.Stop(); }; }