borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Passing data to another process)Next Topic (how to identify my code in a commone project) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Virtual Screens
Poster Message
RayZore
Level: Scholar

Registered: 22-08-2003
Posts: 34

icon Virtual Screens

Hi All
I was hoping for some pointers in the right direction

I'm trying to develop an application that will allow four windows to be displayed at the same time, each running an independant application. eg #1 running a PowerPoint presentation,  #2 running any application, #3 an multi-media file & #4 a web browser.

My cunning plan is to create an MDI with four children as
the Multi-media and web browser I can handle using controls  but how do I tell a shelled app what size and where the window its to run in will be.

I suspect I'm going to be in for a trip into the API jungle as
I've tried doing some research but the leaves blocked out the trees.




____________________________
I'd rather be fishing

30-03-2006 at 01:02 PM
View Profile Send Email to User Show All Posts | Quote Reply
misterxed
Level: VB Lord


Registered: 12-06-2005
Posts: 151
icon Re: Virtual Screens

Hi RayZore,

U need to use the SETWINDOWPOS API... The following is a sample code from ALLAPI.net....



Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2
Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
Const SWP_NOACTIVATE = &H10
Const SWP_SHOWWINDOW = &H40
Private Declare Sub 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)

Private Sub Form_Activate()
    'KPD-Team 1998
    'URL: http://www.allapi.net/
    'E-Mail: KPDTeam@Allapi.net
    'Set the window position to topmost
    SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
End Sub


____________________________
lOsT...

31-03-2006 at 11:22 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Virtual Screens
Previous Topic (Passing data to another process)Next Topic (how to identify my code in a commone project) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder