OK that was funny. I can put the text any where on the window including the title bar but I cannot put or move my button in there.
I used this code but it moves the button on the top left corner of the CLIENT area of the window:
That code should get the DC of the whole window and then the if the x value is 0 then it should be the top left corner on the title bar.... but that is not what it is.Code:HDC hdc; case WM_PAINT: hdc = GetWindowDC(hwnd); MoveWindow(buttonhwnd, 0, 0, 300,300, true);
Why does not that code work.




Reply With Quote