#include <SpecialFolder.h>
◆ SpecialFolder()
SpecialFolder::SpecialFolder |
( |
char * | pszTitleANSI, |
|
|
wchar_t * | pszTitleUnicode, |
|
|
char * | pszPath, |
|
|
int | menuType ) |
42 :
FolderItem(NULL, pszTitleANSI, pszTitleUnicode)
43{
44 m_pszPath = pszPath ? _strdup(pszPath) : _strdup(
"");
46}
FolderItem(Menu *pSubMenu, char *pszTitleANSI, wchar_t *pszTitleUnicode)
Definition FolderItem.cpp:43
int m_MenuType
Definition SpecialFolder.h:49
char * m_pszPath
Definition SpecialFolder.h:48
◆ ~SpecialFolder()
SpecialFolder::~SpecialFolder |
( |
| ) |
|
|
virtual |
◆ Invoke()
void SpecialFolder::Invoke |
( |
int | button | ) |
|
|
virtual |
Reimplemented from MenuItem.
64{
67
68 if (button == 2)
69 {
70
73
74 if (strchr(folder, '|'))
75 {
76
77
79 strcpy(folder, arg);
80 }
81
83 strcpy(arg, "/e,");
84 strcat(arg, folder);
85
86 BBExecute(GetDesktopWindow(), NULL,
"explorer.exe", arg, folder, SW_SHOWNORMAL,
false);
87 }
88 else if (button == 3)
89 {
92 }
93}
LPSTR Tokenize(LPCSTR string, LPSTR buf, LPSTR delims)
Definition BBApi.cpp:273
MenuCommon * pMenuCommon
Definition Blackbox.cpp:41
bool CopyStringToClipboard(LPSTR string)
Definition BBApi.cpp:3450
LPSTR StrRemoveEncap(LPSTR string)
Definition BBApi.cpp:406
HINSTANCE BBExecute(HWND Owner, LPCSTR szOperation, LPCSTR szCommand, LPCSTR szArgs, LPCSTR szDirectory, int nShowCmd, bool noErrorMsgs)
Definition BBApi.cpp:1648
#define MAX_LINE_LENGTH
Definition BBApi.h:64
◆ Active()
bool SpecialFolder::Active |
( |
bool | bActivate | ) |
|
|
virtual |
Reimplemented from FolderItem.
98{
100 {
101 if (IsWindowVisible(
m_pSubMenu->GetWindow()))
return bActivate;
102 }
103
104 if (bActivate)
105 {
107 {
112 }
113
115
119
122
126 }
127
129}
bool Active(bool bActivate)
Definition FolderItem.cpp:76
◆ Attached()
void SpecialFolder::Attached |
( |
Menu * | pMenu | ) |
|
|
virtual |
Reimplemented from FolderItem.
134{
136}
Menu * pMenu
Definition Blackbox.cpp:40
◆ m_pszPath
char* SpecialFolder::m_pszPath |
◆ m_MenuType
int SpecialFolder::m_MenuType |