Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
vgui_win32_utils Class Reference

#include <vgui_win32_utils.h>

List of all members.

Public Member Functions

HMENU vgui_menu_to_win32 (vgui_menu const &vguimenu, vcl_vector< vgui_command_sptr > &callbacks, HACCEL *hAccel, bool isPopup=false)
HMENU vgui_menu_to_win32ex (vgui_menu const &vguimenu, vcl_vector< vgui_command_sptr > &callbacks, HACCEL *hAccel, bool isPopup=false)

Static Public Member Functions

static vgui_win32_utilsinstance ()

Protected Member Functions

 vgui_win32_utils ()
 ~vgui_win32_utils ()

Private Member Functions

int addMenuItems (vgui_menu const &vguimenu, int offset, bool is_popup)
int addMenuItemsEx (vgui_menu const &vguimenu, int offset, bool is_popup)
void addAccelerator (vcl_string &, vgui_menu_item const &, int)
vcl_string vgui_key_to_string (vgui_key)
UINT vgui_key_to_virt_key (vgui_key)
void ShowErrorMessage (DWORD dwErrorNo)

Private Attributes

unsigned char * pMenu
int menu_capacity
vcl_vector< vgui_command_sptrcallbacks
int item_count
ACCEL * pAccel
int accel_capacity
int accel_count

Detailed Description

Definition at line 35 of file vgui_win32_utils.h.


Constructor & Destructor Documentation

vgui_win32_utils::vgui_win32_utils ( ) [inline, protected]

Definition at line 52 of file vgui_win32_utils.h.

vgui_win32_utils::~vgui_win32_utils ( ) [inline, protected]

Definition at line 53 of file vgui_win32_utils.h.


Member Function Documentation

void vgui_win32_utils::addAccelerator ( vcl_string &  menuItemText,
vgui_menu_item const &  vguimenu,
int  menuItemId 
) [inline, private]

Definition at line 344 of file vgui_win32_utils.cxx.

int vgui_win32_utils::addMenuItems ( vgui_menu const &  vguimenu,
int  offset,
bool  is_popup 
) [private]

Definition at line 77 of file vgui_win32_utils.cxx.

int vgui_win32_utils::addMenuItemsEx ( vgui_menu const &  vguimenu,
int  offset,
bool  is_popup 
) [private]

Definition at line 230 of file vgui_win32_utils.cxx.

vgui_win32_utils * vgui_win32_utils::instance ( ) [static]

Definition at line 9 of file vgui_win32_utils.cxx.

void vgui_win32_utils::ShowErrorMessage ( DWORD  dwErrorNo) [private]

Definition at line 496 of file vgui_win32_utils.cxx.

vcl_string vgui_win32_utils::vgui_key_to_string ( vgui_key  key) [inline, private]

Definition at line 392 of file vgui_win32_utils.cxx.

UINT vgui_win32_utils::vgui_key_to_virt_key ( vgui_key  key) [private]

Definition at line 449 of file vgui_win32_utils.cxx.

HMENU vgui_win32_utils::vgui_menu_to_win32 ( vgui_menu const &  vguimenu,
vcl_vector< vgui_command_sptr > &  callbacks,
HACCEL *  hAccel,
bool  isPopup = false 
)

Definition at line 18 of file vgui_win32_utils.cxx.

HMENU vgui_win32_utils::vgui_menu_to_win32ex ( vgui_menu const &  vguimenu,
vcl_vector< vgui_command_sptr > &  callbacks,
HACCEL *  hAccel,
bool  isPopup = false 
)

Definition at line 162 of file vgui_win32_utils.cxx.


Member Data Documentation

Definition at line 71 of file vgui_win32_utils.h.

Definition at line 72 of file vgui_win32_utils.h.

Definition at line 67 of file vgui_win32_utils.h.

Definition at line 68 of file vgui_win32_utils.h.

Definition at line 66 of file vgui_win32_utils.h.

ACCEL* vgui_win32_utils::pAccel [private]

Definition at line 70 of file vgui_win32_utils.h.

unsigned char* vgui_win32_utils::pMenu [private]

Definition at line 65 of file vgui_win32_utils.h.


The documentation for this class was generated from the following files: