i have looked on msdn for the window im working with's x and y size using GetSystemMetrics does any one know what it is
ps: sorry if that dont make sence im tired :P
i have looked on msdn for the window im working with's x and y size using GetSystemMetrics does any one know what it is
ps: sorry if that dont make sence im tired :P
I'm not sure what you're asking for exactly. The paramters for getting the size of the desktop are SM_CXSCREEN and SM_CYSCREEN. I'm not sure on this one because I'm only looking through the headers but I think the size of your window would be SM_CXSIZE and SM_CYSIZE. Try those and let me know if they work
ok here is what i have and it should explain a little bit better wat i am doing
when it starts up it seams that the edit control is not responding and it is not resizing, im trying to make auto resize with the main window (hwnd)Code:int x = GetSystemMetrics(SM_CXSIZE); MoveWindow(hwndEdit , 10 , 10 , x - 50 , 15 , TRUE);
thanks
in other words i want to get the width of the client rect.
i got it worked out now..for those who may come accross this you need to use GetClienRect()