|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
load extern exe file into mdi framework?Hi,
Is there any way to load an extern exe file, such wordpad.exe into mdi with pre define size and position? Thanks, LK Have a look at Win API call "SetParent" - I've used that successfully
to make Word a Child in an MDI app. HTH On Mon, 23 May 2005 14:47:49 +1200, "news.microsoft.com" <talktomyfri***@hotmail.com> wrote: >Hi, > >Is there any way to load an extern exe file, such wordpad.exe into mdi with >pre define size and position? > >Thanks, > >LK > -- Nick Michell Doff Your Hat for personal reply. Thanks Nick, I got the notepad.exe working.
However, I like the notepad.exe to be fixed in a position within the mdi form, like left=100, top=0, width=3000, height=3000. It it possible? Cheers, lk Show quoteHide quote "Nick Michell" <nickmATavnetYourHat.co.uk> wrote in message news:8el491dk05hou97a5hm0glojgnkuuul79a@4ax.com... > Have a look at Win API call "SetParent" - I've used that successfully > to make Word a Child in an MDI app. > > HTH > > On Mon, 23 May 2005 14:47:49 +1200, "news.microsoft.com" > <talktomyfri***@hotmail.com> wrote: > >>Hi, >> >>Is there any way to load an extern exe file, such wordpad.exe into mdi >>with >>pre define size and position? >> >>Thanks, >> >>LK >> > > -- > Nick Michell > Doff Your Hat for personal reply. If you are looking to just embed Notepad you would be far better off just
re-creating the application. This is very easy to do and will give you full control over it.. -- Show quoteHide quoteChris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.veign.com/vrc_main.asp -- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ "news.microsoft.com" <talktomyfri***@hotmail.com> wrote in message news:eF3FAsEYFHA.2420@TK2MSFTNGP12.phx.gbl... > Thanks Nick, I got the notepad.exe working. > > However, I like the notepad.exe to be fixed in a position within the mdi > form, like left=100, top=0, width=3000, height=3000. > > It it possible? > > Cheers, > > lk > > "Nick Michell" <nickmATavnetYourHat.co.uk> wrote in message > news:8el491dk05hou97a5hm0glojgnkuuul79a@4ax.com... > > Have a look at Win API call "SetParent" - I've used that successfully > > to make Word a Child in an MDI app. > > > > HTH > > > > On Mon, 23 May 2005 14:47:49 +1200, "news.microsoft.com" > > <talktomyfri***@hotmail.com> wrote: > > > >>Hi, > >> > >>Is there any way to load an extern exe file, such wordpad.exe into mdi > >>with > >>pre define size and position? > >> > >>Thanks, > >> > >>LK > >> > > > > -- > > Nick Michell > > Doff Your Hat for personal reply. > > Notepad is the dummy testing application. We try to have the external link
for customer to run their own application with related data. If the third party application can be fired up in defined position would be a bonus. Show quoteHide quote "Veign" <NOSPAMinveign@veign.com> wrote in message news:u9cGmaGYFHA.2288@TK2MSFTNGP14.phx.gbl... > If you are looking to just embed Notepad you would be far better off just > re-creating the application. This is very easy to do and will give you > full > control over it.. > > -- > Chris Hanscom - Microsoft MVP (VB) > Veign's Resource Center > http://www.veign.com/vrc_main.asp > -- > Read. Decide. Sign the petition to Microsoft. > http://classicvb.org/petition/ > > > "news.microsoft.com" <talktomyfri***@hotmail.com> wrote in message > news:eF3FAsEYFHA.2420@TK2MSFTNGP12.phx.gbl... >> Thanks Nick, I got the notepad.exe working. >> >> However, I like the notepad.exe to be fixed in a position within the mdi >> form, like left=100, top=0, width=3000, height=3000. >> >> It it possible? >> >> Cheers, >> >> lk >> >> "Nick Michell" <nickmATavnetYourHat.co.uk> wrote in message >> news:8el491dk05hou97a5hm0glojgnkuuul79a@4ax.com... >> > Have a look at Win API call "SetParent" - I've used that successfully >> > to make Word a Child in an MDI app. >> > >> > HTH >> > >> > On Mon, 23 May 2005 14:47:49 +1200, "news.microsoft.com" >> > <talktomyfri***@hotmail.com> wrote: >> > >> >>Hi, >> >> >> >>Is there any way to load an extern exe file, such wordpad.exe into mdi >> >>with >> >>pre define size and position? >> >> >> >>Thanks, >> >> >> >>LK >> >> >> > >> > -- >> > Nick Michell >> > Doff Your Hat for personal reply. >> >> > > On Wed, 25 May 2005 10:45:08 +1200, "news.microsoft.com"
<talktomyfri***@hotmail.com> wrote: >Notepad is the dummy testing application. We try to have the external link Quite a few examples of this have been posted in the past>for customer to run their own application with related data. > >If the third party application can be fired up in defined position would be >a bonus. Here is one http://groups.google.co.uk/group/comp.lang.basic.visual.misc/msg/16c53606d538c502?dmode=source&hl=en The major problem is that some Apps display an initial window that is not the main window once it has settled down Also WaitForInputIdle is useful for waiting until the App is up and running Hi Lk,
I lifted the following from the app I mentioned earlier - this is called by the MDI Parent Resize Event - should give you a few pointers: - Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal _ x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, _ ByVal bRepaint As Long) As Long .... Public Sub ResizeWordWindow(plngHwnd As Long) Dim lngNewX As Long Dim lngNewY As Long Dim lngNewWidth As Long Dim lngNewHeight As Long If plngHwnd <> 0 Then lngNewWidth = gobjChildWord.picWordInner.Width lngNewHeight = gobjChildWord.picWordInner.Height lngNewX = 0 lngNewY = 0 MoveWindow plngHwnd, lngNewX, lngNewY, lngNewWidth, lngNewHeight, True End If End Sub Notes: - plngHwnd is the Windows Handle for the Word instance (jn this case - in yours, it would be WordPad, or whatever) gobjChildWord is a ref. to an MDI Child form. picWordInner is a Picture control (makes placement easier, otherwise you have to take account of the Form's title bar) On Tue, 24 May 2005 22:26:00 +1200, in microsoft.public.vb.general.discussion you wrote: >Thanks Nick, I got the notepad.exe working. > >However, I like the notepad.exe to be fixed in a position within the mdi >form, like left=100, top=0, width=3000, height=3000. > >It it possible? > >Cheers, > >lk -- Nick Michell Doff Your Hat for personal reply.
Multiple Timer Advice
form section color Height limitation of picturebox Binary Math Help VB6 don't see events of the implemented interface checkbox always is disabled!!!! Simulating relational database with text files X-axis value of Excel chart Something better than DoEvents? Finding out font's file name |
|||||||||||||||||||||||