MT_Thread::MT_Thread(){ m_hHandle = NULL; m_iThreadID = 0; m_bPause = false; m_bExit = false; m_bSuspend = false; m_bHasPause = false; SetSleepTime(); }
void FrameForClient::InitInstance(){//Initialize Window /* //only use in In InitInstance(); BOOL SetWndText(LPWSTR title); if title = DEFAULT ,the title of window is default title BOOL SetSleepTime(UINT time); if time = DEFAULT , the sleep time is 10 ms BOOL SetWndSize(UINT width, UINT height); //if width(height) = DEFAULT , the width(height) will be default size BOOL SetAppIcon(UINT icon, UINT smicon); //if icon(smlicon) = DEFAULT , the icon(smlicon) will be default icon */ //To do something... SetAppIcon(IDI_ICON_BIRD,IDI_ICON_BIRD); SetWndText(_T(L"flappy bird")); SetWndSize(304, /*551*/510); SetSleepTime(20); }