The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 05-09-2004, 01:49 PM   #1
Low Bitrate
 
Join Date: Apr 2004
Location: Hayling Island, UK
Posts: 100
My Photos: (0)
Embedding a window in VB6 - Help

Hello, can someone give me some help on how to embedd a window into vb. im playing with the destinator sdk and im trying to get it to embedd into my project.

thanks, Tom
pioneer is offline   Reply With Quote
Sponsored Links
Old 05-09-2004, 02:28 PM   #2
Confusion Master
Enforcer's CarPC Specs
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Vehicle: 1997 BMW E36 328I
Posts: 9,568
My Photos: (1)
Upon doing a , one finds http://www.mp3car.com/vbulletin/show...&highlight=VB6
Enforcer is offline   Reply With Quote
Old 05-09-2004, 02:44 PM   #3
Low Bitrate
 
Join Date: Apr 2004
Location: Hayling Island, UK
Posts: 100
My Photos: (0)
hmm, seems i dont use the right words to search with
pioneer is offline   Reply With Quote
Old 05-26-2004, 08:12 AM   #4
Constant Bitrate
 
Jeep's Avatar
 
Join Date: May 2004
Location: Sweden
Vehicle: 2003 Jeep Grand Cherokee w.22" rims
Posts: 151
My Photos: (0)
Wink Destinator embeded

Test this in VB6. Need to have Destinator 2 SDK installed!
Attached Files
File Type: zip Embed_Dest_VB6.zip (2.2 KB, 125 views)
Jeep is offline   Reply With Quote
Old 05-26-2004, 08:23 AM   #5
Raw Wave
 
Laidback's Avatar
 
Join Date: Oct 2003
Location: Madrid
Vehicle: Jeep GC
Posts: 1,972
My Photos: (0)
Quote: Originally Posted by Jeep
Test this in VB6. Need to have Destinator 2 SDK installed!

That's not embedded, I can move Destinator around
__________________
Laidback

Laidback Carputer
Laidback is offline   Reply With Quote
Old 05-26-2004, 08:33 AM   #6
Constant Bitrate
 
Jeep's Avatar
 
Join Date: May 2004
Location: Sweden
Vehicle: 2003 Jeep Grand Cherokee w.22" rims
Posts: 151
My Photos: (0)
Yes in a way, you can move Destinator inside the picturebox. You have do edit Destinator inf file and set Destinators window to the same size as the picturebox. Inf file is here: C:\PowerLOC\Destinator\Common\Interface\Destinator .Inf Look for "D" ("D,650,412,640") (with,height,osk keyboard with)
Jeep is offline   Reply With Quote
Old 05-26-2004, 08:37 AM   #7
Raw Wave
 
Laidback's Avatar
 
Join Date: Oct 2003
Location: Madrid
Vehicle: Jeep GC
Posts: 1,972
My Photos: (0)
Quote: Originally Posted by Jeep
Yes in a way, you can move Destinator inside the picturebox. You have do edit Destinator inf file and set Destinators window to the same size as the picturebox. Inf file is here: C:\PowerLOC\Destinator\Common\Interface\Destinator .Inf Look for "D" ("D,650,412,640") (with,height,osk keyboard with)

Yeah, sorry. I meant you can still see the title bar and move it. you could also get the titlebar height in VB and move Destinator to picture1.top - titlebar height, same for borders etc
__________________
Laidback

Laidback Carputer
Laidback is offline   Reply With Quote
Old 05-26-2004, 11:59 AM   #8
Raw Wave
 
Confused's Avatar
 
Join Date: Aug 2003
Location: Essex, England
Vehicle: Honda Prelude 2.2 VTEC / Ford Anglia 105E
Posts: 2,224
My Photos: (0)
This is some code for embedding Destinator into a Visual Basic 6 (VB6) application.

(Sorry, just trying to put as many key-words into that first sentence as possible for anyone searching later!! )



Here is code to embed Destinator 2 into VB :

Make two timers, don't enable either. Give them whatever interval you want.

Make a Picture Box called pctDest (or change the code below ) on your form and place it where you want.

Then put this code in your project.

Code:
Public Sub Form_Load() tmrLoadDest.Enabled = True End Sub Private Sub tmrLoadDest_Timer() Set Dest2 = New Dest Dest2.CreateDestinatorWindow 4 Tmr_LaunchTimeOut.Enabled = False Tmr_LaunchTimeOut.Enabled = True myhandle = 0 While myhandle = 0 And Tmr_LaunchTimeOut.Enabled = True myhandle = FindWindowByName("*Destinator*") DoEvents Wend Tmr_LaunchTimeOut.Enabled = False If myhandle = 0 Then Exit Sub CurrentStyle = GetWindowLong(myhandle, GWL_STYLE) CurrentStyle = CurrentStyle And Not WS_DLGFRAME CurrentStyle = CurrentStyle And Not WS_SYSMENU CurrentStyle = CurrentStyle And Not WS_THICKFRAME CurrentStyle = CurrentStyle And Not WS_MINIMIZEBOX CurrentStyle = CurrentStyle And Not WS_MAXIMIZEBOX SetWindowLong myhandle, GWL_STYLE, CurrentStyle SetParent myhandle, pctDest.hWnd ShowWindow myhandle, SW_MAXIMIZE tmrLoadDest.Enabled = False End Sub

Little bit of help with that code was from coyote


Garry
__________________
Co-Developer of A.I.M.E.E
www.aimee.cc

Last edited by Confused : 05-26-2004 at 12:02 PM.
Confused is offline   Reply With Quote
Old 06-22-2004, 03:10 PM   #9
Low Bitrate
 
Join Date: Apr 2004
Location: Hayling Island, UK
Posts: 100
My Photos: (0)
hmm, i cant seem to get the code to work
pioneer is offline   Reply With Quote
Old 06-22-2004, 04:25 PM   #10
Newbie
 
Multiplayer's Avatar
 
Join Date: Sep 2002
Location: Denmark
Posts: 10
My Photos: (0)
I've tried it aswell. But it gives an error in the line "Set Dest2 = New Dest". Could anyone please explain what this line, is soposed to do.
Multiplayer is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple window search string Nellor MediaCar 1 09-05-2005 12:22 PM
Embedding apps in vb6 Laidback Software & Software Development 9 05-09-2004 07:44 PM
LCD in rear window ryanerb LCD/Display 2 11-21-2003 08:45 AM
How to remove winamp AVS border. - Sample VB6 code Fusion-One Software & Software Development 1 10-03-2003 07:55 PM
Delorme Streetatlas and the GPS Tab window size gfoulks GPS 0 08-28-2002 04:23 PM


All times are GMT -5. The time now is 08:19 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics