{"id":495,"date":"2012-06-24T17:15:38","date_gmt":"2012-06-24T08:15:38","guid":{"rendered":"http:\/\/dev.activebasic.com\/egtra\/?p=495"},"modified":"2012-07-15T12:23:05","modified_gmt":"2012-07-15T03:23:05","slug":"windows-8%e3%81%ae%e6%97%a5%e6%9c%ac%e8%aa%9eui%e3%83%95%e3%82%a9%e3%83%b3%e3%83%88","status":"publish","type":"post","link":"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/","title":{"rendered":"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8"},"content":{"rendered":"<p>Windows 8\u3092\u89e6\u3063\u3066\u3044\u308b\u3068\u3001Meiryo UI\u5897\u3048\u305f\u306a\u3001\u3068\u3044\u3046\u3088\u308aMS UI \u30b4\u30b7\u30c3\u30af\u304c\u4e00\u6383\u3055\u308c\u305f\u611f\u304c\u3042\u308a\u307e\u3059\u3002\u65e5\u672c\u8a9e\u7248Windows\u3067\u4f9d\u7136\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u30d5\u30a9\u30f3\u30c8\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u304c\u3059\u3050\u5206\u304b\u308b\u306e\u306f\u3001Internet Explorer\u3068\u30b3\u30f3\u30bd\u30fc\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u304f\u3089\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3046\u3044\u3048\u3070\u3001\u3068\u30d5\u30a9\u30f3\u30c8\u53d6\u5f97\u306eAPI\u3067\u3069\u3093\u306a\u5024\u304c\u53d6\u308c\u308b\u306e\u304b\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre lang=\"cpp\">\r\n#define UNICODE\r\n#define WINVER 0x0500\r\n#define _WIN32_WINNT 0x0500\r\n#include <windows.h>\r\n#include <iostream>\r\n\r\nint main()\r\n{\r\n  std::wcout.imbue(std::locale(\"\"));\r\n\r\n  auto hGuiFont = GetStockObject(DEFAULT_GUI_FONT);\r\n\r\n  LOGFONT lfGuiFont;\r\n  GetObject(hGuiFont, sizeof lfGuiFont, &lfGuiFont);\r\n  std::wcout << lfGuiFont.lfFaceName << std::endl;\r\n\r\n  NONCLIENTMETRICS ncm = {sizeof ncm};\r\n  SystemParametersInfo(\r\n    SPI_GETNONCLIENTMETRICS, sizeof ncm, &#038;ncm, 0);\r\n\r\n  std::wcout << ncm.lfMessageFont.lfFaceName << std::endl;\r\n}\r\n<\/pre>\n<p>\u6bd4\u8f03\u7528\u306b\u4ed6\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3059\u3079\u3066\u65e5\u672c\u8a9e\u7248\u3067\u3059\u3002<\/p>\n<table border=\"1\">\n<tr>\n<td><\/td>\n<th>lfMessageFont<\/th>\n<th>DEFAULT_GUI_FONT<\/th>\n<tr>\n<th>Windows XP<\/th>\n<td>MS UI Gothic<\/td>\n<td>MS UI Gothic<\/td>\n<tr>\n<th>Windows Vista\/7<\/th>\n<td>\u30e1\u30a4\u30ea\u30aa<\/td>\n<td>MS UI Gothic<\/td>\n<tr>\n<th>Windows 8 RP<\/th>\n<td>Meiryo UI<\/td>\n<td>MS UI Gothic<\/td>\n<\/table>\n<p>DEFAULT_GUI_FONT\u306f\u521d\u3081\u304b\u3089\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u3082\u306e\u306a\u306e\u3067\u3001\u6c17\u306b\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u307b\u304b\u95a2\u4fc2\u3057\u305d\u3046\u306a\u3068\u3053\u308d\u3082\u898b\u3066\u307f\u307e\u3057\u305f\u3002MS Shell Dlg\u306fMS UI Gothic\u3001MS Shell Dlg 2\u306fTahoma\u306e\u307e\u307e (HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes)\u3001Tahoma\u306e\u30ea\u30f3\u30af\u5148\u306fMS UI Gothic (HLKM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontLink\\SystemLink) \u3068\u3001\u3053\u306e\u8fba\u308a\u306f\u5909\u5316\u306a\u3057\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows 8 Release Preview\u3067Windows API\u3067\u53d6\u5f97\u3067\u304d\u308b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13,14],"tags":[176],"class_list":["post-495","post","type-post","status-publish","format-standard","hentry","category-winapi","category-character","tag-windows-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d<\/title>\n<meta name=\"description\" content=\"Windows 8 Release Preview\u3067Windows API\u3067\u53d6\u5f97\u3067\u304d\u308b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u307e\u3057\u305f\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"og:description\" content=\"Windows 8 Release Preview\u3067Windows API\u3067\u53d6\u5f97\u3067\u304d\u308b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u307e\u3057\u305f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ysk.noh\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-24T08:15:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-07-15T03:23:05+00:00\" \/>\n<meta name=\"author\" content=\"egtra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@egtra\" \/>\n<meta name=\"twitter:site\" content=\"@egtra\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"egtra\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/\",\"name\":\"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"isPartOf\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\"},\"datePublished\":\"2012-06-24T08:15:38+00:00\",\"dateModified\":\"2012-07-15T03:23:05+00:00\",\"author\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\"},\"description\":\"Windows 8 Release Preview\u3067Windows API\u3067\u53d6\u5f97\u3067\u304d\u308b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u307e\u3057\u305f\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/dev.activebasic.com\/egtra\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/\",\"name\":\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"description\":\"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\",\"name\":\"egtra\",\"sameAs\":[\"https:\/\/x.com\/egtra\"],\"url\":\"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"Windows 8 Release Preview\u3067Windows API\u3067\u53d6\u5f97\u3067\u304d\u308b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u307e\u3057\u305f\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/","og_locale":"ja_JP","og_type":"article","og_title":"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","og_description":"Windows 8 Release Preview\u3067Windows API\u3067\u53d6\u5f97\u3067\u304d\u308b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u307e\u3057\u305f\u3002","og_url":"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/","og_site_name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","article_publisher":"https:\/\/www.facebook.com\/ysk.noh","article_published_time":"2012-06-24T08:15:38+00:00","article_modified_time":"2012-07-15T03:23:05+00:00","author":"egtra","twitter_card":"summary_large_image","twitter_creator":"@egtra","twitter_site":"@egtra","twitter_misc":{"\u57f7\u7b46\u8005":"egtra"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/","url":"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/","name":"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","isPartOf":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#website"},"datePublished":"2012-06-24T08:15:38+00:00","dateModified":"2012-07-15T03:23:05+00:00","author":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164"},"description":"Windows 8 Release Preview\u3067Windows API\u3067\u53d6\u5f97\u3067\u304d\u308b\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u8abf\u3079\u307e\u3057\u305f\u3002","breadcrumb":{"@id":"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dev.activebasic.com\/egtra\/2012\/06\/24\/495\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/dev.activebasic.com\/egtra\/"},{"@type":"ListItem","position":2,"name":"Windows 8\u306e\u65e5\u672c\u8a9eUI\u30d5\u30a9\u30f3\u30c8"}]},{"@type":"WebSite","@id":"https:\/\/dev.activebasic.com\/egtra\/#website","url":"https:\/\/dev.activebasic.com\/egtra\/","name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164","name":"egtra","sameAs":["https:\/\/x.com\/egtra"],"url":"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/495"}],"collection":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":0,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}