帮帮忙拉...
visualboyadvance打开"代码查看器"的时候,即使切换焦点到visualboyadvance的主窗体,"代码查看器"窗体也不会被遮盖.但是焦点切换到别的程序的窗体的时候"代码查看器"就被遮盖了.
请问: 这是怎样做到的???
Option Explicit
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const HWND_TOPMOST = -1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1
Private Sub Form_Load()
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
还是没解决,好好看图呀!!!
谢啦!!!