G
Guest
Hey All,
After a doc/view/frame is created and initialized, is there a way from
within the frame class code (CMyChildFrame::OnUpdateFrameMenu()) to get the
resource ID (nIDResource = IDR_???TYPE) used by CFrameWnd::LoadFrame()?
I know the member variable m_nIDHelp is set to nIDResource in the
LoadFrame() call, but don't feel that is a safe way to retrieve the resource
ID. So I was hoping there was an API that I could call to get the resource ID
that was used by the frame to load the menu, icon, and string table. I need
to dynamically reload the frames menu at runtime after the frame has alrady
been created in order to alter it. I am trying to avoid passing this in as a
new parameter to the constructor and I have tried to make the call GetMenu()
from inside of OnUpdateFrameMenu() but get an exception.
Thanks for any help,
Danny
After a doc/view/frame is created and initialized, is there a way from
within the frame class code (CMyChildFrame::OnUpdateFrameMenu()) to get the
resource ID (nIDResource = IDR_???TYPE) used by CFrameWnd::LoadFrame()?
I know the member variable m_nIDHelp is set to nIDResource in the
LoadFrame() call, but don't feel that is a safe way to retrieve the resource
ID. So I was hoping there was an API that I could call to get the resource ID
that was used by the frame to load the menu, icon, and string table. I need
to dynamically reload the frames menu at runtime after the frame has alrady
been created in order to alter it. I am trying to avoid passing this in as a
new parameter to the constructor and I have tried to make the call GetMenu()
from inside of OnUpdateFrameMenu() but get an exception.
Thanks for any help,
Danny