|
Rhino C++ API
8.24
|
#include <RhinoSdkUiPopUpMenu.h>
Public Member Functions | |
| CRhinoUiPopupMenu (LPCTSTR lpsResourceID, HINSTANCE hInst=NULL) | |
| CRhinoUiPopupMenu (UINT nResourceID=0, HINSTANCE hInst=NULL) | |
| virtual | ~CRhinoUiPopupMenu (void) |
| int | AddItem (const char *) |
| Add items in order you want them to display. More... | |
| int | AddItem (const wchar_t *) |
| void | AddSeporator () |
| Add seportaor (this will not have an index) More... | |
| void | EnableItem (int nItem, bool bEnable=true) |
| HMENU | GetMenuHandle () |
| MSG * | LastMessage () |
| return NULL if left or right button picked is not true otherwise return pointer to message structure for message. More... | |
| bool | LeftButtonPicked () |
| returns true if menu dismissed with left button More... | |
| virtual void | OnInitMenu (HWND hWnd, HMENU hMenu) |
| Called when WM_INITMENU message received for context menu. More... | |
| virtual void | OnMenuSelect (HWND hWnd, HMENU hMenu, int index) |
| Called when the menu selection changes, returns index of selected item or -1 if nothing is selected. More... | |
| const ON_2iPoint * | PointPicked () |
| return NULL if LeftButtonPicked() and RightButtonPicked() are false otherwise returns point where mouse went down. More... | |
| virtual int | PopUp (CWnd *, const ON_2iPoint &, const ON_2iPoint &) |
| Display popup menu, returns -1 on error or if escape pressed otherwise returns index of added item. More... | |
| int | PopUpEx (CWnd *, const ON_2iPoint &, const ON_2iPoint &, int) |
| the menu below the window. More... | |
| void | PopupWndProcOnInitMenu (HWND hWnd, HMENU hMenu) |
| For internal use only. More... | |
| bool | RightButtonPicked () |
| returns true if menu dismissed with right button More... | |
| LRESULT CALLBACK | WindowProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
Public Attributes | |
| class CRhinoUiPopupMenuExtension * | m__RhinoUiPopupMenu_extension |
| For internal use only. More... | |
| bool | m_menu_char |
| int | m_menu_select |
Protected Member Functions | |
| bool | CheckDefaults (LPCTSTR nResourceID, HINSTANCE hInst) |
| void | Init () |
Protected Attributes | |
| bool | m_bLeft |
| bool | m_bRight |
| HMENU | m_hMenu |
| HWND | m_hWndParent |
| CStringArray | m_item_array |
| MSG | m_msg |
| CUIntArray | m_nEnabledList |
| ON_2iPoint | m_point |
/ / Copyright (c) 1993-2007 Robert McNeel & Associates. All rights reserved. / Rhinoceros is a registered trademark of Robert McNeel & Associates. / / THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. / ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF / MERCHANTABILITY ARE HEREBY DISCLAIMED. /
/ For complete Rhino SDK copyright information see http://www.rhino3d.com/developer. / ////////////////////////////////////////////////////////////// RhinoSdkPopUpMenu.h CRhinoUiPopupMenu
|
virtual |
| int CRhinoUiPopupMenu::AddItem | ( | const char * | ) |
Add items in order you want them to display.
| int CRhinoUiPopupMenu::AddItem | ( | const wchar_t * | ) |
| void CRhinoUiPopupMenu::AddSeporator | ( | ) |
Add seportaor (this will not have an index)
| void CRhinoUiPopupMenu::EnableItem | ( | int | nItem, |
| bool | bEnable = true |
||
| ) |
Call using index returned by AddItem to enable/disable a menu item. The default behavior is to enable everything.
| HMENU CRhinoUiPopupMenu::GetMenuHandle | ( | ) |
|
protected |
| MSG* CRhinoUiPopupMenu::LastMessage | ( | ) |
return NULL if left or right button picked is not true otherwise return pointer to message structure for message.
| bool CRhinoUiPopupMenu::LeftButtonPicked | ( | ) |
returns true if menu dismissed with left button
Called when WM_INITMENU message received for context menu.
Called when the menu selection changes, returns index of selected item or -1 if nothing is selected.
| const ON_2iPoint* CRhinoUiPopupMenu::PointPicked | ( | ) |
return NULL if LeftButtonPicked() and RightButtonPicked() are false otherwise returns point where mouse went down.
|
virtual |
Display popup menu, returns -1 on error or if escape pressed otherwise returns index of added item.
Top point. Bottom left corner of the poupup. This is used if there is not enough space to display
| int CRhinoUiPopupMenu::PopUpEx | ( | CWnd * | , |
| const ON_2iPoint & | , | ||
| const ON_2iPoint & | , | ||
| int | |||
| ) |
the menu below the window.
Display popup menu, returns -1 on error or if escape pressed otherwise returns index of added item. 0 = Not transparent, 1 to 100 = percentage of tranparency.
| bool CRhinoUiPopupMenu::RightButtonPicked | ( | ) |
returns true if menu dismissed with right button
| LRESULT CALLBACK CRhinoUiPopupMenu::WindowProc | ( | HWND | hWnd, |
| UINT | message, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam | ||
| ) |
| class CRhinoUiPopupMenuExtension* CRhinoUiPopupMenu::m__RhinoUiPopupMenu_extension |
For internal use only.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool CRhinoUiPopupMenu::m_menu_char |
| int CRhinoUiPopupMenu::m_menu_select |
|
protected |
|
protected |
|
protected |
1.8.17