Get the x and y pixelsize of the screen?
-
This is surely an easy q for you but I don’t remember how to do it… How do I get the size of the users screen? _____________________________ ...and justice for all APe
-
This is surely an easy q for you but I don’t remember how to do it… How do I get the size of the users screen? _____________________________ ...and justice for all APe
HDC tmpDC = GetDC(NULL); int xRes = GetDeviceCaps(tmpDC,HORZRES); int yRes = GetDeviceCaps(tmpDC,VERTRES);
-
This is surely an easy q for you but I don’t remember how to do it… How do I get the size of the users screen? _____________________________ ...and justice for all APe
-
;P Use this one... int cx = GetSystemMetrics(SM_CXSCREEN); // return the width in pixels int cy = GetSystemMetrics(SM_CYSCREEN); // return the height in pixels Vikram Kashyap Sr. Software Engineer TechBooks International R&D Division
-
This is surely an easy q for you but I don’t remember how to do it… How do I get the size of the users screen? _____________________________ ...and justice for all APe
See the 'GetSystemMetrics' function. You can get de screen metrics among many other parameters of the system
-
;P Use this one... int cx = GetSystemMetrics(SM_CXSCREEN); // return the width in pixels int cy = GetSystemMetrics(SM_CYSCREEN); // return the height in pixels Vikram Kashyap Sr. Software Engineer TechBooks International R&D Division
Tnx - My solution _____________________________ ...and justice for all APe