The code below used to work in VC++ v6.0. It has stopped working in VS2010, Win 8.
The idea is to set the font of all the controls in a dialog box at runtime. The code works below works exactly as expected EXCEPT that the font in the group box controls is not changed. I suppose I could try sub classing the group boxes but I would rather do something easier. Don't feel bad, I don't really expect to get a solution here ...
This code is in the OnInitDialog() function:
CWnd* pChildWnd = GetWindow(GW_CHILD);
int iCount = 0;
pChildWnd = pChildWnd->GetWindow(GW_HWNDNEXT);