{"id":1637,"date":"2010-01-05T00:01:54","date_gmt":"2010-01-04T15:01:54","guid":{"rendered":"http:\/\/a-tak.com\/xoops2\/modules\/wordpress\/2010\/01\/05\/1637"},"modified":"2020-07-13T14:35:32","modified_gmt":"2020-07-13T05:35:32","slug":"image-divider-cover-windows7","status":"publish","type":"post","link":"https:\/\/a-tak.com\/blog\/2010\/01\/image-divider-cover-windows7\/","title":{"rendered":"ImageDivider\u3092Windows7\u306b\u5bfe\u5fdc\u3055\u305b\u305f"},"content":{"rendered":"<div id=\"advads-117870730\" class=\"advads-before-content-placement advads-entity-placement\" style=\"margin-left: auto;margin-right: auto;text-align: center;\"><div class=\"advads-adlabel\">\u5e83\u544a<\/div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7585646298782746\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:300px;height:250px;\" \ndata-ad-client=\"ca-pub-7585646298782746\" \ndata-ad-slot=\"6112122906\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><p><a href=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/attach\/mage.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" style=\"border:none;\" alt=\"image\" src=\"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/attach\/mage_thumb.png?resize=143%2C83&#038;ssl=1\" width=\"143\" height=\"83\" \/><\/a> <\/p>\n<p>ImageDivider\u3092Windows7\u306e\u6a5f\u80fd\u306b\u5bfe\u5fdc\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002   <a href=\"https:\/\/a-tak.com\/blog\/2006\/12\/27\/image-divider\/\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3053\u3061\u3089\u3002<\/a><\/p>\n<p><!--more--><\/p>\n<p>Windows7\u306b\u306a\u3063\u3066\u30bf\u30b9\u30af\u30d0\u30fc\u306e\u30a2\u30a4\u30b3\u30f3\u306b\u9032\u6357\u306e\u30d0\u30fc(\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc)\u3092\u8868\u793a\u3059\u308b\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002   \u6642\u9593\u304c\u304b\u304b\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u51e6\u7406\u306a\u3069\u3092\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u884c\u3063\u3066\u3044\u3066\u3082\u30a2\u30a4\u30b3\u30f3\u307f\u308b\u3060\u3051\u3067\u9032\u307f\u5177\u5408\u304c\u308f\u304b\u308b\u306e\u3067\u3001\u306a\u304b\u306a\u304b\u4fbf\u5229\u3067\u3059\u3002    \u3067\u3082\u3001\u3053\u308c\u3063\u3066\u30a2\u30d7\u30ea\u5074\u3067\u5bfe\u5fdc\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u5bfe\u5fdc\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002   <a href=\"https:\/\/forest.watch.impress.co.jp\/docs\/news\/308454.html\">Windows API Code Pack<\/a>\u3068\u3044\u3046C#\u304b\u3089Windows7\u306e\u6a5f\u80fd\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5bfe\u5fdc\u306f\u697d\u52dd\u3067\u3057\u305f\u3002    \u3068\u3053\u308d\u304c\u3001\u3053\u308c\u3092\u3064\u304b\u3063\u305f\u30a2\u30d7\u30ea\u3092Vista\u3084XP\u3067\u52d5\u304b\u3059\u3068\u5f37\u5236\u7d42\u4e86\u3002    \u305d\u3093\u306a\u308f\u3051\u3067\u3001OS\u3092\u5224\u5b9a\u3057\u3066\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058<\/p>\n<blockquote>\n<p>using System;     using System.Collections.Generic;      using System.Linq;      using System.Text;      using Microsoft.WindowsAPICodePack.Taskbar;      using MS.WindowsAPICodePack.Internal; <\/p>\n<p>namespace ImageDivider     {      &#160;&#160;&#160; public class TaskbarSingleton      &#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160; private static TaskbarSingleton singleton = null; <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public static TaskbarSingleton GetInstance()     &#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (singleton==null)      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; singleton = new TaskbarSingleton();      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return singleton;     &#160;&#160;&#160;&#160;&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public void SetProgressState(TaskbarProgressBarState state)     &#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (!CanUseTaskbar()) return;      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TaskbarManager.Instance.SetProgressState(state);      &#160;&#160;&#160;&#160;&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public void SetProgressValue(int currentValue,int maximumValue)     &#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (!CanUseTaskbar()) return;      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TaskbarManager.Instance.SetProgressValue(currentValue, maximumValue);      &#160;&#160;&#160;&#160;&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; private bool CanUseTaskbar()     &#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (!CoreHelpers.RunningOnWin7)      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return true;      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      &#160;&#160;&#160;&#160;&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160; }     }<\/p>\n<\/blockquote>\n<p>\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u30af\u30e9\u30b9\u3068\u3057\u3066\u3001\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u3067\u547c\u3073\u51fa\u3057\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<blockquote>\n<p>using System;     using System.Collections.Generic;      using System.ComponentModel;      using System.Data;      using System.Drawing;      using System.Text;      using System.Windows.Forms;      using Microsoft.WindowsAPICodePack.Taskbar; <\/p>\n<p>namespace ImageDivider     {      &#160;&#160;&#160; public partial class ProgressForm : Form      &#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160; \/\/\/ &lt;summary&gt;      &#160;&#160;&#160;&#160;&#160;&#160;&#160; \/\/\/ Windows7\u7528\u9032\u6357\u8868\u793a\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9      &#160;&#160;&#160;&#160;&#160;&#160;&#160; \/\/\/ &lt;\/summary&gt;      &#160;&#160;&#160;&#160;&#160;&#160;&#160; TaskbarSingleton taskBar; <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public ProgressForm()     &#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; InitializeComponent();      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; taskBar = TaskbarSingleton.GetInstance();      &#160;&#160;&#160;&#160;&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public void SetCurrnetCount(int count, int totalCount)     &#160;&#160;&#160;&#160;&#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; int per = (int)(((float)count \/ (float)totalCount) * 100);      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lblProgressCount.Text = string.Format(&quot;{0}\u679a\u4e2d {1}\u679a\u51e6\u7406 ({2}%)&quot;, totalCount, count, per);      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pbProgress.Value = per; <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.Text = string.Format(&quot;{0}% ImageDivider\u306f\u9811\u5f35\u3063\u3066\u51e6\u7406\u3057\u3066\u3044\u307e\u3059&quot;, per); <\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/\/\u3053\u3053\u3067\u30bf\u30b9\u30af\u30d0\u30fc\u306b\u9032\u6357\u8868\u793a     &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; taskBar.SetProgressState(TaskbarProgressBarState.Normal);      &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; taskBar.SetProgressValue(per, 100);      &#160;&#160;&#160;&#160;&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160; }     }<\/p>\n<\/blockquote>\n<p>\u6700\u521d\u306e\u65b9\u306e\u30b3\u30fc\u30c9\u306b\u3042\u308bCoreHelper\u3068\u3044\u3046\u306e\u3067OS\u3092\u5224\u5b9a\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u304c\u3069\u3053\u306b\u3042\u308b\u304b\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3051\u3069\u3001MS.WindowsAPICodePack.Internal\u306e\u4e2d\u306b\u3042\u3063\u305f\u3002   Internal\u3068\u3064\u3044\u3066\u308b\u540d\u524d\u306e\u3082\u306e\u3092\u4f7f\u3063\u3066\u3088\u3044\u3082\u306e\u304b\u6c17\u306b\u306a\u308b\u3051\u3069\u3001\u4f7f\u3063\u3066\u307f\u305f\u3002\u5f53\u7136\u3001\u5fc5\u8981\u306aDLL\u3078\u306e\u53c2\u7167\u8a2d\u5b9a\u306f\u5fc5\u8981\u306a\u306e\u3067\u3001\u8a66\u3057\u305f\u3044\u4eba\u306f<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/previous-versions\/msdn10\/ee620535(v=msdn.10)\">\u3053\u3053\u3092\u53c2\u7167\u3057\u3066<\/a>\u3084\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002    \u3053\u3093\u306a\u611f\u3058\u3067OS\u3092\u5224\u5b9a\u3057\u3066\u3001TaskbarManager.Instance\u3092\u547c\u3073\u51fa\u3059\u304b\u3069\u3046\u304b\u5236\u5fa1\u3059\u308b\u3053\u3068\u3067Windows7\u4ee5\u5916\u3067\u3082\u5f37\u5236\u7d42\u4e86\u3057\u306a\u3044\u3067\u3059\u3080\u307f\u305f\u3044\u3002<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u4e45\u3057\u3076\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u30cd\u30bf\u3067\u3057\u305f\u3002   \u3055\u3066\u3001\u5bdd\u308b\u304b\u3002<\/p><div id=\"advads-1867848917\" class=\"advads-content-placement-after-3rd-paragraph advads-entity-placement\" style=\"margin-left: auto;margin-right: auto;text-align: center;\"><div class=\"advads-adlabel\">\u5e83\u544a<\/div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7585646298782746\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:300px;height:250px;\" \ndata-ad-client=\"ca-pub-7585646298782746\" \ndata-ad-slot=\"6112122906\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n<p><!--freesoft imagedivider .net--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ImageDivider\u3092Windows7\u306e\u6a5f\u80fd\u306b\u5bfe\u5fdc\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002 \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3053\u3061\u3089\u3002<\/p>\n","protected":false},"author":1,"featured_media":5682,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[50],"tags":[79,156,90],"class_list":["post-1637","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-my-software","tag-imagedivider","tag-windows-7","tag-90"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/a-tak.com\/blog\/wp-content\/uploads\/2012\/06\/mage_thumb1-1.jpg?fit=143%2C83&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/comments?post=1637"}],"version-history":[{"count":0,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts\/1637\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/media\/5682"}],"wp:attachment":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/media?parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/categories?post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/tags?post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}