Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using week numbers and date range selection in datetimepicke
Message
De
18/08/2002 17:15:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Using week numbers and date range selection in datetimepicke
Divers
Thread ID:
00690901
Message ID:
00690901
Vues:
73
I try to use a datetimepicker class from UT latest downloads
(file commctrl.zip) to display week numbers and to allow multiple
selection of dates.
According to MS KB Docs, I changed a style parameter of CreateWindowEx function in the
datetimepicker class recreate method .

My code is
	.hWnd = CreateWindowEx( WS_EX_NOPARENTNOTIFY, DATETIMEPICK_CLASS, "DateTimePicker", ;
			BitOr( m.lnStyle, WS_CHILD, MCS_WEEKNUMBERS, MCS_MULTISELECT), ;
			m.lnLeft, ;
			m.lnTop, ;
			m.lnWidth, ;
			m.lnHeight, ;
			.hWndParent, ;
			0, ;
			.nParentInstance, ;
			0)
Unfortunately, the week numbers are not displayed and multi seletion is not
allowed. Why ?

Original code was:
	.hWnd = CreateWindowEx( WS_EX_NOPARENTNOTIFY, DATETIMEPICK_CLASS, "DateTimePicker", ;
			BitOr( m.lnStyle, WS_CHILD), ;
			m.lnLeft, ;
			m.lnTop, ;
			m.lnWidth, ;
			m.lnHeight, ;
			.hWndParent, ;
			0, ;
			.nParentInstance, ;
			0)
Andrus
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform