problem with weekday function

I would like to button "Open All" is activated at the exact same time on a certain day of the week, for example every Monday at 8.00am

--------------------------------------------------
//7. create open-all relay button
m_hOpenAllRelayBtn = XBtn_Create(10, pos_y+10, 120, 50, L"Open All", m_hWindow);
XCGUI_RegEleEvent(m_hOpenAllRelayBtn, XE_BNCLICK, &CUSBRelayWnd::OnOpenAllRelayBtnClick);

//8. create close-all relay button
m_hCloseAllRelayBtn = XBtn_Create(140, pos_y+10, 120, 50, L"Close All", m_hWindow);
XCGUI_RegEleEvent(m_hCloseAllRelayBtn, XE_BNCLICK, &CUSBRelayWnd::OnCloseAllRelayBtnClick);
--------------------------------------------------

here is a whole code where I am reached

http://ideone.com/tI8mWo
Topic archived. No new replies allowed.