系统托盘的菜单的问题 请问各位:为什么只有选择了一项之后菜单才能关闭?这个问题太烦人了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你是怎么做的?参考一下我的代码,比较久了,不知道别的地方还要做什么处理void CXXXDlg::OnContextMenu(CWnd*, CPoint point){ // CG: This block was added by the Pop-up Menu component { if (point.x == -1 && point.y == -1){ //keystroke invocation CRect rect; GetClientRect(rect); ClientToScreen(rect); point = rect.TopLeft(); point.Offset(5, 5); } CMenu menu; VERIFY(menu.LoadMenu(CG_IDR_POPUP_XXXDLG)); CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); CWnd* pWndPopupOwner = this; while (pWndPopupOwner->GetStyle() & WS_CHILD) pWndPopupOwner = pWndPopupOwner->GetParent(); pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, pWndPopupOwner); }} 到www.vckbase.com上去看电子杂志有一期讲这个主题,很详细 在菜单弹出之前调用SetForegroundWindow(); 问一下关于VC++的CALLBACK 如何响应子对话框的控件消息 关于new的问题 编一基于对话框的应用程序,此程序运行界面如下(图一),单击“确定”按钮后在编辑框中显示选择的复选按钮的结果。 简单画图问题 关于多个停靠窗口停靠的问题 请问SOCKET通信中,中断以后怎么能够迅速的重新建立连接 在EDIT 中 删除光标所在行应该怎么办.通过点击按钮完成. 怎样使button响应MouseEnter和MouseLeave事件 求生成随机数的算法 救命!VC数据库开发新手该用哪种编程方法容易且快些? 不知无线增值这方面有没有前途(up有分)
void CXXXDlg::OnContextMenu(CWnd*, CPoint point)
{ // CG: This block was added by the Pop-up Menu component
{
if (point.x == -1 && point.y == -1){
//keystroke invocation
CRect rect;
GetClientRect(rect);
ClientToScreen(rect); point = rect.TopLeft();
point.Offset(5, 5);
} CMenu menu;
VERIFY(menu.LoadMenu(CG_IDR_POPUP_XXXDLG)); CMenu* pPopup = menu.GetSubMenu(0);
ASSERT(pPopup != NULL);
CWnd* pWndPopupOwner = this; while (pWndPopupOwner->GetStyle() & WS_CHILD)
pWndPopupOwner = pWndPopupOwner->GetParent(); pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y,
pWndPopupOwner);
}
}
有一期讲这个主题,很详细