The MinGW.org Installation Manager Tool
Revisão | 080c8859702097e5692f7b4527ad32761aecdd78 (tree) |
---|---|
Hora | 2013-01-19 01:51:30 |
Autor | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Make GUI support visual styles in current Windows versions.
@@ -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 | + | |
1 | 15 | 2013-01-12 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 16 | |
3 | 17 | Merge gui-dev branch head to master; close gui-dev branch. |
@@ -36,7 +36,7 @@ ID_MAIN_WINDOW ICON DISCARDABLE "pkgicon.ico" | ||
36 | 36 | * which is called out by the "Help --> About mingw-get" menu pick. |
37 | 37 | */ |
38 | 38 | IDD_HELP_ABOUT DIALOG DISCARDABLE 80, 50, 250, 185 |
39 | -CAPTION "about mingw-get" | |
39 | +CAPTION "About mingw-get" | |
40 | 40 | STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_DLGFRAME |
41 | 41 | FONT 9, "Verdana" |
42 | 42 | BEGIN |
@@ -53,6 +53,31 @@ conditions. There is NO WARRANTY; not even an implied WARRANTY OF MERCHANTABILI | ||
53 | 53 | ANY PARTICULAR PURPOSE.", -1, 10, 108, 230, 40 |
54 | 54 | END |
55 | 55 | |
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 | + | |
56 | 81 | /* Miscellaneous string constants. |
57 | 82 | */ |
58 | 83 | STRINGTABLE DISCARDABLE |
@@ -588,6 +588,8 @@ int AppWindowMaker::Invoked( void ) | ||
588 | 588 | * data controls are correctly populated. |
589 | 589 | */ |
590 | 590 | AdjustLayout(); |
591 | + InvalidateRect( AppWindow, NULL, FALSE ); | |
592 | + UpdateWindow( AppWindow ); | |
591 | 593 | |
592 | 594 | /* Finally, we may delegate all further processing to the main |
593 | 595 | * window's message loop. |
@@ -4,7 +4,7 @@ | ||
4 | 4 | * $Id$ |
5 | 5 | * |
6 | 6 | * Written by Keith Marshall <keithmarshall@users.sourceforge.net> |
7 | - * Copyright (C) 2012, MinGW.org Project | |
7 | + * Copyright (C) 2012, 2013, MinGW.org Project | |
8 | 8 | * |
9 | 9 | * |
10 | 10 | * Implementation of the layout controller for the main mingw-get |
@@ -233,7 +233,7 @@ int AppWindowMaker::LayoutEngine( HWND pane, LPARAM region ) | ||
233 | 233 | frame.right = pane_left + pane_width; |
234 | 234 | frame.bottom = pane_top + pane_height; |
235 | 235 | TabCtrl_AdjustRect( PackageTabControl, FALSE, &frame ); |
236 | - pane_top = frame.top; | |
236 | + pane_top = frame.top - 1; | |
237 | 237 | } |
238 | 238 | /* Adjust height and width to fill the space below and to the right |
239 | 239 | * of the two sash bars. |