About TCalendar

Re: About TCalendar

Postby AntoninoP » Wed Dec 30, 2020 8:33 am

I see, it works only on Vista and later, are you trying with win 7? see requirement section on https://docs.microsoft.com/en-us/windows/win32/api/commctrl/nf-commctrl-monthcal_sizerecttomin. It is a shame,
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: About TCalendar

Postby Antonio Linares » Wed Dec 30, 2020 10:41 am

Antonino,

We have modified methods New() and Initiate() using this code:

Code: Select all  Expand view
  aRect = MonthCal_GetMinReqRect( ::hWnd )
   SetWindowPos( ::hWnd, 0, ::nLeft, ::nTop, ;
                 Max( ::nWidth, aRect[ 4 ] ) - ( ::nLeft * 2 ), ;
                 aRect[ 3 ], nOr( SWP_NOZORDER, SWP_NOMOVE ) )


many thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 105 guests