Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Date and Time Picker Control
Message
 
To
28/05/2010 08:53:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01466365
Message ID:
01466371
Views:
37
Thanks VERY MUCH Cetin ... works great !!!

>>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
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Reply
Map
View

Click here to load this message in the networking platform