Home > Software engineering >  AdjustWindowRectEX I completely look not to understand ah
AdjustWindowRectEX I completely look not to understand ah

Time:01-15

I have to understand the poor ability to this level? Even can't read the API specification halo ah, a great god, please take time to help
This function is not see where to adjust the window? What is the size of the window was lpRect in return?


Functions: the function according to customer required rectangular size, computing needs of the size of the window rectangle, calculate the window rectangle can then be transmitted to the CreateWindowEx function, used to create a client area required for the size of the window,

Function prototypes: BOOL AdjustWindowRectEX (LPRECT LPRECT, dwords dwStyte; BOOL bMenu; DWORD dwExStyle);

Parameters:

LpRect: pointer to the RECT structure, which includes the required of the client area, the coordinates of the upper left corner and lower right when the function returns, this structure contains hold the upper left corner of the window of the client area required and the coordinates of the lower right corner,

DwStyle: specified will be calculated the size of the window style,

BMenu: indicates that the window menu,

DwExStyle: specified will be calculated the expansion of the size of the window the window style,

The return value: if the function is successful, the return value is nonzero. If the function fails, the return value is zero, if you want to get more error information, call GetLastError function, please.

Note: client rectangle is refers to the smallest rectangle contains a complete client area; Rectangular window refers to the smallest rectangle completely contains a window, the window contains the client area with the client area,

When a drop-down menu bar out of two or more rows, AdjustWindowRect function no extra space,

Quick: Windows NT: 3.1 above; Windows: more than 95 version; Windows CE: 1.0 above; The header file: winuser. H; Library file: user32. Lib,
  • Related