Windows编程学习之二:关于CMenu的m_hMenu属性
CMenu中就这么一个属性,根据MSDN上的解释:"Specifies the HMENU handle of the Windows menu attached to the CMenu object"它好象是用来存放,CMenu父窗口句柄的----我的英语不怎么样!
可是实际上,发现好象并不是这么回事,GetSubMenu函数的用法MSDN是这么解释的“A pointer to a CMenu object whose m_hMenu member contains a handle to the pop-up menu if a pop-up menu exists at the given position”
这里,m_hMenu又是一个指向了pop-up menu的指针.
这到底是怎么一回事呀??