|
■No81202 (roc さん) に返信 > 別窓...たとえばIEなんかを常に最前面に表示するにはどうしたらいいのですか?
'Private Declare Function SetWindowPos Lib "user32" (hWnd As IntPtr, hWndInsertAfter As IntPtr, X As Integer, Y As Integer, cx As Integer, cy As Integer, wFlags As Integer) As Boolean 'Private ReadOnly HWND_TOPMOST As New IntPtr(-1) 'Private Const SWP_NOSIZE As Integer = 1 'Private Const SWP_NOMOVE As Integer = 2
SetWindowPos( ターゲットのウィンドウハンドル , HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)
|