Obtaining screen dimensions
C / C++ / MFC
6
Posts
4
Posters
0
Views
1
Watching
-
Get SystemMetrics will do the trick, if you'd like to substract the taskbar of other toolbars => use SystemParametersInfo. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
-
it doesnt seems to be mfc. but its simply call api functions: GetSystemMetrics(SM_CXSCREEN); GetSystemMetrics(SM_CYSCREEN);
-
CWnd::GetDesktopWindow()->GetWindowRect (...);
Although this will return the same screen size regardless of the presence of app bars. You probably want the size of the workspace. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com