BUG: CB_SETTOPINDEX ? CB_GETTOPINDEX ????? ????? ??? ??? ???????

?????? ????????? ?????? ?????????
???? ???????: 201116 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

???????

??? ???????? ????? ???? ??????? ?????? CB_GETTOPINDEX ? CB_SETTOPINDEX ??? ??????? ????? ??? (0).

?????

?? ???? ??? ??????? ??????? ??? ??????? ?? ??????? ???? ???? ??????? ?????? ?? "????? Windows ??????? ?????".

????

?????? ??? ???? ??? ??? ???? ??????? ????? ??????? ?????? ?? ?????? LB_GETTOPINDEX ? LB_SETTOPINDEX ????? ?? ???.

?????

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

??????? ????

???? ???? ???? ????? ???? ????? ?? ???? ???? ????? ????? ???? ???? ?????. ?????? ??? ??????? ?????? ??? ?????? ??????? ?????? ?????? ?????? ??????? ??????? ?? "????? ??????? ?? Microsoft:
65881INFO: ????? ?? ???? ????? ???? Windows ? ??? ????? ????
??? ?????? Intel ?? ???? ???? ??????? ??? ???? ?? ???? ??????? ??????. ?????? ??? ???? ??????? ??????? ????? ??????? ?? ???? ???? ???? ??????? ???? ?????? ?????.

???? ?????? ??? ???? ?????? ??? ???? ??????? ???????? GetWindow. ????? ?????? ??? ???? ???? ???? ??????? LB_GETTOPINDEX ?????? LB_SETTOPINDEX ??? CB_GETTOPINDEX ? CB_SETTOPINDEX ???????.

???? ????? ???????? ???????? ????? ????? MFC:

??? ?????


class CCtrlsView : public CFormView
{
public:
   CComboBox   m_comboindex;
   int      m_currentIndex;
#ifdef _MAC
   CListBox m_comboList;
#endif
...
};

void CCtrlsView::OnInitialUpdate()
{
   CFormView::OnInitialUpdate();

#ifdef _MAC
   // Obtain pointer to combo's list box.
   HWND hComboList = m_comboindex.GetWindow(GW_CHILD)->m_hWnd;
   ASSERT(hComboList);

   // Verify class name.
   char className[50];
   GetClassName(hComboList, className, 50);
   ASSERT(lstrcmp(className, "ComboLBox") == 0);

   // Subclass to use CListBox.
   m_comboList.SubclassWindow(hComboList);
#endif
...
}

// A simple combo box with "set" and "get" buttons using
// the values from an edit control.
void CCtrlsView::OnSetindex()
{
   UpdateData(TRUE);
#ifndef _MAC
   m_comboindex.SetTopIndex(m_currentIndex);
#else
   m_comboList.SetTopIndex(m_currentIndex);
#endif
}

void CCtrlsView::OnGetindex()
{
#ifndef _MAC
   m_currentIndex = m_comboindex.GetTopIndex();
#else
   m_currentIndex = m_comboList.GetTopIndex();
#endif
   UpdateData(FALSE);
}
				

?????

(c) 1999 ???? Microsoft ? ???? ???? ?????. ????????? ??? ???? ???? ? Microsoft Corporation.

???????

???? ???????: 201116 - ????? ??? ??????: 07/???? ??????/1435 - ??????: 2.0
????? ???
  • Microsoft Visual C++ 4.0 Cross Development Edition ?? Macintosh
  • Microsoft Visual C++ 4.0 Cross Development Edition ?? Macintosh
????? ??????: 
kbnosurvey kbarchive kbmt kbbug KB201116 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????201116

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