int TVM_SETEXTENDEDSTYLE = ((Number) claOS.getField(
"TVM_SETEXTENDEDSTYLE").get(null)).intValue();
int TVS_EX_FADEINOUTEXPANDOS = ((Number) claOS.getField(
"TVS_EX_FADEINOUTEXPANDOS").get(null)).intValue();
Field fldHandle = this.getClass().getField("handle");
Class<?> handleType = fldHandle.getType();
if (handleType == int.class) {
Method methSendMessage = claOS.getMethod("SendMessage", int.class,
int.class, int.class, int.class);
Number nbits2 = (Number) methSendMessage.invoke(null,
fldHandle.get(this), TVM_GETEXTENDEDSTYLE, 0, 0);
int bits2 = nbits2.intValue() & (~TVS_EX_FADEINOUTEXPANDOS);
methSendMessage.invoke(null, ((Number) fldHandle.get(this)).intValue(),
TVM_SETEXTENDEDSTYLE, 0, bits2);
} else {
Method methSendMessage = claOS.getMethod("SendMessage", long.class,
int.class, long.class, long.class);
Number nbits2 = (Number) methSendMessage.invoke(null,
fldHandle.get(this), TVM_GETEXTENDEDSTYLE, 0, 0);
long bits2 = nbits2.longValue() & (~TVS_EX_FADEINOUTEXPANDOS);
methSendMessage.invoke(null,
((Number) fldHandle.get(this)).longValue(), TVM_SETEXTENDEDSTYLE,
0, bits2);
}
} catch (Throwable t) {
t.printStackTrace();