<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Reading a contract from the other side: Simulating a drop</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx</link><description>Driving the IDropTarget.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Reading a contract from the other side: Simulating a drop</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8786521</link><pubDate>Tue, 29 Jul 2008 04:02:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8786521</guid><dc:creator>GregM</dc:creator><description>&lt;p&gt;Rune, I just meant using the printto verb instead of the print verb in ShellExecute.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8786521" width="1" height="1"&gt;</description></item><item><title>stuffing the printer</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8784013</link><pubDate>Mon, 28 Jul 2008 15:33:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8784013</guid><dc:creator>Rune</dc:creator><description>&lt;p&gt;Thanks Greg! IFileViewer::PrintTo looks promising, but the description of the IFileViewer interface gives me pause. I'll just have to give it a try I guess.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8784013" width="1" height="1"&gt;</description></item><item><title>re: Reading a contract from the other side: Simulating a drop</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8773927</link><pubDate>Sat, 26 Jul 2008 05:41:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8773927</guid><dc:creator>GregM</dc:creator><description>&lt;p&gt;Rune, have you looked at PrintTo?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8773927" width="1" height="1"&gt;</description></item><item><title>dropping stuff on the printer</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8772170</link><pubDate>Fri, 25 Jul 2008 16:41:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8772170</guid><dc:creator>Rune</dc:creator><description>&lt;p&gt;So... Is this the preferred way of printing an arbitrary file to a specific printer?&lt;/p&gt;
&lt;p&gt;I need to target a specific printer and I can't render the documents myself. ShellExecute(&amp;quot;print&amp;quot;, ...) only targets the default printer, but I have a specific printer in mind.&lt;/p&gt;
&lt;p&gt;Simulating a file drop provides me with a workaround, but I can't help thinking that there surely must be an easier way. How does the shell trick the document's application to print to a specific printer?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8772170" width="1" height="1"&gt;</description></item><item><title>re: Reading a contract from the other side: Simulating a drop</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8769723</link><pubDate>Thu, 24 Jul 2008 21:07:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8769723</guid><dc:creator>Christian</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I often start a drag&amp;amp;drop operation in IE with e.g. a link by acciedent and don't want to navigate to that page.&lt;/p&gt;
&lt;p&gt;I didn't know that I could press ESC! That's a great tip!&lt;/p&gt;
&lt;p&gt;(I always tried to drag it to an area that does no harm, like the tray^H^H^H^Hnotification area or let's say &amp;quot;the clock&amp;quot; ;-) &amp;nbsp;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8769723" width="1" height="1"&gt;</description></item><item><title>re: Reading a contract from the other side: Simulating a drop</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8769706</link><pubDate>Thu, 24 Jul 2008 20:59:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8769706</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Oops... &amp;nbsp;looks like it's explained here:&lt;/p&gt;
&lt;p&gt;&amp;quot;The reason why the taskbar doesn't do this is that there is no such function GetDropTargetFromWindow function.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/oldnewthing/archive/2004/11/24/269237.aspx"&gt;http://blogs.msdn.com/oldnewthing/archive/2004/11/24/269237.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I imagine the reason you can't is because applications should just start the drag and let the user drop it in the right spot. &amp;nbsp;It's drag and drop, not some form of DDE! &amp;nbsp;:)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8769706" width="1" height="1"&gt;</description></item><item><title>re: Reading a contract from the other side: Simulating a drop</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8769699</link><pubDate>Thu, 24 Jul 2008 20:56:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8769699</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;It's been a really long time since I played with this stuff, but isn't there a pointer to a window's drop target stuffed into one of its properties?&lt;/p&gt;
&lt;p&gt;I seem to remember having to hack around this to allow VB6 to support richer drag and drops.&lt;/p&gt;
&lt;p&gt;I'm really rusty on my Win32, but was there a way to get a marshalled pointer to that drop target? &amp;nbsp;Curious for old times sake.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8769699" width="1" height="1"&gt;</description></item><item><title>re: Reading a contract from the other side: Simulating a drop</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2008/07/24/8768095.aspx#8769428</link><pubDate>Thu, 24 Jul 2008 18:04:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8769428</guid><dc:creator>AsmGuru62</dc:creator><description>&lt;P&gt;...uhm... the Leave called in both cases?!.. I think it is a typo. The code is correct though.&lt;/P&gt;
&lt;DIV class=post&gt;[&lt;I&gt;Fixed, thanks. -Raymond&lt;/I&gt;]&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8769428" width="1" height="1"&gt;</description></item></channel></rss>