Ignore:
Timestamp:
Nov 6, 2008, 10:22:26 PM (15 years ago)
Author:
イグトランス (egtra)
Message:

#228試行

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ab_common/src/Environment.cpp

    r751 r763  
    11#include "stdafx.h"
     2#include <uxtheme.h>
    23
    34std::string ActiveBasic::Common::Environment::rootPath;
     
    3637}
    3738
     39BOOL EnableLFH(HANDLE hHeap)
     40{
     41    ULONG enableLFH = 2;
     42    return HeapSetInformation(hHeap, HeapCompatibilityInformation, &enableLFH, sizeof enableLFH);
     43}
     44
    3845void* operator new( std::size_t n )
    3946{
     
    6067    ::operator delete( p );
    6168}
     69
     70typedef HRESULT (WINAPI* PFN_EnableThemeDialogTexture)(HWND, DWORD);
     71
     72HMODULE hmodUxTheme = LoadLibrary("uxtheme");
     73
     74HRESULT 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.