编程训练网站,建站需要会哪些语言,童装东莞网站建设,个人介绍网页设计模板函数#xff1a;SetForegroundWindow
需要先设置当前窗口为系统活动窗口#xff0c;之后#xff0c;系统就会自动设置响应的操作#xff0c;比如自动隐藏之类的。 HMENU menu CreatePopupMenu();
AppendMenu(menu, MF_STRING, 2, strExit.c_str() );
::SetForegroundWind…函数SetForegroundWindow
需要先设置当前窗口为系统活动窗口之后系统就会自动设置响应的操作比如自动隐藏之类的。 HMENU menu CreatePopupMenu();
AppendMenu(menu, MF_STRING, 2, strExit.c_str() );
::SetForegroundWindow(g_hMainWnd);
UINT cmd TrackPopupMenu(menu, TPM_RETURNCMD|TPM_RIGHTBUTTON, pt.x, pt.y, 0, g_hMainWnd, NULL);