Changeset 763 in dev for trunk/ab5.0/abdev/ab_common
- Timestamp:
- Nov 6, 2008, 10:22:26 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev/ab_common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Environment.cpp
r751 r763 1 1 #include "stdafx.h" 2 #include <uxtheme.h> 2 3 3 4 std::string ActiveBasic::Common::Environment::rootPath; … … 36 37 } 37 38 39 BOOL EnableLFH(HANDLE hHeap) 40 { 41 ULONG enableLFH = 2; 42 return HeapSetInformation(hHeap, HeapCompatibilityInformation, &enableLFH, sizeof enableLFH); 43 } 44 38 45 void* operator new( std::size_t n ) 39 46 { … … 60 67 ::operator delete( p ); 61 68 } 69 70 typedef HRESULT (WINAPI* PFN_EnableThemeDialogTexture)(HWND, DWORD); 71 72 HMODULE hmodUxTheme = LoadLibrary("uxtheme"); 73 74 HRESULT ApplyDialogTexture( HWND hwnd ) 75 { 76 if( hmodUxTheme ) 77 { 78 if( PFN_EnableThemeDialogTexture pfn = reinterpret_cast<PFN_EnableThemeDialogTexture>( 79 GetProcAddress(hmodUxTheme, "EnableThemeDialogTexture")) ) 80 { 81 return pfn(hwnd, ETDT_ENABLETAB); 82 } 83 } 84 return E_NOTIMPL; 85 } -
trunk/ab5.0/abdev/ab_common/stdafx.h
r750 r763 11 11 #include <stdio.h> 12 12 #include <string.h> 13 #include <stdlib.h> 13 14 #include <math.h> 14 15 #include <time.h> 15 16 #include <limits.h> 16 17 #include <shlobj.h> 18 #include <assert.h> 17 19 18 20 //boost libraries
Note:
See TracChangeset
for help on using the changeset viewer.