mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-13 00:42:37 +12:00
31 lines
885 B
C#
31 lines
885 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace OnTopReplica.Native {
|
|
public static class CommonControls {
|
|
|
|
[DllImport("comctl32.dll", EntryPoint = "InitCommonControlsEx", CallingConvention = CallingConvention.StdCall)]
|
|
static extern bool InitCommonControlsEx(ref INITCOMMONCONTROLSEX iccex);
|
|
|
|
const int ICC_STANDARD_CLASSES = 0x00004000;
|
|
const int ICC_WIN95_CLASSES = 0x000000FF;
|
|
|
|
public static bool InitStandard() {
|
|
INITCOMMONCONTROLSEX ex = new INITCOMMONCONTROLSEX();
|
|
ex.dwSize = 8;
|
|
ex.dwICC = ICC_STANDARD_CLASSES | ICC_WIN95_CLASSES;
|
|
|
|
return InitCommonControlsEx(ref ex);
|
|
}
|
|
|
|
}
|
|
|
|
struct INITCOMMONCONTROLSEX {
|
|
public int dwSize;
|
|
public int dwICC;
|
|
}
|
|
|
|
}
|