Get DC & RC from new desktop
- by Desu_Never_Lies
Hello. I create new desktop with CreateDesktop and want to get it's DC & RC.
RECT deskRC;
HDC deskDC;
HDESK hNewDesktop = CreateDesktop(...);
GetWindowRect(hNewDesktop, &deskRC);
deskDC = GetDC(hNewDesktop);
This returns only 0's.
What's the problem? Or maybe there's another way of obtaining those values.
P.S.: Desktop creates normally.