summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-13 13:13:27 -0400
committerPietro Gagliardi <[email protected]>2014-04-13 13:13:27 -0400
commit7a436e8bd34ec30852ab979b7a2b9ff1df8d5ca0 (patch)
treef10d6d3c7844506d777ae3cff042b4341230b290
parent01cb9ce7d3e8966cfb5e09a8da0d48a1cf94337d (diff)
Removed winbuttonsize/; we're not going to use that for a while (the sizing we have now is fine; not optimal, but it works, for the most part). (We can always pull it back later.)
-rw-r--r--winbuttonsize/win7.pngbin34415 -> 0 bytes
-rw-r--r--winbuttonsize/win7full.pngbin60042 -> 0 bytes
-rw-r--r--winbuttonsize/win7full2.pngbin183677 -> 0 bytes
-rw-r--r--winbuttonsize/winbuttonsize.md25
-rw-r--r--winbuttonsize/wine.pngbin15642 -> 0 bytes
-rw-r--r--winbuttonsize/winxp.pngbin16237 -> 0 bytes
6 files changed, 0 insertions, 25 deletions
diff --git a/winbuttonsize/win7.png b/winbuttonsize/win7.png
deleted file mode 100644
index 3b03a87..0000000
--- a/winbuttonsize/win7.png
+++ /dev/null
Binary files differ
diff --git a/winbuttonsize/win7full.png b/winbuttonsize/win7full.png
deleted file mode 100644
index 74262c2..0000000
--- a/winbuttonsize/win7full.png
+++ /dev/null
Binary files differ
diff --git a/winbuttonsize/win7full2.png b/winbuttonsize/win7full2.png
deleted file mode 100644
index 8ea0a63..0000000
--- a/winbuttonsize/win7full2.png
+++ /dev/null
Binary files differ
diff --git a/winbuttonsize/winbuttonsize.md b/winbuttonsize/winbuttonsize.md
deleted file mode 100644
index ad84d87..0000000
--- a/winbuttonsize/winbuttonsize.md
+++ /dev/null
@@ -1,25 +0,0 @@
-**Problem**: By default, when creating a window by hand in code, the window has the built-in System font, a holdover from WIndows 2.0 that's still the default for... some reason. The font must be manually changed with a `WM_SETFONT` message.
-
-So what font do we use if we want to use the font that all programs on the system uses, regardless of Windows version? With resource files (especially those created by Visual Studio) and dialog boxes, we typically just let the resource file dictate the font, either explicitly or with one of the dialog styles. And it was not until Windows Vista that Microsoft finally wrote up a proper set of human interface guidelines for Windows, which dictates the font... for Vista and up.
-
-The only real thing I could find, from multiple placeso n MSDN and MSDN blogs and elsewhere, is that we call SystemParametersInfo() to get the non-client metrics, and then from there get the font used by message boxes.
-
-However, simply using the right font isn't the only issue. The new HIG includes [a section on proper control sizes](http://msdn.microsoft.com/en-us/library/windows/desktop/aa511279.aspx#sizingspacing), with sizes specified in dialog units, and pixel conversions for Segoe UI provided. Dailog unit conversion depends on the font: GetDailogBaseUnits() still uses that old System font, and because I'm not using a dialog box, I can't use MapDialogRect(). I CAN do the calculations manually, as they are listed on MapDialogRect()'s MSDN page, so I do.
-
-Here's what my test program looks like in wine and on Windows XP:
-![wine image](wine.png)
-![Windows XP image](winxp.png)
-You'll see that controls are more or less tightly packed here and that buttons look ... right.
-
-Now here's what happens on WIndows 7:
-![Windows 7 image](win7.png)
-Buttons look taller than what Microsoft says, and so are other controls like combo boxes, which now appear to have more padding? Unless my eyes are fooling me for the second part...
-
-And compared to other things on the system:
-![Windows 7 image with comparisons](win7full.png)
-![another one](win7full2.png)
-You'll see here that some, but not all, other Segoe UI buttons use the correct smaller size, but some use the larger size...
-
-So which is right?
-
-Thanks.
diff --git a/winbuttonsize/wine.png b/winbuttonsize/wine.png
deleted file mode 100644
index d501f61..0000000
--- a/winbuttonsize/wine.png
+++ /dev/null
Binary files differ
diff --git a/winbuttonsize/winxp.png b/winbuttonsize/winxp.png
deleted file mode 100644
index 408db2f..0000000
--- a/winbuttonsize/winxp.png
+++ /dev/null
Binary files differ