KNXRB, so basicly you are just running the game's exe in a panel?
I always have problems with the whole resizing thing...
here is the vb code I use..
Private Const WM_SYSCOMMAND As Integer = 274
Private Const SC_MAXIMIZE As Integer = 61488
Declare Auto Function SetParent Lib "user32.dll" (ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As Integer
Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim proc As Process
proc = Process.Start("EXE_NAME.exe")
proc.WaitForInputIdle()
SetParent(proc.MainWindowHandle, Me.Panel1.Handle)
SendMessage(proc.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0)
End Sub
Could you clean that up to help with the resizing issue, or even making it to where the exe would maximize only to the size of the panel it is filling? Like if I have a left panel for my own controls and right panel to load an exe. The way I have it it always seems to over or underlap when the exe is maximized.
ThatGuyJohn.com (personal blog)
PCGameDrops.com Something for your PC to chew on!(Launched May 15th, 2010. Developers please have a look, will be updated aggressively)