Is there a machine-independent function in MFC that allows to measure the current monitor resolution ? For example, if the resolution is 1280x1024, the function should return these integers or something similar.