7,540
社区成员
发帖
与我相关
我的任务
分享
using namespace System::Runtime::InteropServices;
typedef void* HWND;
[DllImport("user32.dll", CharSet=CharSet::Ansi)]
extern "C" HWND FindWindow(String ^, String ^);
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
HWND f= FindWindow("CalcFrame", "计算器");
}