Get DC & RC from new desktop

Posted by Desu_Never_Lies on Stack Overflow See other posts from Stack Overflow or by Desu_Never_Lies
Published on 2010-04-07T14:44:10Z Indexed on 2010/04/07 16:23 UTC
Read the original article Hit count: 144

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about win32