// #include <uxtheme.h>
#define ETDT_ENABLE 0x2
#define ETDT_USETABTEXTURE 0x4
#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE)
#typedef HRESULT (WINAPI *EnableThemeDialogTexturePROC)(HWND, DWORD);

HMODULE hMod;
hMod = LoadLibrary("uxtheme.dll");
if (hMod)
{
	EnableThemeDialogTexturePROC pEnableThemeDialogTexture;
	pEnableThemeDialogTexture = (EnableThemeDialogTexturePROC)GetProcAddress(hMod, "EnableThemeDialogTexture");
	if (pEnableThemeDialogTexture)
		pEnableThemeDialogTexture(hDlgWnd, ETDT_ENABLETAB);
	FreeLibrary(hMod);
}

hDlgWnd: TabCtrlののるDialogのhWnd


VC覚書きページ...