Results 1 to 2 of 2

Thread: close Embed map monkey?

  1. #1
    Low Bitrate Rillee's Avatar
    Join Date
    Jan 2007
    Location
    Sweden
    Posts
    62

    close Embed map monkey?

    I'm trying to embed map monkey into my front end written in vb6.

    this is how i embed map monkey into a picturebox and that works great

    Code:
    Shell gpsPath        
    Do Until hProgramWnd            
       hProgramWnd = FindWindow(gpslpClassName, gpslpWindowName)                       
       DoEvents
    Loop
            
    SetParent hProgramWnd, Form1.picGPS.hWnd
    but when i trying to exit map monkey whit this code it wont end, what are i doing wrong?

    Code:
    SendMessage hProgramWnd, WM_CLOSE, 0, 0
    DoEvents

  2. #2
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    711
    Don't know if it matters, but i use:

    Code:
    PostMessage hwnd, WM_CLOSE, 0&, 0&
    SendMessage seemed to have problems with certain messages.

    Also, you might want to call
    Code:
    SetParent hProgramWnd, 0&
    to unembed the program.

    If that doesn't work, make sure hProgramWnd has a value in it, and that WM_CLOSE = &H10.

    There's also the CloseWindow API.

Similar Threads

  1. RELEASE: Map Monkey v1.1.3
    By Ninja Monkey in forum Map Monkey
    Replies: 163
    Last Post: 02-12-2009, 10:27 AM
  2. Replies: 106
    Last Post: 10-20-2008, 09:09 AM
  3. can't launch map monkey embedded
    By series2 in forum RR Bug Tracker
    Replies: 7
    Last Post: 04-20-2008, 06:09 PM
  4. Problems with Map Monkey and FreeFone
    By Blipman in forum Road Runner
    Replies: 1
    Last Post: 08-21-2007, 09:10 AM
  5. Hide map monkey with girder
    By bigmac999 in forum FrodoPlayer
    Replies: 4
    Last Post: 05-09-2005, 02:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •