foobar2000 SDK  2015-08-03
Data Structures | Functions
dialog_resize_helper.h File Reference

Go to the source code of this file.

Data Structures

class  dialog_resize_helper
 
struct  dialog_resize_helper::param
 

Functions

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

Data Structure Documentation

struct dialog_resize_helper::param

Definition at line 17 of file dialog_resize_helper.h.

Data Fields
unsigned short flags
unsigned short id

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 }