let the DefWindowProc() process messages sent to RAS window, otherwise the system can't shutdown properly while it exists

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-07-14 20:02:30 +00:00
parent 109c7768eb
commit cd6af1cb31

View File

@ -1250,16 +1250,25 @@ static DWORD wxRasMonitorThread(wxRasThreadData *data)
static LRESULT APIENTRY wxRasStatusWindowProc(HWND hWnd, UINT message, static LRESULT APIENTRY wxRasStatusWindowProc(HWND hWnd, UINT message,
WPARAM wParam, LPARAM lParam) WPARAM wParam, LPARAM lParam)
{ {
if ( message == wxWM_RAS_STATUS_CHANGED ) switch ( message )
{ {
wxRasThreadData *data = (wxRasThreadData *)lParam; case wxWM_RAS_STATUS_CHANGED:
data->dialUpManager->OnConnectStatusChange(); {
} wxRasThreadData *data = (wxRasThreadData *)lParam;
else if ( message == wxWM_RAS_DIALING_PROGRESS ) data->dialUpManager->OnConnectStatusChange();
{ }
wxDialUpManagerMSW *dialUpManager = wxDialUpManagerMSW::GetDialer(); break;
dialUpManager->OnDialProgress((RASCONNSTATE)wParam, lParam); case wxWM_RAS_DIALING_PROGRESS:
{
wxDialUpManagerMSW *dialMan = wxDialUpManagerMSW::GetDialer();
dialMan->OnDialProgress((RASCONNSTATE)wParam, lParam);
}
break;
default:
return ::DefWindowProc(hWnd, message, wParam, lParam);
} }
return 0; return 0;