private unsafe void GetDateTimePickerButtonRectangle(Message *ptrMessage, int messageNumber) { //must be first message if (messageNumber != 1) { throw new Exception("GetDateTimePickerButtonRectangle must be first message"); } // p1 = handle IntPtr handle = GetParameterIntPtr(ptrMessage, 0); CleanUpMessage(ptrMessage); NM.DATETIMEPICKERINFO dtpi = NM.GetDateTimePickerInfo(handle); AddReturnValue(new Parameter(this, dtpi.rcButton.top)); AddReturnValue(new Parameter(this, dtpi.rcButton.left)); AddReturnValue(new Parameter(this, dtpi.rcButton.bottom)); AddReturnValue(new Parameter(this, dtpi.rcButton.right)); }