- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With the function INITIALSETTINGS I can arrange the size and the location of the frame-window. To optimize the following I/O-console-windows it is necessary, to know the resolution of the monitor already in the function INITIALSETTINGS.
These informations are found in the windows registry under HKEY_LOCAL_MACHINESYSTEMControlSet002Services vDevice0, key-words: DefaultSettings.XResolution, ...YRes..
Has anybody an solution to get this informations inside the function INITIALSETTINGS ?
These informations are found in the windows registry under HKEY_LOCAL_MACHINESYSTEMControlSet002Services vDevice0, key-words: DefaultSettings.XResolution, ...YRes..
Has anybody an solution to get this informations inside the function INITIALSETTINGS ?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure you can -- but better use GetSystemMetrics and/or SystemParametersInfo APIs. Registry reading is not portable. See SM_CX(VIRTUAL)SCREEN flag for the former and SPI_GETWORKAREA for the latter.
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the information. GetSystemMetrics-function works in the needed manner.
FK
FK

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page