I searched for this problem, because I know it's been asked, it may have even been me who asked it, but couldn't find the thread. I'm trying to size a child control to cover the entire client area of a window, but the height is somehow not correct. A small gap (big enough to be a problem) is between the bottom edge of the child window and the bottom edge of the client area. This is my code:
Is there a solution here?Code:GetClientRect(hwnd,&rc); SetWindowPos(hList,NULL,0,0,rc.right,rc.bottom,SWP_NOOWNERZORDER);