no message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
40bd6154f1
commit
b963e7d546
@ -555,7 +555,7 @@ bool wxApp::DoMessage()
|
|||||||
{
|
{
|
||||||
BOOL bRc = ::WinGetMsg(vHabmain, &svCurrentMsg, HWND(NULL), 0, 0);
|
BOOL bRc = ::WinGetMsg(vHabmain, &svCurrentMsg, HWND(NULL), 0, 0);
|
||||||
|
|
||||||
wxUsleep(10000);
|
wxUsleep(1000);
|
||||||
if (bRc == 0)
|
if (bRc == 0)
|
||||||
{
|
{
|
||||||
// got WM_QUIT
|
// got WM_QUIT
|
||||||
@ -658,7 +658,7 @@ int wxApp::MainLoop()
|
|||||||
#endif // wxUSE_THREADS
|
#endif // wxUSE_THREADS
|
||||||
while (!Pending() && ProcessIdle())
|
while (!Pending() && ProcessIdle())
|
||||||
{
|
{
|
||||||
wxUsleep(10000);
|
// wxUsleep(10000);
|
||||||
}
|
}
|
||||||
DoMessage();
|
DoMessage();
|
||||||
}
|
}
|
||||||
|
@ -804,11 +804,8 @@ bool wxFrame::OS2Create(
|
|||||||
HWND hTitlebar = NULLHANDLE;
|
HWND hTitlebar = NULLHANDLE;
|
||||||
HWND hHScroll = NULLHANDLE;
|
HWND hHScroll = NULLHANDLE;
|
||||||
HWND hVScroll = NULLHANDLE;
|
HWND hVScroll = NULLHANDLE;
|
||||||
SWP vSwp;
|
SWP vSwp[10];
|
||||||
SWP vSwpClient;
|
RECTL vRect[10];
|
||||||
SWP vSwpTitlebar;
|
|
||||||
SWP vSwpVScroll;
|
|
||||||
SWP vSwpHScroll;
|
|
||||||
USHORT uCtlCount;
|
USHORT uCtlCount;
|
||||||
|
|
||||||
m_hDefaultIcon = (WXHICON) (wxSTD_FRAME_ICON ? wxSTD_FRAME_ICON : wxDEFAULT_FRAME_ICON);
|
m_hDefaultIcon = (WXHICON) (wxSTD_FRAME_ICON ? wxSTD_FRAME_ICON : wxDEFAULT_FRAME_ICON);
|
||||||
@ -886,7 +883,7 @@ bool wxFrame::OS2Create(
|
|||||||
,NULLHANDLE // Owner
|
,NULLHANDLE // Owner
|
||||||
,HWND_TOP // Sibling
|
,HWND_TOP // Sibling
|
||||||
,(ULONG)nId // ID
|
,(ULONG)nId // ID
|
||||||
,(PVOID)&flFrameCtlData // Creation data
|
,(PVOID)&vFrameCtlData // Creation data
|
||||||
,NULL // Window Pres Params
|
,NULL // Window Pres Params
|
||||||
)) == 0L)
|
)) == 0L)
|
||||||
{
|
{
|
||||||
@ -924,17 +921,17 @@ bool wxFrame::OS2Create(
|
|||||||
))
|
))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
uCtlCount = ::WinSendMsg(m_hFrame, WM_FORMATFRAME, (MPARAM)pSwp, (MPARAM)pRect);
|
uCtlCount = SHORT1FROMMP(::WinSendMsg(m_hFrame, WM_FORMATFRAME, (MPARAM)vSwp, (MPARAM)vRect));
|
||||||
for (int i = 0; i < uCtlCount; i++)
|
for (int i = 0; i < uCtlCount; i++)
|
||||||
{
|
{
|
||||||
if (pSwp[i].hwnd == m_hFrame)
|
if (vSwp[i].hwnd == m_hFrame)
|
||||||
memcpy(m_vSwp, pSwp[i], sizeof(SWP));
|
memcpy(&m_vSwp, &vSwp[i], sizeof(SWP));
|
||||||
else if (pSwp[i].hwnd == m_hVScroll)
|
else if (vSwp[i].hwnd == m_hVScroll)
|
||||||
memcpy(m_vSwpVScroll, pSwp[i], sizeof(SWP));
|
memcpy(&m_vSwpVScroll, &vSwp[i], sizeof(SWP));
|
||||||
else if (pSwp[i].hwnd == m_hHScroll)
|
else if (vSwp[i].hwnd == m_hHScroll)
|
||||||
memcpy(m_vSwpVScroll, pSwp[i], sizeof(SWP));
|
memcpy(&m_vSwpVScroll, &vSwp[i], sizeof(SWP));
|
||||||
else if (pSwp[i].hwnd == m_hTitleBar)
|
else if (vSwp[i].hwnd == m_hTitleBar)
|
||||||
memcpy(m_vSwpTitleBar, pSwp[i], sizeof(SWP));
|
memcpy(&m_vSwpTitleBar, &vSwp[i], sizeof(SWP));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -945,7 +942,7 @@ bool wxFrame::OS2Create(
|
|||||||
,SV_CXSIZEBORDER/2
|
,SV_CXSIZEBORDER/2
|
||||||
,(SV_CYSIZEBORDER/2) + m_vSwpHScroll.cy/2
|
,(SV_CYSIZEBORDER/2) + m_vSwpHScroll.cy/2
|
||||||
,m_vSwp.cx - ((SV_CXSIZEBORDER + 1) + m_vSwpVScroll.cx)
|
,m_vSwp.cx - ((SV_CXSIZEBORDER + 1) + m_vSwpVScroll.cx)
|
||||||
,m_vSwp.cy - ((SV_CYSIZEBORDER + 1) + m_vSwpTitlebar.cy + m_vSwpHScroll.cy/2)
|
,m_vSwp.cy - ((SV_CYSIZEBORDER + 1) + m_vSwpTitleBar.cy + m_vSwpHScroll.cy/2)
|
||||||
,SWP_SIZE | SWP_MOVE
|
,SWP_SIZE | SWP_MOVE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user