Browse Source

Bring back the custom message loop

master
boisso 7 years ago
parent
commit
35c61b2379
  1. 4
      k-meleon/KmAppInfo.cpp
  2. 3
      k-meleon/MfcEmbed.cpp
  3. 4
      k-meleon/MfcEmbed.h

4
k-meleon/KmAppInfo.cpp

@ -380,8 +380,10 @@ NS_IMETHODIMP KmAppInfo::SetInterrupted(bool aInterrupted)
NS_IMETHODIMP KmAppInfo::ProcessNativeEvent(void* aMsg)
{
_AFX_THREAD_STATE *pState = AfxGetThreadState();
MSG* msg = (MSG*)aMsg;
if (!AfxPreTranslateMessage(msg))
pState->m_msgCur = *msg;
if (msg->message != WM_KICKIDLE && !AfxPreTranslateMessage(msg))
{
::TranslateMessage(msg);
::DispatchMessage(msg);

3
k-meleon/MfcEmbed.cpp

@ -1786,7 +1786,7 @@ void CMfcEmbedApp::CheckProfileVersion()
}
}
}
/*
int CMfcEmbedApp::Run()
{
if (m_pMainWnd == NULL && AfxOleGetUserCtrl())
@ -1872,4 +1872,3 @@ BOOL CMfcEmbedApp::PumpMessage2(UINT filter)
}
return TRUE;
}
*/

4
k-meleon/MfcEmbed.h

@ -160,8 +160,8 @@ public:
BOOL m_bUnicode;
#endif
BOOL LoadLanguage();
//virtual int Run();
//virtual BOOL PumpMessage2(UINT filter = 0);
virtual int Run();
BOOL PumpMessage2(UINT filter = 0);
//{{AFX_MSG(CMfcEmbedApp)
afx_msg void OnAppAbout();
afx_msg void OnNewBrowser();

Loading…
Cancel
Save