Get screen resolution in Windows 8 Metro style application

Tuesday, July 24, 2012

Today, someone asked an interesting question in the Israeli Metro forum I’m moderating. The question was: “How can I know what’s the screen resolution in a Metro style app?” This is a tricky answer, since: This capability has been removed from the RC. We can’t rely on current window Width and Height, since it may not be fully opened (snapping). Well, searching a bit over the API’s, I didn’t find anything that can help, but, we can always use DirectX. Creating a C++ Metro style application,...