Results 1 to 5 of 5

Thread: subclassing or hooks maybe..?

  1. #1

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    subclassing or hooks maybe..?

    I have a small problem with my system at home. I have two video cards in it one hooked to my monitor one to my tv. i want to create a list of class names or something like that which will be used to force application to run on the tv or display adapter 1. I have never messed with hooks or anything so i am not sure if that is what I need or not.

    Any way I have a bunch of very simple games and things that I want to run on the tv but when they go fullscreen they run on he monitor because it is the primary display and I can't make the tv primary because that messes with playing movies on the tv because whatever i do while the kids and wife are watching a move opens on the tv instead of the monitor whe the tv is set for primary. so I was thinking if I could set a hook and have it check a list of app class names...that might do it.

    Unfortunatly I am clueless. Please help me guys.
    Thanks.
    Magiaus

    If I helped give me some points.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    EnumWindows to get all window handles, then GetWindowLongPtr to get their class names.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    that part i can handle

    it's how to make the applicatio n use a certian card when its code isn't written to handle that. I don't know. I haven't had much time to reaserch it it i was hoping someone here would just know how to do it and could show me an example. I think I am going to try to read up on it tonight.
    Magiaus

    If I helped give me some points.

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Search for a 2D-only device driver for the adapter you don't want to use in 3D games. What card is it? I've access to a few old driver archives that I could look into for you.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I doubt you can force other apps to do such a thing.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width