How to Get Desk Top rectangle (RECT)
-
HI, How can i Get DeskTop RECT ..... as i do to get RECT of dialogs using GetWindowRect(); actualy i want to draw mine application Window equals to the desktop coordiantes excluding TaskBar area. any sample. or help .. thanx Regards.
-
You missed SM_CYFULLSCREEN in order to get the y. Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain) -
HI, How can i Get DeskTop RECT ..... as i do to get RECT of dialogs using GetWindowRect(); actualy i want to draw mine application Window equals to the desktop coordiantes excluding TaskBar area. any sample. or help .. thanx Regards.
Additionally to what has already been stated. If you have multiple monitors (or want multiple monitor support) us SM_CXVIRTUALSCREEN to get the x SM_CYVIRTUALSCREEN to get the y As the parameter to GetSystemMetrics NOTE: the rect will be (0, 0, x, y) Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain) -
if i will try like this then is it right way CWnd * wnd = GetDesktopWindow(); RECT rect; wnd->GetWindowRect(&rect); MoveWindow(rect.left,rect.top ,rect.right ,rect.bottom -35 , TRUE); RECT rec; this->GetWindowRect (&rec); GetDlgItem(IDC_BUTTON1)->MoveWindow(rec.left,rec.top+70, rec.right ,rec.bottom ); is it right tell me how i use GetSystemMetrics(SM_CXFULLSCREEN) thanx Regards.