<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MBDealer &#187; Programmierung</title>
	<atom:link href="http://www.mbdealer.de/category/programmierung/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mbdealer.de</link>
	<description>Tipps, Tricks und Code-Snippets für Programmierer vom Programmierer</description>
	<lastBuildDate>Fri, 20 Jan 2012 08:24:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Maus &#8211; CursorPostion ermitteln</title>
		<link>http://www.mbdealer.de/maus-cursorpostion-ermitteln/</link>
		<comments>http://www.mbdealer.de/maus-cursorpostion-ermitteln/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 21:10:19 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[Borland C++ Builder]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/maus-cursorpostion-ermitteln/</guid>
		<description><![CDATA[TPoint *mausxy = new TPoint; GetCursorPos(mausxy); int x = mausxy-&#62;x &#8211; Form1-&#62;Left; int y = mausxy-&#62;y &#8211; Form1-&#62;Top; Label1-&#62;Caption = &#8220;X= &#8221; + IntToStr(x) + &#8221; Y= &#8221; + IntToStr(y); delete mausxy;]]></description>
		<wfw:commentRss>http://www.mbdealer.de/maus-cursorpostion-ermitteln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Funktion zum generieren von Passwörtern mit Längenangabe</title>
		<link>http://www.mbdealer.de/funktion-zum-generieren-von-passwortern-mit-langenangabe/</link>
		<comments>http://www.mbdealer.de/funktion-zum-generieren-von-passwortern-mit-langenangabe/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 09:10:00 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/funktion-zum-generieren-von-passwortern-mit-langenangabe/</guid>
		<description><![CDATA[Diese Funktion generiert Passwörter mit einer vorher übergebenen Länge. function genpassword($length) { $password = &#8220;&#8221;; $chars = &#8220;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&#8243;; mt_srand((double)microtime()*1000000); for ($i=1; $i &#60; = $length; $i++) { $password .= substr($chars, mt_rand(0,strlen($chars)-1), 1); } return $password; } Beispiel: echo genpassword(8); // Gibt ein 8 Zeichen langes Passwort aus.]]></description>
		<wfw:commentRss>http://www.mbdealer.de/funktion-zum-generieren-von-passwortern-mit-langenangabe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIV Container horizontal zentrieren</title>
		<link>http://www.mbdealer.de/div-container-horizontal-zentrieren/</link>
		<comments>http://www.mbdealer.de/div-container-horizontal-zentrieren/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 07:58:45 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/css/div-container-horizontal-zentrieren/</guid>
		<description><![CDATA[Beim Internet Explorer reicht ein simples text-align: center; aus um einen DIV Container horizontal zu zentrieren, leider funktioniert dies nicht beim Mozilla Firefox oder beim Opera. Mit Hilfe von margin-left: auto; und margin-right: auto; lassen sich DIV Container, die eine feste Breite haben bzw. nicht über die gesamte Breite des Browsers gehen, horizontal zentrieren. Beispiel: [...]]]></description>
		<wfw:commentRss>http://www.mbdealer.de/div-container-horizontal-zentrieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browserunabhängiges XMLHttpRequest-Objekt erstellen</title>
		<link>http://www.mbdealer.de/browserunabhaengiges-xmlhttprequest-objekt-erstellen/</link>
		<comments>http://www.mbdealer.de/browserunabhaengiges-xmlhttprequest-objekt-erstellen/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 15:20:01 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/ajax/browserunabhaengiges-xmlhttprequest-objekt-erstellen/</guid>
		<description><![CDATA[Wer kennt das nicht in einem Browser funktioniert alles wunderbar und in einem anderen Browser gibt es nur Fehlermeldungen. In folgendem Code-Snippet wird ein browserunabhängiges XMLHttpRequest-Objekt erstellt das quasi in jedem JavaScript-fähigen Browser funktioniert. var XMLHTTP = null; // Mozilla, Opera, Safari, Internet Explorer 7 if (window.XMLHttpRequest) {XMLHTTP = new XMLHttpRequest();} // Internet Explorer 6 [...]]]></description>
		<wfw:commentRss>http://www.mbdealer.de/browserunabhaengiges-xmlhttprequest-objekt-erstellen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TMemo &#8211; Markierte Zeile ermitteln</title>
		<link>http://www.mbdealer.de/tmemo-markierte-zeile-ermitteln/</link>
		<comments>http://www.mbdealer.de/tmemo-markierte-zeile-ermitteln/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 18:17:00 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[Borland C++ Builder]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/tmemo-markierte-zeile-ermitteln/</guid>
		<description><![CDATA[Ab und an wird auch mal die Zeilennummer der markierten Zeile in einem TMemo gebraucht hier ein Beispiel was ich ganz praktisch finde: void __fastcall TForm1::Memo1Click(TObject *Sender) { int Zeile; Zeile = SendMessageA(Memo1-&#62;Handle, EM_LINEFROMCHAR, Memo1-&#62;SelStart, 0); Edit1-&#62;Text = IntToStr(Zeile+1); }]]></description>
		<wfw:commentRss>http://www.mbdealer.de/tmemo-markierte-zeile-ermitteln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TFileListBox &#8211; Multiselectionen abarbeiten</title>
		<link>http://www.mbdealer.de/tfilelistbox-multiselectionen-abarbeiten/</link>
		<comments>http://www.mbdealer.de/tfilelistbox-multiselectionen-abarbeiten/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 18:16:33 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[Borland C++ Builder]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/tfilelistbox-multiselectionen-abarbeiten/</guid>
		<description><![CDATA[for (int i = 0; i &#60; FileListBox1-&#62;Items-&#62;Count; i++) { if (FileListBox1-&#62;Selected[i]) { ShowMessage(FileListBox1-&#62;Items-&#62;Strings[i]); } }]]></description>
		<wfw:commentRss>http://www.mbdealer.de/tfilelistbox-multiselectionen-abarbeiten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TIdFTP mit TProgressBar verbinden</title>
		<link>http://www.mbdealer.de/tidftp-mit-tprogressbar-verbinden/</link>
		<comments>http://www.mbdealer.de/tidftp-mit-tprogressbar-verbinden/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 18:15:49 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[Borland C++ Builder]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/tidftp-mit-tprogressbar-verbinden/</guid>
		<description><![CDATA[long dlsize=IdFTP1-&#62;Size(&#8220;filename&#8221;); void __fastcall TForm1::IdFTP1WorkBegin(TObject *Sender, TWorkMode AWorkMode, const int AWorkCountMax) { if (AWorkCountMax &#62; 0) { ProgressBar1-&#62;Max=AWorkCountMax; }else { ProgressBar1-&#62;Max=dlsize; } }]]></description>
		<wfw:commentRss>http://www.mbdealer.de/tidftp-mit-tprogressbar-verbinden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blinkendes TLabel</title>
		<link>http://www.mbdealer.de/blinkendes-tlabel/</link>
		<comments>http://www.mbdealer.de/blinkendes-tlabel/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 18:14:35 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[Borland C++ Builder]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/blinkendes-tlabel/</guid>
		<description><![CDATA[void __fastcall TForm1::Timer1Timer(TObject *Sender) { Label1-&#62;Visible = !Label1-&#62;Visible; }]]></description>
		<wfw:commentRss>http://www.mbdealer.de/blinkendes-tlabel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ScreenShot erstellen und JPG-Datei speichern</title>
		<link>http://www.mbdealer.de/screenshot-erstellen-und-jpg-datei-speichern/</link>
		<comments>http://www.mbdealer.de/screenshot-erstellen-und-jpg-datei-speichern/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 18:14:09 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[Borland C++ Builder]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/screenshot-erstellen-und-jpg-datei-speichern/</guid>
		<description><![CDATA[#include &#60;jpeg.hpp&#62; HDC dc = GetDC(NULL); TJPEGImage *pJPG_Bild = new TJPEGImage(); Graphics::TCanvas *ScreenCanvas = new Graphics::TCanvas(); ScreenCanvas-&#62;Handle = dc; thescreen-&#62;AutoSize = true; thescreen-&#62;Center = true; thescreen-&#62;Top = 0; thescreen-&#62;Left = 0; thescreen-&#62;Picture-&#62;Bitmap-&#62;Width = Screen-&#62;Width; thescreen-&#62;Picture-&#62;Bitmap-&#62;Height= Screen-&#62;Height; TRect rect = Rect(0,0,Screen-&#62;Width, Screen-&#62;Height); thescreen-&#62;Picture-&#62;Bitmap-&#62;Canvas-&#62;CopyRect(rect, ScreenCanvas, rect); ReleaseDC(NULL,dc); pJPG_Bild-&#62;Assign(thescreen-&#62;Picture-&#62;Bitmap); pJPG_Bild-&#62;CompressionQuality = 50; pJPG_Bild-&#62;SaveToFile(&#8220;test.jpg&#8221;); delete pJPG_Bild; delete ScreenCanvas;]]></description>
		<wfw:commentRss>http://www.mbdealer.de/screenshot-erstellen-und-jpg-datei-speichern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MultiLineCheckBox</title>
		<link>http://www.mbdealer.de/multilinecheckbox/</link>
		<comments>http://www.mbdealer.de/multilinecheckbox/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 18:12:31 +0000</pubDate>
		<dc:creator>MBDealer</dc:creator>
				<category><![CDATA[Borland C++ Builder]]></category>

		<guid isPermaLink="false">http://www.mbdealer.de/multilinecheckbox/</guid>
		<description><![CDATA[void MultiLineCheckbox(TButtonControl* pmlcheckbox) { SetWindowLong(pmlcheckbox-&#62;Handle, GWL_STYLE, GetWindowLong(pmlcheckbox-&#62;Handle, GWL_STYLE) &#124; BS_MULTILINE); } MultiLineCheckbox(CheckBox1); CheckBox1-&#62;Caption = &#8220;Line1 Line2&#8243;;]]></description>
		<wfw:commentRss>http://www.mbdealer.de/multilinecheckbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

