<?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>Vdiscussion &#187; uType</title>
	<atom:link href="http://vdiscussion.com/tag/utype/feed/" rel="self" type="application/rss+xml" />
	<link>http://vdiscussion.com</link>
	<description>Vinoth Kumar&#039;s Discussion</description>
	<lastBuildDate>Wed, 09 Dec 2009 15:34:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>MessageBox Function Visual Programming</title>
		<link>http://vdiscussion.com/messagebox-function-visual-programming/</link>
		<comments>http://vdiscussion.com/messagebox-function-visual-programming/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 05:31:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Theory Subjects]]></category>
		<category><![CDATA[Visual Programming]]></category>
		<category><![CDATA[hWnd]]></category>
		<category><![CDATA[lpCaption]]></category>
		<category><![CDATA[lpText]]></category>
		<category><![CDATA[MessageBox]]></category>
		<category><![CDATA[MessageBox syntax]]></category>
		<category><![CDATA[uType]]></category>

		<guid isPermaLink="false">http://vdiscussion.com/?p=27</guid>
		<description><![CDATA[The MessageBox function is designed to display short messages. Syntax int MessageBox( HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType ); Parameters hWnd &#8211;&#62; Handle to the owner window of the message box to be created. If this parameter is NULL, the message box has no owner window. lpText &#8211;&#62; Pointer to a null-terminated string [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong><em>MessageBox</em></strong> function is designed to display short messages.</p>
<p><strong>Syntax</strong></p>
<blockquote><p>int MessageBox(<br />
HWND hWnd,<br />
LPCTSTR lpText,<br />
LPCTSTR lpCaption,<br />
UINT uType<br />
);</p></blockquote>
<p><strong>Parameters</strong></p>
<p><strong>hWnd</strong> &#8211;&gt; Handle to the <em>owner window of the message box to be created</em>. If this parameter is NULL, the message box has no owner window.</p>
<p><strong>lpText</strong> &#8211;&gt; Pointer to a null-terminated string that <em>contains the message to be displayed</em>. If the string consists of more than one line, you can separate the lines using a carriage return and/or linefeed character between each line.</p>
<p><strong>lpCaption</strong> &#8211;&gt; Pointer to a null-terminated string that <em>contains the dialog box title</em>. If this parameter is NULL, the default title is Error.</p>
<p><strong>uType</strong> &#8211;&gt; Specifies the contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups of flags.</p>
<p>You can pick one constant from the first set to indicate what buttons you wish to appear in the dialog box:</p>
<ul>
<li>#define MB_OK                       0x00000000L</li>
<li>#define MB_OKCANCEL                 0x00000001L</li>
<li>#define MB_ABORTRETRYIGNORE         0x00000002L</li>
<li>#define MB_YESNOCANCEL              0x00000003L</li>
<li>#define MB_YESNO                    0x00000004L</li>
<li>#define MB_RETRYCANCEL              0x00000005L</li>
</ul>
<p>When you set the fourth argument to 0 in HELLOMSG, only the OK button appears.</p>
<p><strong>Return Value</strong></p>
<p>If a message box has a <strong>Cancel</strong> button, the function returns the IDCANCEL value if either the ESC key is pressed or the <strong>Cancel</strong> button is selected. If the message box has no <strong>Cancel</strong> button, pressing ESC has no effect.</p>
<p>If the function fails, the return value is zero. To get extended error information, call GetLastError</p>
<p>If the function succeeds, the return value is one of the following menu-item values.</p>
<table style="height: 166px;" border="0" cellpadding="0" width="273">
<tbody>
<tr>
<td>IDABORT</td>
<td><strong>Abort</strong> button was selected.</td>
</tr>
<tr>
<td>IDCANCEL</td>
<td><strong>Cancel</strong> button was selected.</td>
</tr>
<tr>
<td>IDCONTINUE</td>
<td><strong>Continue</strong> button was selected.</td>
</tr>
<tr>
<td>IDIGNORE</td>
<td><strong>Ignore</strong> button was selected.</td>
</tr>
<tr>
<td>IDNO</td>
<td><strong>No</strong> button   was selected.</td>
</tr>
<tr>
<td>IDOK</td>
<td><strong>OK</strong> button   was selected.</td>
</tr>
<tr>
<td>IDRETRY</td>
<td><strong>Retry</strong> button was selected.</td>
</tr>
<tr>
<td>IDTRYAGAIN</td>
<td><strong>Try Again</strong> button was selected.</td>
</tr>
<tr>
<td>IDYES</td>
<td><strong>Yes</strong> button   was selected.</td>
</tr>
</tbody>
</table>
<blockquote><p>#include &lt;windows.h&gt;</p>
<p>int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,<br />
PSTR szCmdLine, int iCmdShow)<br />
{<br />
MessageBox (NULL, TEXT (&#8220;Hello, vdiscussion.com&#8221;), TEXT (&#8220;Vdiscussion.com&#8221;), 0) ;</p>
<p>return 0 ;<br />
}</p></blockquote>
<p><strong>Output</strong></p>
<div id="attachment_28" class="wp-caption alignnone" style="width: 148px"><img class="size-full wp-image-28" title="Helloprogramoutput" src="http://vdiscussion.com/wp-content/uploads/2009/10/Helloprogramoutput.JPG" alt="Helloprogramoutput" width="138" height="100" /><p class="wp-caption-text">Helloprogramoutput</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vdiscussion.com/messagebox-function-visual-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
