Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::Win32Toolbar Class Reference

#include <Win32Toolbar.h>

Inheritance diagram for VCF::Win32Toolbar:

VCF::AbstractWin32Component VCF::ToolbarPeer VCF::Win32Object VCF::ControlPeer VCF::ObjectWithCallbacks VCF::Interface VCF::Object List of all members.

Public Member Functions

 Win32Toolbar (Control *control)
virtual ~Win32Toolbar ()
virtual void create (Control *control)
 This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform.
virtual Win32Object::CreateParams createParams ()
 called before the create window is called.
virtual bool handleEventMessages (UINT message, WPARAM wParam, LPARAM lParam, LRESULT &wndProcResult, WNDPROC defaultWndProc=NULL)
 returns true if no further handling is required, otherwise returns false, which means the rest of the handling needs to be done by the default wnd proc.
void insertToolbarButton (const uint32 &index, ToolbarItem *item, bool showCaption=false)
void removeToolbarButton (ToolbarItem *item)
virtual void setImageList (ImageList *imageList)
virtual void showButtonCaptions (const bool &val)
virtual void setButtonCaptionPlacementHorizontal (const bool &val)
virtual void setButtonSize (const Size &buttonSize)
virtual bool acceptsWMCommandMessages ()
virtual void setEnableAutoResize (const bool &val)
virtual bool isAutoResizeEnabled ()

Protected Member Functions

void onModelChanged (ModelEvent *e)
void onImageListImageChanged (ImageListEvent *e)
void resizeToolbarItems (int startAt=-1)
void resetItems (std::vector< ToolbarItem * > &items)

Protected Attributes

HIMAGELIST imageListCtrl_
bool currentlyModifyingItem_
std::map< VCF::String, int > buttonCaptionsMap_

Constructor & Destructor Documentation

VCF::Win32Toolbar::Win32Toolbar Control control  ) 
 

virtual VCF::Win32Toolbar::~Win32Toolbar  )  [virtual]
 


Member Function Documentation

virtual bool VCF::Win32Toolbar::acceptsWMCommandMessages  )  [inline, virtual]
 

Reimplemented from VCF::Win32Object.

virtual void VCF::Win32Toolbar::create Control control  )  [virtual]
 

This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform.

create() must be called by the containing VCF::Control subclass, typically in the classes constructor, after retreiving the new peer instance from the appropriate UIToolkit::createXXX() call.

Reimplemented from VCF::AbstractWin32Component.

virtual Win32Object::CreateParams VCF::Win32Toolbar::createParams  )  [virtual]
 

called before the create window is called.

Overide this to change the style and style ex parameters. Returns a pair, the pair.first is the style parameter, the pair.second is the style ex paramater.

Reimplemented from VCF::Win32Object.

virtual bool VCF::Win32Toolbar::handleEventMessages UINT  message,
WPARAM  wParam,
LPARAM  lParam,
LRESULT &  wndProcResult,
WNDPROC  defaultWndProc = NULL
[virtual]
 

returns true if no further handling is required, otherwise returns false, which means the rest of the handling needs to be done by the default wnd proc.

Reimplemented from VCF::AbstractWin32Component.

void VCF::Win32Toolbar::insertToolbarButton const uint32 index,
ToolbarItem item,
bool  showCaption = false
 

virtual bool VCF::Win32Toolbar::isAutoResizeEnabled  )  [virtual]
 

Implements VCF::ToolbarPeer.

void VCF::Win32Toolbar::onImageListImageChanged ImageListEvent e  )  [protected]
 

void VCF::Win32Toolbar::onModelChanged ModelEvent e  )  [protected]
 

void VCF::Win32Toolbar::removeToolbarButton ToolbarItem item  ) 
 

void VCF::Win32Toolbar::resetItems std::vector< ToolbarItem * > &  items  )  [protected]
 

void VCF::Win32Toolbar::resizeToolbarItems int  startAt = -1  )  [protected]
 

virtual void VCF::Win32Toolbar::setButtonCaptionPlacementHorizontal const bool &  val  )  [virtual]
 

Implements VCF::ToolbarPeer.

virtual void VCF::Win32Toolbar::setButtonSize const Size buttonSize  )  [virtual]
 

Implements VCF::ToolbarPeer.

virtual void VCF::Win32Toolbar::setEnableAutoResize const bool &  val  )  [virtual]
 

Implements VCF::ToolbarPeer.

virtual void VCF::Win32Toolbar::setImageList ImageList imageList  )  [virtual]
 

Implements VCF::ToolbarPeer.

virtual void VCF::Win32Toolbar::showButtonCaptions const bool &  val  )  [virtual]
 

Implements VCF::ToolbarPeer.


Member Data Documentation

std::map<VCF::String,int> VCF::Win32Toolbar::buttonCaptionsMap_ [protected]
 

bool VCF::Win32Toolbar::currentlyModifyingItem_ [protected]
 

HIMAGELIST VCF::Win32Toolbar::imageListCtrl_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information