I am just starting learning LabWindows, so please excuse the newbie question.
I am trying to write a Date/Time picker. I have found a reference in this forum about being able to use WIN32 APIs, and code like this can bring up a picker in a LabWindows panel. (Note: Not my code. I found it elsewhere and am just modifying it for placement, etc.)
#include "Windows.h" #include "CommCtrl.h" … int startDateHandle; int startTimeHandle; int hwndDlg; HINSTANCE hProgInst; GetPanelAttribute (panelHandle, ATTR_SYSTEM_WINDOW_HANDLE, &hwndDlg); hProgInst = GetModuleHandle (NULL); startDateHandle = CreateWindowEx (0, DATETIMEPICK_CLASS, TEXT("DateTime"), WS_BORDER|WS_CHILD|WS_VISIBLE| DTS_SHORTDATEFORMAT, 37+54+10, 37, 90, 23, (HWND)hwndDlg, NULL, hProgInst, NULL); startTimeHandle = CreateWindowEx (0, DATETIMEPICK_CLASS, TEXT("DateTime"), WS_BORDER|WS_CHILD|WS_VISIBLE| DTS_TIMEFORMAT, 37+54+10+100, 37, 90, 23, (HWND)hwndDlg, NULL, hProgInst, NULL);
Although I have been able to write a simple User Interface app that uses a Canvas, buttons, input fields, timers and threads, I have no experience using the WIN32 API.
Could someone point me in the right direction for what I should be consulting in the Help files for doing something like this?
Much appreciated...