关于下拉菜单的问题
代码如下:
void CDialogThreadDlg::OnBmenu()
{
// TODO: Add your control notification handler code here
CRect rect;
m_BMenu.GetWindowRect(&rect);
CMenu BMenu;
BMenu.CreateMenu();
BMenu.AppendMenu(MF_STRING,IDM_ABOUT,"关于");
BMenu.AppendMenu(MF_STRING,IDCANCEL,"退出");
BMenu.TrackPopupMenu(TPM_LEFTALIGN,rect.left,rect.bottom,this);
}
我使用一个按钮响应函数,然后来实现一个下拉菜单
但是菜单只能显示一个竖边,请问这是怎么回事哦