void createHandle() { super.createHandle(); state |= THEME_BACKGROUND; if (OS.COMCTL32_MAJOR < 6) { layout = new TextLayout(display); if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION(4, 10)) { linkColor = Color.win32_new(display, OS.GetSysColor(OS.COLOR_HOTLIGHT)); } else { linkColor = new Color(display, LINK_FOREGROUND); } disabledColor = Color.win32_new(display, OS.GetSysColor(OS.COLOR_GRAYTEXT)); offsets = new Point[0]; ids = new String[0]; mnemonics = new int[0]; selection = new Point(-1, -1); focusIndex = mouseDownIndex = -1; } }
void createHandle() { super.createHandle(); startTimer(); }