| 480 | } |
| 481 | |
| 482 | BOOL LoadMenu(ATL::_U_STRINGorID menu) |
| 483 | { |
| 484 | ATLASSERT(::IsWindow(m_hWnd)); |
| 485 | |
| 486 | if(m_bAttachedMenu) // doesn't work in this mode |
| 487 | return FALSE; |
| 488 | if(menu.m_lpstr == NULL) |
| 489 | return FALSE; |
| 490 | |
| 491 | HMENU hMenu = ::LoadMenu(ModuleHelper::GetResourceInstance(), menu.m_lpstr); |
| 492 | if(hMenu == NULL) |
| 493 | return FALSE; |
| 494 | |
| 495 | return AttachMenu(hMenu); |
| 496 | } |
| 497 | |
| 498 | BOOL AttachMenu(HMENU hMenu) |
| 499 | { |
no test coverage detected