Results 1 to 14 of 14
  1. #1
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,423
    Reputation
    112
    Thanks
    693

    GetSystemMetrics

    Hey i was experimenting in mo3ad001 new menu base and i thought id release this if any of the noobs out there didn't know this. Its a function i found and used to my advantage.

    You know how people have different monitor sizes and if you put a certain d3d item at the end of your users monitor that will appear at a different spot on someone elses monitor because their monitor could be bigger or smaller. You can fix that by using this simple function.

    First....Put were your functions go.
    Code:
    void GetPrimaryScreenSizeInPixels( SIZE& s)
    {
    // Start With Nothing
    ZeroMemory( &s, sizeof(SIZE) );
    
    // Get Width/Height
    s.cx = (LONG)::GetSystemMetrics( SM_CXFULLSCREEN );
    s.cy = (LONG)::GetSystemMetrics( SM_CYFULLSCREEN );
    
    }
    Second put above your render menu.(Or were ever you draw it)
    Code:
    int XRes = GetSystemMetrics(SM_CXFULLSCREEN);
    int YRes = GetSystemMetrics(SM_CYFULLSCREEN);
    Third... This is were you are doing your menu or whatever.
    Code:
    Menu.DrawBox(0,0,XRes,25,5,0x960000FF,0xFF000000,0xFF000000,pDevice);
    This is using mo3ad001 functions.

    This will create a bar that goes across your screen thats blue with a black border. Hope this helped if not w/e.

    - Zane
    Last edited by NOOBJr; 06-26-2011 at 04:19 PM.

  2. The Following 4 Users Say Thank You to NOOBJr For This Useful Post:

    'Batata! (06-29-2011),speedforyou (06-26-2011),Templar (06-11-2012),Thugzinn (06-27-2011)

  3. #2
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    735
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    nice ive had something like this befour its the same concept(kinda but thanks)

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  4. #3
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Nice..

  5. #4
    lalo9's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    248
    Reputation
    10
    Thanks
    10
    Idk what to say i didnt know what ur saying in that whole paragrah

  6. #5
    whit++++'s Avatar
    Join Date
    Jun 2011
    Gender
    female
    Posts
    56
    Reputation
    22
    Thanks
    10
    *cough* GetViewport()

  7. The Following User Says Thank You to whit++++ For This Useful Post:

    NOOBJr (06-26-2011)

  8. #6
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    The problem with this is that, Your using the General windows stuff. So if game in Windows Mode... It will Draw a crosshair at the center of your screen, not the center of the games ViewPort.
    Whit is right pDevice->GetViewPort(&vp);
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  9. The Following User Says Thank You to topblast For This Useful Post:

    ken53406 (06-26-2011)

  10. #7
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,423
    Reputation
    112
    Thanks
    693
    Thanks but i did this myself. Gotta gain some self confidence

    - Zane

  11. #8
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616
    someone gunna copy my title bar for black cipher

  12. #9
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,423
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by NOOB View Post
    someone gunna copy my title bar for black cipher
    I call it a taskbar? you know the thing microsft invented probably before you were born. LOL
    Its alright i aint gunna release it, Just to see my skillz in D3D. I got a better one comin.

    -Zane


  13. #10
    .::SCHiM::.'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    733
    Reputation
    180
    Thanks
    880
    My Mood
    Twisted
    Quote Originally Posted by NOOBJr View Post

    >>I call it a taskbar? you know the thing microsft invented probably before you
    >>thing microsft invented
    >>invented...
    No offense dude, but that is just plain not nice. And for your information: Microsoft doesn't invent shit. Task managing and context switching happens down at the hardware level. The 'taskbar' as you call it, is simply a display and for as far as I know you can't 'invent' a display.

    I'm SCHiM

    Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.

    Polymorphic engine
    Interprocess callback class
    SIN
    Infinite-precision arithmetic
    Hooking dynamic linkage
    (sloppy)Kernel mode Disassembler!!!

    Semi debugger




  14. #11
    ken53406's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    In your moms slop hole :D
    Posts
    151
    Reputation
    9
    Thanks
    97
    My Mood
    Aggressive
    Thanks, Whits method is 10 times better though :/

    And SCHiM is right not nice at all...
    Dont gotta be a dick bro
    troll says: FUK YO COUCH NIGGA!
    V
    [img]https://www.******************/forums/images/smilies/troll_run.gif[/img]


    My goals list:
    Legend:

    Complete - Incomplete -

    30 Posts: [] | 50 Posts: []
    70 Posts: [] | 100 Posts: []
    500 Posts: [] | 1,000 Posts: []
    Release a CA NA pub: [] | Release a CFNA Pub: []
    Pro C++ Coder: [] | Pro VB Coder: []
    [IMG]https://images.encyclopediadramatic*****m/images/5/57/Pedobear_a.gif[/IMG]

    Don't forget:

  15. #12
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Kekistan
    Posts
    15,566
    Reputation
    1817
    Thanks
    6,678
    Quote Originally Posted by .::SCHiM::. View Post
    No offense dude, but that is just plain not nice. And for your information: Microsoft doesn't invent shit. Task managing and context switching happens down at the hardware level. The 'taskbar' as you call it, is simply a display and for as far as I know you can't 'invent' a display.
    the taskbar is the thing at the bottom of your screen.. not the display, lol

    It first came out in windows 95 also the start menu..

    bfore that windows 3 had only the progrma manager and it was fuckin shitty
    Last edited by AVGN; 06-26-2011 at 11:50 PM.




  16. The Following 2 Users Say Thank You to AVGN For This Useful Post:

    markoj (06-27-2011),OBrozz (06-27-2011)

  17. #13
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,423
    Reputation
    112
    Thanks
    693
    Quote Originally Posted by AVGN View Post


    the taskbar is the thing at the bottom of your screen.. not the display, lol

    It first came out in windows 95 also the start menu..

    bfore that windows 3 had only the progrma manager and it was fuckin shitty
    avgn would know

  18. #14
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    hes 30 years old he should
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development