MFC/C++ equivalent of VB's AppActivate
AppActivate
seems to be what i need, I am fairly sure there must be an c++/mfc equivalent. Is ther开发者_Go百科e one?
You can try these:
SetForegroundWindow(FindWindow(NULL, "window title"));
// or
SetForegroundWindow(AfxGetMainWnd());
精彩评论