Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
void CGroupBox::EnableContainingControls( bool bEnable )
{
HWND hwndParent = GetParent();
if ( hwndParent == NULL )
{
return;
}
RECT rcClient;
GetWindowRect( &rcClient );
HWND hwndTemp = ::GetWindow( hwndParent, GW_CHILD );
while ( hwndTemp )
{
RECT rcChild;
::GetWindowRect( hwndTemp, &rcChild );
if ( ( rcChild.left >= rcClient.left )
&& ( rcChild.top >= rcClient.top )
&& ( rcChild.right <= rcClient.right )
&& ( rcChild.bottom <= rcClient.bottom )
&& ( hwndTemp != m_hWnd ) )
{
::EnableWindow( hwndTemp, bEnable );
}
hwndTemp = ::GetNextWindow( hwndTemp, GW_HWNDNEXT );
}
}