Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Month selector Date: Wed, 14 Dec 2016 19:26:24 +0100 Lines: 54 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: individual.net r8URR96BFilMGe2AVMamvACT7jK6M6aIsHoLLZ/iyTmw8GMAo= Cancel-Lock: sha1:oMjJNytnHO1KOS2SIY3as1r9+48= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 Xref: csiph.com comp.lang.clipper.visual-objects:10054 Hi ?????? > i'm trying to show the window that appears when > a user clicks on month using datetimepicker. > < 2016 > > jan feb mar aprl > may jun jul aug > sep oct nov dec Here“s the code to show the dropdown calendar in month view. More view options are mentioned below. -------------- METHOD ControlNotify(oEvent) CLASS LOCAL pNMHDR AS _winNMHDR LOCAL hMonthControl AS PTR DO CASE CASE DWORD ( oEvent:NotifyCode ) == DTN_DROPDOWN pNMHDR := PTR ( _CAST , oEvent:lParam ) IF pNMHDR.hwndFrom == :Handle() hMonthControl := SendMessage(:Handle() , DTM_GETMONTHCAL , 0 , 0L ) SendMessage( hMonthControl, MCM_SETCURRENTVIEW, 0 , MCMV_MONTH ) ENDIF ENDCASE RETURN SUPER:ControlNotify(oEvent) ------------- missing defines: -------------- DEFINE MCM_SETCURRENTVIEW := MCM_FIRST + 32 DEFINE MCMV_CENTURY := 3 DEFINE MCMV_DAY := 0 DEFINE MCMV_DECADE := 2 DEFINE MCMV_MONTH := 1 Regards Karl-Heinz