[转载]:https://blog.csdn.net/u014134886/article/details/52864773
1 RECT rc; 2 ::SystemParametersInfo(SPI_GETWORKAREA, 0, (PVOID)&rc, 0); //获取屏幕工作区大小 3 RECT rc_desktop; 4 ::GetWindowRect(GetDesktopWindow(),&rc_desktop);//获取屏幕大小 5 if(rc.left != rc_desktop.left) 6 { 7 //任务栏在左边 8 } 9 else if(rc.bottom != rc_desktop.bottom) 10 { 11 //任务栏在下边 12 } 13 //以下省略...