Ok here is some of the code
Code:
// Update winclass for main_child window .START
// Then register class .START
wndclass.lpfnWndProc = ChildWndProc;
wndclass.hIcon = NULL;
wndclass.hbrBackground = (HBRUSH) GetStockObject (LTGRAY_BRUSH) ;
wndclass.lpszClassName = szChildClass;
RegisterClass(&wndclass);
// Update winclass for main_child window .FINISH
// Then register class .FINISH
// Update winclass for child_child window .START
// Then register class .START
wndclass.lpfnWndProc = ChildChildWndProc;
wndclass.hIcon = NULL;
wndclass.hbrBackground = (HBRUSH) GetStockObject (GRAY_BRUSH) ;
wndclass.lpszClassName = szChildChildClass;
RegisterClass(&wndclass);
// Update winclass for child_child window .FINISH
// Then register class .FINISH
and the create child windows. I've tried with and without WS_VISIBLE as the style with showwindow(). Also I made both child handles global to see if it would help.
Code:
hwndChild = CreateWindow(szChildClass, NULL,
WS_CHILDWINDOW | WS_VSCROLL,
40,40,360,420,
hwnd, (HMENU) 1001,
(HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE),
NULL);
ShowWindow (hwndChild, SW_SHOW);
hwndChildChild = CreateWindow(szChildChildClass, NULL,
WS_CHILDWINDOW | WS_VISIBLE ,
0,0,20,20,
hwndChild, (HMENU) 1002,
(HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE),
NULL);