I have 1 datetimepick_class control placed on win32 form. I create it like below:
HWND Date = CreateWindowEx(
0,
DATETIMEPICK_CLASS,
TEXT("DateTime"),
WS_BORDER | WS_CHILD | WS_VISIBLE ,
10, 10
250, 30,
hWnd,
(HMENU)IDC_DATE_TIME_PICK,
hInst,
NULL
);
And I have button. I want when this button clicked, it should get selected date value from that mentioned datetimepick widget.
I handle button clicked event as below:
switch (message)
{
case WM_COMMAND:
{
int wmId = LOWORD(wParam);
switch (wmId)
{
case IDC_Calculate_Button:
//Button clicked so
//Display selected date value in msgbox
}
}
I tried existing answers but they are rare or not well documented or in detailed.
Please guide me.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…