Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Date and Time Picker Control
Message
De
28/05/2010 08:53:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01466365
Message ID:
01466367
Vues:
89
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>Anybody know how to programmatically drop down the calendar for the Date Picker control? Firing the DropDown event doesn't seem to work, and I can't seem to locate any other property or method to make this happen.
>
>TIA,
*** Author: Cetin Basoz
#define WM_LBUTTONDOWN 0x0201
#define WM_SYSKEYDOWN  0x0104
#define WM_SYSKEYUP    0x0105

#define VK_MENU 12
#define VK_DOWN 28

LOCAL lnHWND
LOCAL ARRAY arrDLL[1]
ADLLS(arrDLL)
IF ASCAN(arrDLL,'SendMessage',1,-1,1,1+2+4) = 0
	declare integer SendMessage IN WIN32API ;
		integer hwnd, integer Msg, integer Wparam, integer lParam 
endif	
lnHwnd = Thisform.OleDateTime.hWnd
SendMessage(m.lnHwnd,WM_LBUTTONDOWN,0,0)
SendMessage(m.lnHwnd,WM_SYSKEYDOWN,VK_MENU+VK_DOWN,0)
SendMessage(m.lnHwnd,WM_SYSKEYUP,VK_MENU+VK_DOWN,0)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform