Hello, how can i get client width? i need create my ContainerBox on center of the screen but im not sure how to get that positions. //C++
Hello, how can i get client width? i need create my ContainerBox on center of the screen but im not sure how to get that positions. //C++
closed
Code:void getWindowSize(int& width, int& height) { RECT rect; HWND tibia; tibia = FindWindow("tibia", NULL); if(GetWindowRect(tibia, &rect)) { width = rect.right - rect.left; height = rect.bottom - rect.top; } }