Index: trunk/ab5.0/abdev/ab_common/src/Environment.cpp
===================================================================
--- trunk/ab5.0/abdev/ab_common/src/Environment.cpp	(revision 760)
+++ trunk/ab5.0/abdev/ab_common/src/Environment.cpp	(revision 763)
@@ -1,3 +1,4 @@
 #include "stdafx.h"
+#include <uxtheme.h>
 
 std::string ActiveBasic::Common::Environment::rootPath;
@@ -36,4 +37,10 @@
 }
 
+BOOL EnableLFH(HANDLE hHeap)
+{
+	ULONG enableLFH = 2;
+	return HeapSetInformation(hHeap, HeapCompatibilityInformation, &enableLFH, sizeof enableLFH);
+}
+
 void* operator new( std::size_t n )
 {
@@ -60,2 +67,19 @@
 	::operator delete( p );
 }
+
+typedef HRESULT (WINAPI* PFN_EnableThemeDialogTexture)(HWND, DWORD);
+
+HMODULE hmodUxTheme = LoadLibrary("uxtheme");
+
+HRESULT ApplyDialogTexture( HWND hwnd )
+{
+	if( hmodUxTheme )
+	{
+		if( PFN_EnableThemeDialogTexture pfn = reinterpret_cast<PFN_EnableThemeDialogTexture>(
+			GetProcAddress(hmodUxTheme, "EnableThemeDialogTexture")) )
+		{
+			return pfn(hwnd, ETDT_ENABLETAB);
+		}
+	}
+	return E_NOTIMPL;
+}
Index: trunk/ab5.0/abdev/ab_common/stdafx.h
===================================================================
--- trunk/ab5.0/abdev/ab_common/stdafx.h	(revision 760)
+++ trunk/ab5.0/abdev/ab_common/stdafx.h	(revision 763)
@@ -11,8 +11,10 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <math.h>
 #include <time.h>
 #include <limits.h>
 #include <shlobj.h>
+#include <assert.h>
 
 //boost libraries
