• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

Révision080c8859702097e5692f7b4527ad32761aecdd78 (tree)
l'heure2013-01-19 01:51:30
AuteurKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Message de Log

Make GUI support visual styles in current Windows versions.

Change Summary

Modification

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
1+2013-01-18 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Make GUI support visual styles in current Windows versions.
4+
5+ * src/guidata.rc: Add an appropriate inline manifest resource.
6+
7+ * src/guiexec.cpp (AppWindowMaker::Invoked): Ensure UpdateWindow() is
8+ called after the initial call to AdjustLayout(); this is required to
9+ ensure that all child windows are properly displayed from the outset.
10+
11+ * src/pkgview.cpp (AppWindowMaker::LayoutEngine):
12+ [ID_PACKAGE_DATASHEET]: Adjust the top position of the frame, to make
13+ the border coincide with the bottom border of the tab strip above.
14+
115 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net>
216
317 Merge gui-dev branch head to master; close gui-dev branch.
--- a/src/guidata.rc
+++ b/src/guidata.rc
@@ -36,7 +36,7 @@ ID_MAIN_WINDOW ICON DISCARDABLE "pkgicon.ico"
3636 * which is called out by the "Help --> About mingw-get" menu pick.
3737 */
3838 IDD_HELP_ABOUT DIALOG DISCARDABLE 80, 50, 250, 185
39-CAPTION "about mingw-get"
39+CAPTION "About mingw-get"
4040 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_DLGFRAME
4141 FONT 9, "Verdana"
4242 BEGIN
@@ -53,6 +53,31 @@ conditions. There is NO WARRANTY; not even an implied WARRANTY OF MERCHANTABILI
5353 ANY PARTICULAR PURPOSE.", -1, 10, 108, 230, 40
5454 END
5555
56+/* Include a manifest resource, to support visual style attributes
57+ * and unprivileged UAC, when running on current MS-Windows variants.
58+ */
59+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST MOVEABLE PURE
60+BEGIN
61+ "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?> \
62+ <assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0""> \
63+ <trustInfo xmlns=""urn:schemas-microsoft-com:asm.v2""> \
64+ <security> \
65+ <requestedPrivileges> \
66+ <requestedExecutionLevel level=""asInvoker"" uiAccess=""false"" /> \
67+ </requestedPrivileges> \
68+ </security> \
69+ </trustInfo> \
70+ <dependency> \
71+ <dependentAssembly> \
72+ <assemblyIdentity \
73+ type=""Win32"" name=""Microsoft.Windows.Common-Controls"" version=""6.0.0.0"" \
74+ processorArchitecture=""x86"" publicKeyToken=""6595b64144ccf1df"" language=""*"" \
75+ /> \
76+ </dependentAssembly> \
77+ </dependency> \
78+ </assembly>"
79+END
80+
5681 /* Miscellaneous string constants.
5782 */
5883 STRINGTABLE DISCARDABLE
--- a/src/guiexec.cpp
+++ b/src/guiexec.cpp
@@ -588,6 +588,8 @@ int AppWindowMaker::Invoked( void )
588588 * data controls are correctly populated.
589589 */
590590 AdjustLayout();
591+ InvalidateRect( AppWindow, NULL, FALSE );
592+ UpdateWindow( AppWindow );
591593
592594 /* Finally, we may delegate all further processing to the main
593595 * window's message loop.
--- a/src/pkgview.cpp
+++ b/src/pkgview.cpp
@@ -4,7 +4,7 @@
44 * $Id$
55 *
66 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
7- * Copyright (C) 2012, MinGW.org Project
7+ * Copyright (C) 2012, 2013, MinGW.org Project
88 *
99 *
1010 * Implementation of the layout controller for the main mingw-get
@@ -233,7 +233,7 @@ int AppWindowMaker::LayoutEngine( HWND pane, LPARAM region )
233233 frame.right = pane_left + pane_width;
234234 frame.bottom = pane_top + pane_height;
235235 TabCtrl_AdjustRect( PackageTabControl, FALSE, &frame );
236- pane_top = frame.top;
236+ pane_top = frame.top - 1;
237237 }
238238 /* Adjust height and width to fill the space below and to the right
239239 * of the two sash bars.