// create a temporary header window just to get its geometry
- HWND hwndHeader = ::CreateWindow(WC_HEADER, NULL, NULL,
+ HWND hwndHeader = ::CreateWindow(WC_HEADER, NULL, 0,
0, 0, 0, 0, NULL, NULL, NULL, NULL);
if ( !hwndHeader )
return DEFAULT_HEIGHT;
// initialize the struct filled with the values by Header_Layout()
RECT parentRect = { 0, 0, 100, 100 };
- WINDOWPOS wp = { 0 };
+ WINDOWPOS wp = { 0, 0, 0, 0, 0, 0, 0 };
HDLAYOUT hdl = { &parentRect, &wp };
return Header_Layout(hwndHeader, &hdl) ? wp.cy : DEFAULT_HEIGHT;