📄 classwgui_1_1clistbox.html
字号:
<table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Returns the desired item <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iItemIndex</em> </td><td>The index of the item to check </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>A reference to the <a class="el" href="structwGui_1_1SListItem.html">SListItem</a> struct </dl><p>Definition at line <a class="el" href="wg__listbox_8h-source.html#l00087">87</a> of file <a class="el" href="wg__listbox_8h-source.html">wg_listbox.h</a>.<p>References <a class="el" href="wg__listbox_8h-source.html#l00151">m_Items</a>.<p>Referenced by <a class="el" href="wg__dropdown_8h-source.html#l00070">wGui::CDropDown::GetItem()</a>, and <a class="el" href="wg__dropdown_8cpp-source.html#l00076">wGui::CDropDown::HandleMessage()</a>. </td> </tr></table><a name="a17" doxytag="wGui::CListBox::HandleMessage"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool wGui::CListBox::HandleMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pMessage</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>CListBoxes handle MOUSE_BUTTONDOWN, MOUSE_BUTTONUP and CTRL_VALUECHANGE messages <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pMessage</em> </td><td>A pointer to the message </td></tr></table></dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a27">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__listbox_8cpp-source.html#l00215">215</a> of file <a class="el" href="wg__listbox_8cpp-source.html">wg_listbox.cpp</a>.<p>References <a class="el" href="wg__message_8h-source.html#l00081">wGui::CMessage::Destination()</a>, <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__scrollbar_8h-source.html#l00070">wGui::CScrollBar::GetPosition()</a>, <a class="el" href="wg__rect_8h-source.html#l00130">wGui::CRect::Height()</a>, <a class="el" href="wg__listbox_8h-source.html#l00101">IsSelected()</a>, <a class="el" href="wg__message_8h-source.html#l00119">wGui::CKeyboardMessage::Key</a>, <a class="el" href="wg__listbox_8h-source.html#l00150">m_iFocusedItem</a>, <a class="el" href="wg__listbox_8h-source.html#l00149">m_iItemHeight</a>, <a class="el" href="wg__listbox_8h-source.html#l00151">m_Items</a>, <a class="el" href="wg__listbox_8h-source.html#l00148">m_pVScrollbar</a>, <a class="el" href="wg__message_8h-source.html#l00078">wGui::CMessage::MessageType()</a>, <a class="el" href="wg__scrollbar_8cpp-source.html#l00093">wGui::CScrollBar::SetPosition()</a>, <a class="el" href="wg__listbox_8h-source.html#l00106">SetSelection()</a>, <a class="el" href="wg__listbox_8h-source.html#l00097">Size()</a>, <a class="el" href="wg__message_8h-source.html#l00084">wGui::CMessage::Source()</a>, and <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>. </td> </tr></table><a name="a9" doxytag="wGui::CListBox::IsSelected"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool wGui::CListBox::IsSelected </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>iItemIndex</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iItemIndex</em> </td><td>The index of the item to check </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>true if the item is selected </dl><p>Definition at line <a class="el" href="wg__listbox_8h-source.html#l00101">101</a> of file <a class="el" href="wg__listbox_8h-source.html">wg_listbox.h</a>.<p>References <a class="el" href="wg__listbox_8h-source.html#l00152">m_SelectedItems</a>.<p>Referenced by <a class="el" href="wg__listbox_8cpp-source.html#l00215">HandleMessage()</a>, <a class="el" href="wg__dropdown_8h-source.html#l00084">wGui::CDropDown::IsSelected()</a>, and <a class="el" href="wg__listbox_8cpp-source.html#l00185">OnMouseButtonUp()</a>. </td> </tr></table><a name="a15" doxytag="wGui::CListBox::OnMouseButtonDown"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool wGui::CListBox::OnMouseButtonDown </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> </td> <td class="mdname" nowrap> <em>Point</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>Button</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is called whenever the listbox is clicked on by the mouse Only the topmost window that bounds the point will be called by the system <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Point</em> </td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em> </td><td>A bitfield indicating which button the window was clicked with </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>True if it's in the bounds of the listbox </dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a25">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__listbox_8cpp-source.html#l00159">159</a> of file <a class="el" href="wg__listbox_8cpp-source.html">wg_listbox.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__scrollbar_8h-source.html#l00070">wGui::CScrollBar::GetPosition()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__window_8h-source.html#l00209">wGui::CWindow::m_bVisible</a>, <a class="el" href="wg__listbox_8h-source.html#l00150">m_iFocusedItem</a>, <a class="el" href="wg__listbox_8h-source.html#l00149">m_iItemHeight</a>, <a class="el" href="wg__listbox_8h-source.html#l00151">m_Items</a>, <a class="el" href="wg__listbox_8h-source.html#l00148">m_pVScrollbar</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>, <a class="el" href="wg__rect_8h-source.html#l00082">wGui::CRect::Top()</a>, and <a class="el" href="wg__point_8h-source.html#l00067">wGui::CPoint::YPos()</a>. </td> </tr></table><a name="a16" doxytag="wGui::CListBox::OnMouseButtonUp"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool wGui::CListBox::OnMouseButtonUp </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> </td> <td class="mdname" nowrap> <em>Point</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>Button</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is called whenever the a mouse button is released in the listbox Only the topmost window that bounds the point will be called by the system <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Point</em> </td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em> </td><td>A bitfield indicating which button the window was clicked with </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>True if it's in the bounds of the listbox </dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a26">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__listbox_8cpp-source.html#l00185">185</a> of file <a class="el" href="wg__listbox_8cpp-source.html">wg_listbox.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__scrollbar_8h-source.html#l00070">wGui::CScrollBar::GetPosition()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__listbox_8h-source.html#l00101">IsSelected()</a>, <a class="el" href="wg__window_8h-source.html#l00209">wGui::CWindow::m_bVisible</a>, <a class="el" href="wg__listbox_8h-source.html#l00150">m_iFocusedItem</a>, <a class="el" href="wg__listbox_8h-source.html#l00149">m_iItemHeight</a>, <a class="el" href="wg__listbox_8h-source.html#l00155">m_pDropDown</a>, <a class="el" href="wg__window_8h-source.html#l00200">wGui::CWindow::m_pParentWindow</a>, <a class="el" href="wg__listbox_8h-source.html#l00148">m_pVScrollbar</a>, <a class="el" href="wg__listbox_8cpp-source.html#l00107">SetAllSelections()</a>, <a class="el" href="wg__listbox_8h-source.html#l00106">SetSelection()</a>, <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>, <a class="el" href="wg__rect_8h-source.html#l00082">wGui::CRect::Top()</a>, and <a class="el" href="wg__point_8h-source.html#l00067">wGui::CPoint::YPos()</a>. </td> </tr></table><a name="a6" doxytag="wGui::CListBox::RemoveItem"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void wGui::CListBox::RemoveItem </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -