MCPcopy Create free account
hub / github.com/Tencent/mars / LoadMenu

Function LoadMenu

samples/Windows/WTL/atlctrlw.h:482–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 4

CreateExFunction · 0.85
atlframe.hFile · 0.85
LoadMenuMethod · 0.85
AtlLoadMenuFunction · 0.85

Calls 2

GetResourceInstanceFunction · 0.85
AttachMenuFunction · 0.85

Tested by

no test coverage detected