| 226 | } |
| 227 | |
| 228 | HMENU 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 | |
| 250 | int ProfilesWindow::CreateMenus() |
| 251 | { |