Shimms
12-17-2001, 04:44 AM
I started coding DirectX in VB about 3 hours ago, so I hope this is an easy question to answer:
I have a form, (frmMain), which is the startup form. In this form, I am setting the screen res, initializing dirextX, and setting the cooperation mode.
<pre> Set DirectDraw = DirectX.DirectDrawCreate("")
Call DirectDraw.SetCooperativeLevel(Me.hWnd, DDSCL_FULLSCREEN Or DDSCL_EXCLUSIVE Or DDSCL_ALLOWREBOOT)
Call DirectDraw.SetDisplayMode(800, 600, 32, 0, DDSDM_DEFAULT) </pre>
When I then try to call another form:
frmMessageBox.Show
the MessageBox form is being loaded and displayed, yet its being hidden by the main form.
I assume this is to do with how im setting the cooperation mode, (I have also tried frmMessageBox.SetFocus after showing it, which had no effect).
I believe the problem lies in the DDSCL_EXCLUSIVE flag, but I'm just not sure, what to change it to.
Any help would be appreciated, thanks.
I have a form, (frmMain), which is the startup form. In this form, I am setting the screen res, initializing dirextX, and setting the cooperation mode.
<pre> Set DirectDraw = DirectX.DirectDrawCreate("")
Call DirectDraw.SetCooperativeLevel(Me.hWnd, DDSCL_FULLSCREEN Or DDSCL_EXCLUSIVE Or DDSCL_ALLOWREBOOT)
Call DirectDraw.SetDisplayMode(800, 600, 32, 0, DDSDM_DEFAULT) </pre>
When I then try to call another form:
frmMessageBox.Show
the MessageBox form is being loaded and displayed, yet its being hidden by the main form.
I assume this is to do with how im setting the cooperation mode, (I have also tried frmMessageBox.SetFocus after showing it, which had no effect).
I believe the problem lies in the DDSCL_EXCLUSIVE flag, but I'm just not sure, what to change it to.
Any help would be appreciated, thanks.