foobar2000 SDK  2015-08-03
Functions
dialog_resize_helper.cpp File Reference

Go to the source code of this file.

Functions

BOOL GetChildWindowRect (HWND wnd, UINT id, RECT *child)
 

Function Documentation

BOOL GetChildWindowRect ( HWND  wnd,
UINT  id,
RECT *  child 
)

Definition at line 6 of file dialog_resize_helper.cpp.

7 {
8  RECT temp;
9  HWND wndChild = GetDlgItem(wnd, id);
10  if (wndChild == NULL) return FALSE;
11  if (!GetWindowRect(wndChild,&temp)) return FALSE;
12  if (!MapWindowPoints(0,wnd,(POINT*)&temp,2)) return FALSE;
13  *child = temp;
14  return TRUE;
15 }