This macro expands to:
#define WinIsControlEnabled(hwndDlg, usId) ((BOOL)WinIsWindowEnabled(WinWindowFromID(hwndDlg, usId)))
This function requires the existence of a message queue.