Results 1 to 3 of 3

Thread: Q: How to force a control to draw offscreen

  1. #1
    Newbie umarth's Avatar
    Join Date
    Oct 2004
    Posts
    9

    Q: How to force a control to draw offscreen

    I'm having fun coding my own front end. At the moment it's In the proof of concept phase. More specificly, I'm determining if I can sufficiently control MS MapPoint to do what I want.

    I one thing I realy want to do is rotate the map (2D & 3D). To do this, I just let map point do it's normal rendering, then grab the control's screen buffer to a bitmat and then manipulate the bitmap. My problem is that when ever the MP control is not directly visible on the screen (or partialy visible), it clips it's rending and I can't grab the whole map (as it is not completely rendered). Now this is normaly a desired behaviour for applications, but it prevents me from doing what I want to do: have MapPoint draw the map and then let me manipulate it's output for final rendering.

    So the question is: does any one here have a clue as to how I could force MapPoint to render offscreen and then have my code access that raster? Dont care if it's not nice, just that it works. One thing I'm thingking is binding the control's window DC to a DirectDraw7 surface. But not sure that it will work.

    Thanks,
    -J
    [■■■■■■■■■■■■■■■■■■■■] 50%
    PC installed
    EPIA MII-12000, 256DDR, Opus 150, Xenarc, 30Gb/7200 HD, USB Wifi.
    Waiting for: GPS & Soft, eternal Sound Card + Amps.

  2. #2
    Maximum Bitrate mushin's Avatar
    Join Date
    Aug 2004
    Location
    SE Michigan
    Posts
    750
    Without writing some custom graphics driver?

    It's a hack, but you could use multimon, and have MapPoint on the secondary monitor (you needn't actually have a monitor plugged in, of course.) If your current vid card doesn't support dual head, there might be some software out there that fakes it, or you could throw in a old PCI vid card.

    Maybe there's a more elegant solution, but nothing's coming to me now.

  3. #3
    Maximum Bitrate DeltaFX's Avatar
    Join Date
    Sep 2004
    Location
    France
    Posts
    499
    Changing the DC used would be my first idea too.
    Now Galileo is real. Muhahahahaha :p

Similar Threads

  1. CarPC Remote Control feature
    By liquid_smoke in forum PhoneControl
    Replies: 174
    Last Post: 04-06-2005, 02:21 AM
  2. Cabin Control v1.0
    By King_Aero in forum Software & Software Development
    Replies: 32
    Last Post: 03-14-2005, 06:23 PM
  3. Replies: 0
    Last Post: 11-27-2004, 05:47 PM
  4. FM Radio- VOlume controls- Mute line-in- control master
    By live2themaxuk in forum FrodoPlayer
    Replies: 6
    Last Post: 11-16-2004, 02:33 AM
  5. Replies: 22
    Last Post: 08-13-2001, 01:42 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
  •