<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://www.fsdeveloper.com/wiki/index.php?action=history&amp;feed=atom&amp;title=FSX_Popup_windows</id>
	<title>FSX Popup windows - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.fsdeveloper.com/wiki/index.php?action=history&amp;feed=atom&amp;title=FSX_Popup_windows"/>
	<link rel="alternate" type="text/html" href="http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;action=history"/>
	<updated>2026-05-20T06:54:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8730&amp;oldid=prev</id>
		<title>Narutokun-8877 at 19:12, 27 February 2013</title>
		<link rel="alternate" type="text/html" href="http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8730&amp;oldid=prev"/>
		<updated>2013-02-27T19:12:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:12, 27 February 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l128&quot;&gt;Line 128:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 128:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Enjoy!!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Enjoy!!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;category&lt;/del&gt;:Panel and Gauge Design]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Category:Aircraft Design]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category&lt;/ins&gt;:Panel and Gauge Design]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Narutokun-8877</name></author>
	</entry>
	<entry>
		<id>http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8728&amp;oldid=prev</id>
		<title>Narutokun-8877 at 21:58, 24 February 2013</title>
		<link rel="alternate" type="text/html" href="http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8728&amp;oldid=prev"/>
		<updated>2013-02-24T21:58:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:58, 24 February 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot;&gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				FindWindow(L&amp;quot;FS98MAIN&amp;quot;, L&amp;quot;Microsoft Flight Simulator X&amp;quot;),//The Parent  window&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				FindWindow(L&amp;quot;FS98MAIN&amp;quot;, L&amp;quot;Microsoft Flight Simulator X&amp;quot;),//The Parent  window&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				NULL,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				NULL,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				GetModuleHandle(L&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;My_DLL&lt;/del&gt;.dll&quot;),&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				GetModuleHandle(L&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MY_DLL&lt;/ins&gt;.dll&quot;),&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				NULL );&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				NULL );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	ShowWindow (hwnd, SW_SHOWNORMAL);//Shows the window&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	ShowWindow (hwnd, SW_SHOWNORMAL);//Shows the window&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Narutokun-8877</name></author>
	</entry>
	<entry>
		<id>http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8727&amp;oldid=prev</id>
		<title>Narutokun-8877 at 21:53, 24 February 2013</title>
		<link rel="alternate" type="text/html" href="http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8727&amp;oldid=prev"/>
		<updated>2013-02-24T21:53:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:53, 24 February 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l105&quot;&gt;Line 105:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 105:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				HDC hdc;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				HDC hdc;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				wchar_t *WinOutput[] = {{L&amp;quot;Hello World!&amp;quot;},{L&amp;quot;This window was created  out of a DLL.&amp;quot;}};&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				wchar_t *WinOutput[] = {{L&amp;quot;Hello World!&amp;quot;},{L&amp;quot;This window was created  out of a DLL.&amp;quot;}};&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	 			&lt;/del&gt;hdc = BeginPaint(hwnd, &amp;amp;ps);   // now we have a valid device context to modify the window&#039;s content&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; 	 			&lt;/ins&gt;hdc = BeginPaint(hwnd, &amp;amp;ps);   // now we have a valid device context to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;modify the window&#039;s content&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				TextOut(hdc,20,20,WinOutput[0],wcslen(WinOutput[0]));&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				TextOut(hdc,20,20,WinOutput[0],wcslen(WinOutput[0]));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				MoveToEx(hdc,20,40,NULL);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  				MoveToEx(hdc,20,40,NULL);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Narutokun-8877</name></author>
	</entry>
	<entry>
		<id>http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8726&amp;oldid=prev</id>
		<title>Narutokun-8877 at 21:52, 24 February 2013</title>
		<link rel="alternate" type="text/html" href="http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8726&amp;oldid=prev"/>
		<updated>2013-02-24T21:52:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;amp;diff=8726&amp;amp;oldid=8725&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Narutokun-8877</name></author>
	</entry>
	<entry>
		<id>http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8725&amp;oldid=prev</id>
		<title>Narutokun-8877: New page: {{Infobox-Applicable-FSVersion | FSXI = false | FSXA = false | FSX = false | FS2004 = false | FS2002 = false | XP10 = false  | XP9 = false  }}   Here is a short tutorial on how to create p...</title>
		<link rel="alternate" type="text/html" href="http://www.fsdeveloper.com/wiki/index.php?title=FSX_Popup_windows&amp;diff=8725&amp;oldid=prev"/>
		<updated>2013-02-24T21:49:04Z</updated>

		<summary type="html">&lt;p&gt;New page: {{Infobox-Applicable-FSVersion | FSXI = false | FSXA = false | FSX = false | FS2004 = false | FS2002 = false | XP10 = false  | XP9 = false  }}   Here is a short tutorial on how to create p...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox-Applicable-FSVersion&lt;br /&gt;
| FSXI = false&lt;br /&gt;
| FSXA = false&lt;br /&gt;
| FSX = false&lt;br /&gt;
| FS2004 = false&lt;br /&gt;
| FS2002 = false&lt;br /&gt;
| XP10 = false &lt;br /&gt;
| XP9 = false &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a short tutorial on how to create popup windows from a C++ gauge or SimConnect module dll. Do note that i will not be going into where to execute the creation functions from the gauge or SimConnect dll.&lt;br /&gt;
&lt;br /&gt;
First off, in your header file, add the following declarations:&lt;br /&gt;
&lt;br /&gt;
[CODE]&lt;br /&gt;
#include &amp;lt;windows.h&amp;gt;&lt;br /&gt;
#include &amp;lt;process.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
bool CreateWin();&lt;br /&gt;
bool ExitWin();&lt;br /&gt;
DWORD WINAPI WinThread(LPVOID lpParam);&lt;br /&gt;
bool RegisterWin();&lt;br /&gt;
LRESULT CALLBACK WinQueue(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);&lt;br /&gt;
//Replace Win with any identifier name you want&lt;br /&gt;
[/CODE]&lt;br /&gt;
&lt;br /&gt;
Then, in your cpp file, create the thread that the window message cue will be run from.&lt;br /&gt;
&lt;br /&gt;
[CODE]&lt;br /&gt;
bool CreateWin()&lt;br /&gt;
{&lt;br /&gt;
	CreateThread(0, NULL, WinThread, NULL, NULL, NULL);&lt;br /&gt;
	return true;&lt;br /&gt;
//returns true so that you can know that you have sent the command to open the new window&lt;br /&gt;
}&lt;br /&gt;
[/CODE]&lt;br /&gt;
&lt;br /&gt;
Also create a function to call to shut down the window(This window does come with a little red box in the upper right corner so this function is just an alternative(also can be called on shutdown)).&lt;br /&gt;
&lt;br /&gt;
[CODE]&lt;br /&gt;
bool ExitWin()&lt;br /&gt;
{&lt;br /&gt;
	SendMessage(hwnd, WM_CLOSE, 0, 0);&lt;br /&gt;
	return false;&lt;br /&gt;
}&lt;br /&gt;
[/CODE]&lt;br /&gt;
&lt;br /&gt;
Next is your function to register the class. Note that i have made it a template of the FS98FLOAT class to save some code lines.&lt;br /&gt;
&lt;br /&gt;
[CODE]&lt;br /&gt;
bool RegisterWin()&lt;br /&gt;
{&lt;br /&gt;
	WNDCLASSW wc;	&lt;br /&gt;
	memset(&amp;amp;wc,0,sizeof(WNDCLASS));&lt;br /&gt;
	if(GetClassInfo(NULL, L&amp;quot;FS98FLOAT&amp;quot;, &amp;amp;wc))&lt;br /&gt;
	{&lt;br /&gt;
		wc.lpszClassName = L&amp;quot;MYFLOAT&amp;quot;;//Choose your class name&lt;br /&gt;
		wc.hInstance = GetModuleHandle(L&amp;quot;MY_DLL.dll&amp;quot;);//place your dll name here&lt;br /&gt;
		wc.lpfnWndProc = (WNDPROC) WinQueue;//Your message que function&lt;br /&gt;
		wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);&lt;br /&gt;
		if(RegisterClass(&amp;amp;wc))&lt;br /&gt;
			return true;&lt;br /&gt;
		else&lt;br /&gt;
			return false;&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
		return false;&lt;br /&gt;
}&lt;br /&gt;
[/CODE]&lt;br /&gt;
&lt;br /&gt;
And now your thread function&lt;br /&gt;
&lt;br /&gt;
[CODE]&lt;br /&gt;
DWORD WINAPI ACMProc(LPVOID lpParam)&lt;br /&gt;
{&lt;br /&gt;
	MSG msg;&lt;br /&gt;
	RegisterWin();//Register the class&lt;br /&gt;
	hwnd = CreateWindowEx(&lt;br /&gt;
				WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_TOOLWINDOW | WS_EX_WINDOWEDGE,//necessary styles etc&lt;br /&gt;
				L&amp;quot;MYFLOAT&amp;quot;, // Your class name								L&amp;quot;My Window&amp;quot;,//Window caption&lt;br /&gt;
				WS_CAPTION | WS_POPUP | WS_CLIPSIBLINGS | WS_SYSMENU | WS_THICKFRAME,//necessary styles etc&lt;br /&gt;
				0,0, 800,600,//Window position/Dimensions&lt;br /&gt;
				FindWindow(L&amp;quot;FS98MAIN&amp;quot;, L&amp;quot;Microsoft Flight Simulator X&amp;quot;),//The Parent window&lt;br /&gt;
				NULL,&lt;br /&gt;
				GetModuleHandle(L&amp;quot;My_DLL.dll&amp;quot;),&lt;br /&gt;
				NULL );&lt;br /&gt;
	ShowWindow (hwnd, SW_SHOWNORMAL);//Shows the window&lt;br /&gt;
	while (GetMessage (&amp;amp;msg, NULL, 0, 0))&lt;br /&gt;
	{&lt;br /&gt;
		TranslateMessage(&amp;amp;msg);&lt;br /&gt;
		DispatchMessage(&amp;amp;msg);&lt;br /&gt;
	}&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
[/CODE]&lt;br /&gt;
&lt;br /&gt;
And finally, the message cue. You can do pretty much whatever you want from here out&lt;br /&gt;
&lt;br /&gt;
[CODE]&lt;br /&gt;
LRESULT CALLBACK ACMQueue(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)&lt;br /&gt;
{&lt;br /&gt;
	switch(message)&lt;br /&gt;
	{&lt;br /&gt;
		case WM_CREATE:							// sent by the windows system just before the window will be displayed the first time&lt;br /&gt;
&lt;br /&gt;
			// here is the best location to prepare your window i.e. connecting to SimConnect&lt;br /&gt;
&lt;br /&gt;
			break;&lt;br /&gt;
		case WM_ERASEBKGND:					    // sent by windows if the entire window will be renewed.&lt;br /&gt;
			break;								// if you create your own background, do it here in and return (1) instead using &amp;#039;break&amp;#039;&lt;br /&gt;
		case WM_PAINT:&lt;br /&gt;
			{&lt;br /&gt;
				PAINTSTRUCT ps;&lt;br /&gt;
				HDC hdc;&lt;br /&gt;
				wchar_t *WinOutput[] = {{L&amp;quot;Hello World!&amp;quot;},{L&amp;quot;This window was created out of a DLL.&amp;quot;}};&lt;br /&gt;
				hdc = BeginPaint(hwnd, &amp;amp;ps);   // now we have a valid device context to modify the window&amp;#039;s content&lt;br /&gt;
				TextOut(hdc,20,20,WinOutput[0],wcslen(WinOutput[0]));&lt;br /&gt;
				MoveToEx(hdc,20,40,NULL);&lt;br /&gt;
				LineTo(hdc,120,40);&lt;br /&gt;
				TextOut(hdc,20,60,WinOutput[1],wcslen(WinOutput[1]));&lt;br /&gt;
				// do all drawing of your window  here in&lt;br /&gt;
&lt;br /&gt;
				EndPaint(hwnd,&amp;amp;ps);&lt;br /&gt;
			}&lt;br /&gt;
			break;&lt;br /&gt;
		case WM_DESTROY:		// sent by the windows system just before the window will be destroyed&lt;br /&gt;
								// disconnect from SimConnect out of this message&lt;br /&gt;
			break;&lt;br /&gt;
		case WM_CLOSE:&lt;br /&gt;
			Vd-&amp;gt;INIS-&amp;gt;AcmWin = false;&lt;br /&gt;
			break;&lt;br /&gt;
	}&lt;br /&gt;
	return (DefWindowProcA(hwnd, message, wParam, lParam));&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
[/CODE]&lt;br /&gt;
&lt;br /&gt;
Enjoy!!&lt;br /&gt;
&lt;br /&gt;
[[category:Panel and Gauge Design]]&lt;/div&gt;</summary>
		<author><name>Narutokun-8877</name></author>
	</entry>
</feed>