'Batata! (06-29-2011),speedforyou (06-26-2011),Templar (06-11-2012),Thugzinn (06-27-2011)
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.
Second put above your render menu.(Or were ever you draw it)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 ); }
Third... This is were you are doing your menu or whatever.Code:int XRes = GetSystemMetrics(SM_CXFULLSCREEN); int YRes = GetSystemMetrics(SM_CYFULLSCREEN);
This is using mo3ad001 functions.Code:Menu.DrawBox(0,0,XRes,25,5,0x960000FF,0xFF000000,0xFF000000,pDevice);
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.
'Batata! (06-29-2011),speedforyou (06-26-2011),Templar (06-11-2012),Thugzinn (06-27-2011)
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 =
Idk what to say i didnt know what ur saying in that whole paragrah
NOOBJr (06-26-2011)
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
ken53406 (06-26-2011)
Thanks but i did this myself. Gotta gain some self confidence
- Zane
someone gunna copy my title bar for black cipher
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
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:
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