MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SetProfilePopupMenu

Method SetProfilePopupMenu

src/Windows/ProfilesWindow.cpp:228–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228HMENU ProfilesWindow::SetProfilePopupMenu(FileObject* item)
229{
230
231 if (!item) return NULL;
232
233 ProfileObject* profileItem = dynamic_cast<ProfileObject*>(item);
234 if (profileItem == nullptr) return NULL;
235
236 HMENU hContext = NULL;
237 if (profileItem->isDir()) {
238 if (!profileItem->isRoot())
239 hContext = m_popupTreeProfileFolder;
240 else
241 hContext = m_popupTreeProfileRootFolder;
242 }
243 else {
244 hContext = m_popupTreeProfile;
245 }
246
247 return hContext;
248}
249
250int ProfilesWindow::CreateMenus()
251{

Callers

nothing calls this directly

Calls 2

isDirMethod · 0.45
isRootMethod · 0.45

Tested by

no test coverage detected