1) It seems that the correct default colors for an MDI frame window are
Code: Select all
nClrFore := GetSysColor( COLOR_WINDOWTEXT ), nClrBack := GetSysColor( COLOR_APPWORKSPACE ),;
Code: Select all
nClrFore := CLR_BLACK, nClrBack := GetSysColor( COLOR_WINDOW ),;
Code: Select all
SendMessage( ::hWnd, WM_SETICON, 0, oIcon:hIcon )
TMdiChild:
1) As for TMdiFrame, it is better to comment out
Code: Select all
::SendMsg( WM_SETICON, 0, oIcon:hIcon )