Re: Find icon in internal shell

"[email protected] [gui4cli]" <[email protected]> 01 Oct 2014 06:48:05 -0700
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type:  text/plain;  charset=utf-8 
Content-Transfer-Encoding: base64

VGhhbmtzIGZvciB0aGUgZXhwbGFuYXRpb24gYW5kIGxpbmshDQoNCkknbSByZXdyaXRpbmcg
QXZhbnRpIGZyb20gc2NyYXRjaCB0byBzaW1wbGlmeSB0aGUgY29kZSBhbmQgaG9wZSB0aGlz
IHNvbHZlcyBzb21lDQpvZiB0aGUgV2luZG93cyA3IGlzc3Vlcy4gVGhlIGNvZGVwcm9qZWN0
IGFwcHJvYWNoIGRvZXNuJ3QgcmVhbGx5IGZpdCBpbiB0aGF0IDopDQoNClRoZSBpZGVhIHdh
cyB0byBub3RpZnkgdGhlIHVzZXIgaW4gdGhlIHBhdGggYXQgdGhlIHN0YXR1cyBsaW5lIHRo
YXQgdGhlIHNlbGVjdGVkIGZvbGRlcg0KaXMgYSBhc3NpZ25lZCBvbmUuIEkgdGhlbiBhbHNv
IGdyYXktb3V0IHRoZSAiQXNzaWduIGN1cnJlbnQgZm9sZGVyIiBvcHRpb24gYXQgYSBjdXN0
b20NCnBvcC11cCBtZW51Lg0KDQpJIG5vdyB0aGlua2luZyBvZiBhZGRpbmcgYSB4SWNvbiBv
biB0aGUgbGVmdCBvZiB0aGUgc3RhdHVzIGxpbmUgd2hpY2ggSSBjYW4gZWFzaWx5IGNvbnRy
b2wNCmZyb20gdGhlIGc0YyBpY29uIGxpc3QuIFRoZW4gaWYgaXQgc2hvd3MgdGhlIG5vcm1h
bCBmb2xkZXIgaWNvbiB0aGUgdXNlciBrbm93cyBoZS9zaGUNCmNhbiBhc3NpZ24gaXQsIG90
aGVyd2lzZSBjYW4gcmVtb3ZlIGl0IChpZiBkZXNpcmVkKS4NCg0KQ2hyaXMNCiANCg0KLS0t
SW4gZ3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W4gYSBjb21ibw0Kd2l0
aCB0aGUgImF0dHIgaWNvbiBzaGVsbC8jRk9MREVSIiBhdHRyaWJ1dGUuDQoNCkF0IHRoYXQg
cG9pbnQgdGhlIGFzc2luZ3MgaGF2ZSB0aGUgcHJvcGVyIGljb24gYnV0IHdoZW4gSSBhZGQg
YSBwYXRoIHRvIHRoZSBjb21ibyB3aXRoDQp0aGUgcHJlY2VkaW5nICAic2V0aWNvbiAjdGhp
cyBpZF9jb21ibyAnNyBuZXh0IiBjb21tYW5kLCBJIGdldCB0aGUgcHJvcGVyIGljb24gb24N
CldpbmRvd3MgNyBidXQgdGhlIGc0YyBpY29uIG9uIFdpbmRvd3MgWFAuDQoNCkkgZm91bmQg
b3V0IHRoYXQgZzRjIHRha2VzIGljb24gNyBmcm9tIHRoZSBnNGMgbGlzdCBidXQgSSBoYXZl
IHRvIHRha2UgaXQgZnJvbSB0aGUgc2hlbGwgbGlzdC4NClNvIHRoZSBxdWVzdGlvbiBpczsg
Y2FuIEkgZmluZCB0aGUgbnVtYmVyIG9mIHRoZSBhc3NpZ24gaWNvbiBpbiB0aGUgc2hlbGwg
bGlzdD8NCg0KQ2hyaXMNCg0KIA0KDQoNCg0KDQoNCg0KDQoNCg==

--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title 
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none; 
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html>
<head>
<style type="text/css">
<!--
#ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- |**|begin egp html banner|**| -->

<br><br>

<!-- |**|end egp html banner|**| -->


Thanks for the explanation and link!<br><br>I&#39;m rewriting Avanti from scratch to simplify the code and hope this solves some<br>of the Windows 7 issues. The codeproject approach doesn&#39;t really fit in that :)<br><br>The idea was to notify the user in the path at the status line that the selected folder<br>is a assigned one. I then also gray-out the &quot;Assign current folder&quot; option at a custom<br>pop-up menu.<br><br>I now thinking of adding a xIcon on the left of the status line which I can easily control<br>from the g4c icon list. Then if it shows the normal folder icon the user knows he/she<br>can assign it, otherwise can remove it (if desired).<br><br>Chris<br class="yui-cursor"><div class="ygroups-quoted"><br><br>---In [email protected], &lt;gui4cli@...&gt; wrote :<
 br><br><div id="ygrps-yiv-1347034292"><div dir="ltr">No, the shell icon list changes.&nbsp;<div><br></div><div>There is a specific position for a number of system icons&nbsp;</div><div>- see here&nbsp;<a rel="nofollow" target="_blank" href="http://www.codeproject.com/Articles/2405/Retrieving-shell-icons">http://www.codeproject.com/Articles/2405/Retrieving-shell-icons</a></div><div><br></div><div>(although in programming you&#39;re supposed to ask for them, not use them directly because even they can change)</div><div><br></div><div>This is up to No. 48 I think. After that the icons that programs add to the list can be in any place.</div><div><br></div><div>Dimitris</div><div><br></div><div><br></div></div><div class="ygrps-yiv-1347034292gmail_extra"><br><blockquote><span class=""><div cl
 ass="ygrps-yiv-1347034292gmail_quote">On Tue, Sep 30, 2014 at 3:55 PM, <a rel="nofollow" target="_blank" href="mailto:chris.kevany@...">chris.kevany@...</a> [gui4cli] <span dir="ltr">&lt;<a rel="nofollow" target="_blank" href="mailto:[email protected]">[email protected]</a>&gt;</span> wrote:<br><blockquote class="ygrps-yiv-1347034292gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u><div style="background-color:#fff;">
<span>&nbsp;</span><div><div><div><p>Hi Dimitris,<br><br>I&#39;m working with the assing feature which works fine but I load the #DISKS in a combo<br>with the &quot;attr icon shell/#FOLDER&quot; attribute.<br><br>At that point the assings have the proper icon but when I add a path to the combo with<br>the preceding&nbsp; &quot;seticon #this id_combo &#39;7 next&quot; command, I get the proper icon on<br>Windows 7 but the g4c icon on Windows XP.<br><br>I found out that g4c takes icon 7 from the g4c list but I have to take it from the shell list.<br>So the question is; can I find the number of the assign icon in the shell list?<br><br>Chris</p></div><div style="color:#fff;min-height:0;"></div></div></div></div></blockquote></div><br></span></blockquote></div></div></div>



<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

      
  

    
    <div id="fromDMARC" style="clear:both; margin-top: 10px;">
         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
         Posted by: [email protected]         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
    </div>
<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src="http://geo.yahoo.com/serv?s=97476590/grpId=4299/grpspId=1705007207/msgId=5986/stime=1412171286" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->

  
<!-- |**|begin egp html banner|**| -->

<br>



   
     
 
        <!-- |**|begin egp html banner|**| -->
        <div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

        <span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/gui4cli/info;_ylc=X3oDMTJiaHNwdHI4BF9TAzk3MzU5NzE0BGdycElkAzQyOTkEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQxMjE3MTI4Ng--" style="text-decoration: none;">Visit Your Group</a></span>

     <ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
                                                    </ul>
  </div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
  <a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJhc2VvZmEzBF9TAzk3NDc2NTkwBGdycElkAzQyOTkEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDEyMTcxMjg2" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="137" alt="Yahoo! Groups" style="border: 0;"/></a>
  <div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:[email protected]?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

  </div> <!-- ygrp-msg -->

   


  <br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>

</html>

--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV--