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.
Second put above your render menu.(Or were ever you draw it)
Third... This is were you are doing your menu or whatever.
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
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 );
}
Code:
int XRes = GetSystemMetrics(SM_CXFULLSCREEN); int YRes = GetSystemMetrics(SM_CYFULLSCREEN);
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
ive had something like this befour its the same concept(kinda but thanks)




