假設我在我的應用程序中有兩個窗口,並且有兩個窗口負責它們: class MainWindow: public QMainWindow和class SomeDialog: public QWidget。 在我的主窗口中,我有一個按鈕。點擊時,我需要顯示第二個窗口。我這樣做: SomeDialog * dlg = new SomeDialog();
dlg.show();
現在,用戶在窗口中做了
我找不出Applescript代碼在兩個窗口中運行兩個不同的shell腳本。 我走到這一步,是... set s1 to "echo A"
set s2 to "echo A"
tell application "Terminal"
activate
tell window 0
set visible to true
end tell
set
可能重複: Embedding HWND into external process using SetParent 我試圖嵌入從我的過程中一個窗口,一個外部進程的使用窗口SetParent功能,並遇到一些問題,我希望有人可以幫助我。首先,這裏是什麼,我目前在做我的窗口嵌入到應用程序中的輪廓: WND myWindow; //Handle to my application window
HWN