Skip to content

Using GetSystemMetrics() in App.cpp #9047

Answered by chrisglein
fShen21 asked this question in Q&A
Discussion options

You must be logged in to vote

GetSystemMetrics is a desktop Win32 API, whereas RNW apps are UWP apps (see more here). So you'd want the UWP equivalent API for that kind of device information. You can dig in maybe here or here.

However if we back up to your stated scenario:

I want the application to start in a screen-sized window on any machine it is running on.

I think what you're looking for is simpler than all of that. Look up documentation on how to create a fullscreen UWP app, such as this

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisglein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants