开发者

MFC/C++ equivalent of VB's AppActivate

开发者 https://www.devze.com 2022-12-08 23:11 出处:网络
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:

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());
0

精彩评论

暂无评论...
验证码 换一张
取 消