xoblite™ / Blackbox for Windows bb5 | RC6 preview | 0.25.2.14
http://xoblite.net/
ThemesMenu Class Reference

#include <ThemesMenu.h>

Public Member Functions

 ThemesMenu (const char *pszTitle)
 
virtual ~ThemesMenu ()
 
void OnShow (bool fShow)
 
void UpdateFolder ()
 
- Public Member Functions inherited from Menu
 Menu (HINSTANCE hInstance)
 
 ~Menu ()
 
void UpdateMenuWindow ()
 
void DrawMenuItem (HDC hdc, MenuItem *i, bool active)
 
void Show ()
 
void Show (int x, int y)
 
bool Hide (int h)
 
void Mouse (UINT nMsg, int x, int y)
 
void MouseLeave ()
 
void AddMenuItem (MenuItem *m)
 
void DeleteMenuItems ()
 
void TogglePinned ()
 
bool IsPinned ()
 
LRESULT NcHitTest (int x, int y)
 
void Timer (int nTimer)
 
HWND GetWindow ()
 
void SetParent (Menu *pParent)
 
MenuGetParent ()
 
void AddChild (Menu *pChild)
 
void RemoveChild (Menu *pChild)
 
bool IsChildWindow (HWND hWnd)
 
void SetMenuFolderPath (char *pszFolderPath)
 
void Moving ()
 
virtual bool OnUser (int nMessage, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
 
LRESULT Command (WPARAM wParam, LPARAM lParam)
 
virtual void OnTimer (int nTimer)
 
void Activate (int fActive, HWND hWnd)
 
bool IsActive ()
 
void Sort (int beginOffset, int endOffset)
 
void Invalidate ()
 
void Validate ()
 
void ClearSelectionGroup (int group)
 

Additional Inherited Members

- Static Public Member Functions inherited from Menu
static void CALLBACK TrackMouseProc (HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
 
- Public Attributes inherited from Menu
HINSTANCE hMenuInstance
 
WIN32_FIND_DATA data
 
HWND hMenuWnd
 
Menum_pParent
 
vector< MenuItem * > m_MenuItems
 
vector< Menu * > m_Children
 
char * m_pszTitle
 
bool isValidated
 
bool isPinned
 
bool mouseIsHovering
 
bool keyboardNavigationInProgress
 
bool m_bMoved
 
char * m_pszFolderPath
 
HDC menuHDC
 
HDC cachedMenuBackground
 
HDC cachedMenuActive
 
bool cachedMenuGradientsExist
 
RECT menuRect
 
RECT menuTitleRect
 
RECT menuFrameRect
 
RECT menuActiveRect
 
RECT menuGripRect
 
int menuX
 
int menuY
 
int menuWidth
 
int menuHeight
 
int menuActiveWidth
 
int menuActiveHeight
 
- Static Public Attributes inherited from Menu
static int m_nInstances = 0
 

Constructor & Destructor Documentation

◆ ThemesMenu()

ThemesMenu::ThemesMenu ( const char * pszTitle)
44{
45 m_pszTitle = pszTitle ? _strdup(pszTitle) : _strdup("");
47}
MenuCommon * pMenuCommon
Definition Blackbox.cpp:41
Settings * pSettings
Definition Blackbox.cpp:46
HINSTANCE hInst
Definition MenuCommon.h:94
Menu(HINSTANCE hInstance)
Definition Menu.cpp:54
char * m_pszTitle
Definition Menu.h:149
void SetMenuFolderPath(char *pszFolderPath)
Definition Menu.cpp:1152
char themesFolder[MAX_PATH]
Definition Settings.h:319

◆ ~ThemesMenu()

ThemesMenu::~ThemesMenu ( )
virtual
50{
51 if (m_pszTitle) free(m_pszTitle);
52 m_pszTitle = NULL;
53}

Member Function Documentation

◆ OnShow()

void ThemesMenu::OnShow ( bool fShow)
virtual

Reimplemented from Menu.

58{
59 if (fShow) UpdateFolder();
60}
void UpdateFolder()
Definition ThemesMenu.cpp:64

◆ UpdateFolder()

void ThemesMenu::UpdateFolder ( )
65{
67
68 pMenuCommon->AddHeaderItem(this, "Themes");
70 pMenuCommon->AddFooterItem(this, "");
71
72 Invalidate();
73 Validate();
74}
#define FOLDER_THEMES
Definition FolderItem.h:39
void AddFooterItem(Menu *pMenu, LPSTR pszTitle)
Definition MenuCommon.cpp:813
void InsertFolder(Menu *pMenu, char *pszFolder, int menuType, bool includeSubFolders)
Definition MenuCommon.cpp:843
void AddHeaderItem(Menu *pMenu, LPSTR pszTitle)
Definition MenuCommon.cpp:791
void Validate()
Definition Menu.cpp:1325
void DeleteMenuItems()
Definition Menu.cpp:1095
void Invalidate()
Definition Menu.cpp:1318