How to search multiple resolutions type?

Asked By 40 points N/A Posted on -


How to search multiple resolutions type? I just want information regarding this issue for my project. Share with me some of your brilliant ideas and to all who are expert on this. Also consider some compatibility issues that may affect the application.

Answered By 0 points N/A #129569

How to search multiple resolutions type?



That would depend on the language your are using to build the application, but it is always wise to anchor all the design element to the main form, so as when the main form is maximize the other design elements where stick to where they are, it is also important for an application to check the current resolution, in C++/C you will have this piece of code, using the Windows API which is the windows native list of API functions for you to use;

                To get the screenwidth:

                Int iWidth = GetSystemMetrics(SM_CXSCREEN).

                To get the screenhieght:

                Int iHeight = GetSystemMetrics(SM_CYSCREEN);

The output of that is your X and Y values of the screen, that is your resolution, you could create a function that will process the resolution and from there the application will adapt to the current resolution depending on how you want it to adapt.


Login/Register to Answer

Related Questions