Changeset 763 in dev for trunk/ab5.0/abdev/ab_common/src/Environment.cpp
- Timestamp:
- Nov 6, 2008, 10:22:26 PM (16 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.