BUG: ????? ??????? BN_DOUBLECLICKED ?????? ??? ???? ?????? MFC

?????? ????????? ?????? ?????????
???? ???????: 247323 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

???????

??? Windows CE ???????? ???? MFC ??? ????? ????? ????? BN_DOUBLECLICKED ??? ??? ???? ???? ?? ???? ? ??????? ?? ???? ??? ????? ??????? ??? ????. ??? ??????? ??????? ??? ???? ??????? Microsoft Windows 95 ? Microsoft Windows 98 Microsoft Windows NT 4.0 ? Microsoft Windows 2000.

?????

???? ??? ??????? ???? ??? ?? ???? ??????? Windows CE.

????

??? ????? ????? ????? ????? BN_CLICKED ???? ????. ?? ???? ??????? ? ??????? ?????? ?????? ?????? ??? ??? ??????? ?? ??? ??? ???? ?? ????? ???? ?? ??? ???? ????? ?????:
  static BOOL s_bLastClicked = TRUE;
  static DWORD s_dwTickCount = 0;
  if (s_bLastClicked)
  {
    DWORD dwTickCount = GetTickCount();
    if ((dwTickCount - s_dwTickCount) < 500) //Last click less than 500ms?
    {
      s_bLastClicked = FALSE; //Was double-clicked, don't test next time...

      //Assume a double click...
      //Do your double-click code here...
    }
    s_dwTickCount = dwTickCount;
  }
  else
     s_bLastClicked = TRUE;
				
?????? ????? CS_DBLCLKS ??? ??? ??? ?????? ?????? BS_NOTIFY ??? ??? ???? ?? ?????. ??? ????? ?? ???? ???? ??? ??????? ?????? ??????? ???????? ??? ??????? ??? ??????? ???????? ?????? ???????? ??? Windows CE.

?????

???? Microsoft ?? ??? ??? ?? ?????? Microsoft ??????? ?? ????? ??? ???????.

??????? ????

????? ????? ????? ??????

  1. ????? ????? ???? ????? ??? ?????? ???????? AppWizard MFC WCE. ???? ???? ????? ?????????? ????? ??? ?????.
  2. ?? ????? OnInitDialog ?????? ???????? ???????? ??????? ??? ????? ???????:
    SetClassLong(m_hWnd, GCL_STYLE, GetClassLong(m_hWnd, GCL_STYLE) | CS_DBLCLKS);
  3. ????? ?? ??? ???? ??????. ???? ??? ?????? ?????? ??? ???? ?? ???? ??? ?????. ???? ??? ????? ??????? ????? ?? ??? ???? ???????? ???????.
  4. ?????? ClassWizard ?? ???? ????? ??? ??????? ??? ????? ???? ??????? ClassWizard. ??? ?????? "?????? ????" ? ???? ??? IDC_BUTTON1. ??? ?????? "???????" ? ???? ??? ??????? BN_DOUBLECLICKED. ???? ??? ????? ???? ?? ???? ??? ????? ????????? ????????.
  5. ?? ???? ???? ?? ????? ??????? BN_DOUBLECLICKED ???? ????.
  6. ?????? ??????? ??????? ???? ??? ???????? ?? ?????.
??? ?? ????? ?? ???? ??????? ?? ?????? ??? ????? ??? ??????? ?? ?? ???????? ???????? ?? ??? ??????? ??? ??????. ??? ??? ?????? ??????? ??????? ?? ??? ??????? Win32 ?? ???? ??? Windows CE ??????? ???? ??? ?? ?????.

???????

???? ???????: 247323 - ????? ??? ??????: 23/???? ??????/1435 - ??????: 2.0
????? ???
  • Microsoft Windows CE Toolkit ?? Visual C++ 6.0, ????? ?????? ??:
    • Microsoft Foundation Class Library 4.2
????? ??????: 
kbnosurvey kbarchive kbmt kbbug kbbutton KB247323 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????247323

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com