Popup Menu processing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-01-28 23:10:25 +00:00
parent 13b76aae87
commit bdfd8d7776
2 changed files with 15 additions and 19 deletions

View File

@@ -1981,22 +1981,22 @@ bool wxWindowOS2::DoPopupMenu(
,nX ,nX
,nY ,nY
,0L ,0L
,PU_HCONSTRAIN | PU_VCONSTRAIN | PU_MOUSEBUTTON2DOWN | PU_MOUSEBUTTON2 ,PU_HCONSTRAIN | PU_VCONSTRAIN | PU_MOUSEBUTTON1 | PU_KEYBOARD
); );
while(bIsWaiting) while(bIsWaiting)
{ {
QMSG vMsg; QMSG vMsg;
BOOL bRc = ::WinGetMsg(vHabmain, &vMsg, HWND(NULL), 0, 0);
while (::WinPeekMsg(vHabmain, &vMsg, (HWND)0, WM_COMMAND, WM_COMMAND, PM_REMOVE) if (vMsg.msg == WM_MENUEND || vMsg.msg == WM_COMMAND)
&& vMsg.msg != WM_QUIT)
{ {
wxTheApp->DoMessage((WXMSG*)&vMsg); bIsWaiting = FALSE;
} }
if (vMsg.msg == WM_DESTROY || vMsg.msg == WM_QUIT) ::WinDispatchMsg(vHabmain, (PQMSG)&vMsg);
break;
} }
wxCurrentPopupMenu = NULL; wxCurrentPopupMenu = NULL;
pMenu->SetInvokingWindow(NULL); pMenu->SetInvokingWindow(NULL);
return TRUE; return TRUE;
} // end of wxWindowOS2::DoPopupMenu } // end of wxWindowOS2::DoPopupMenu
@@ -2498,8 +2498,8 @@ MRESULT wxWindowOS2::OS2WindowProc(
case WM_BUTTON3MOTIONEND: case WM_BUTTON3MOTIONEND:
case WM_BUTTON3MOTIONSTART: case WM_BUTTON3MOTIONSTART:
{ {
short x = LOWORD(lParam); short x = LOWORD(wParam);
short y = HIWORD(lParam); short y = HIWORD(wParam);
bProcessed = HandleMouseEvent(uMsg, x, y, (WXUINT)wParam); bProcessed = HandleMouseEvent(uMsg, x, y, (WXUINT)wParam);
} }

View File

@@ -4,7 +4,7 @@ DATA MULTIPLE NONSHARED READWRITE LOADONCALL
CODE LOADONCALL CODE LOADONCALL
EXPORTS EXPORTS
;From library: F:\Dev\Wx2\WxWindows\lib\wx.lib ;From library: H:\DEV\WX2\WXWINDOWS\LIB\wx.lib
;From object file: dummy.cpp ;From object file: dummy.cpp
;PUBDEFs (Symbols available from object file): ;PUBDEFs (Symbols available from object file):
wxDummyChar wxDummyChar
@@ -1772,7 +1772,7 @@ EXPORTS
wxEVT_NC_LEFT_DCLICK wxEVT_NC_LEFT_DCLICK
wxEVT_INIT_DIALOG wxEVT_INIT_DIALOG
wxEVT_COMMAND_SET_FOCUS wxEVT_COMMAND_SET_FOCUS
;From object file: F:\DEV\WX2\WXWINDOWS\src\common\extended.c ;From object file: H:\DEV\WX2\WXWINDOWS\src\common\extended.c
;PUBDEFs (Symbols available from object file): ;PUBDEFs (Symbols available from object file):
ConvertToIeeeExtended ConvertToIeeeExtended
ConvertFromIeeeExtended ConvertFromIeeeExtended
@@ -2242,8 +2242,6 @@ EXPORTS
__ne__10wxFontBaseCFRC6wxFont __ne__10wxFontBaseCFRC6wxFont
;wxFontBase::GetFamilyString() const ;wxFontBase::GetFamilyString() const
GetFamilyString__10wxFontBaseCFv GetFamilyString__10wxFontBaseCFv
;wxFontBase::SetDefaultEncoding(wxFontEncoding)
SetDefaultEncoding__10wxFontBaseF14wxFontEncoding
;wxFontBase::IsFixedWidth() const ;wxFontBase::IsFixedWidth() const
IsFixedWidth__10wxFontBaseCFv IsFixedWidth__10wxFontBaseCFv
;wxFontBase::New(int,int,int,int,unsigned long,const wxString&,wxFontEncoding) ;wxFontBase::New(int,int,int,int,unsigned long,const wxString&,wxFontEncoding)
@@ -3140,8 +3138,6 @@ EXPORTS
__vft12wxPNGHandler8wxObject __vft12wxPNGHandler8wxObject
;wxConstructorForwxPNGHandler() ;wxConstructorForwxPNGHandler()
wxConstructorForwxPNGHandler__Fv wxConstructorForwxPNGHandler__Fv
wx_png_error
wx_png_warning
_PNG_stream_reader _PNG_stream_reader
;wxPNGHandler::SaveFile(wxImage*,wxOutputStream&,unsigned long) ;wxPNGHandler::SaveFile(wxImage*,wxOutputStream&,unsigned long)
SaveFile__12wxPNGHandlerFP7wxImageR14wxOutputStreamUl SaveFile__12wxPNGHandlerFP7wxImageR14wxOutputStreamUl
@@ -3152,6 +3148,8 @@ EXPORTS
_PNG_stream_writer _PNG_stream_writer
;wxPNGHandler::sm_classwxPNGHandler ;wxPNGHandler::sm_classwxPNGHandler
sm_classwxPNGHandler__12wxPNGHandler sm_classwxPNGHandler__12wxPNGHandler
png_silent_error
png_silent_warning
;From object file: ..\common\imagpnm.cpp ;From object file: ..\common\imagpnm.cpp
;PUBDEFs (Symbols available from object file): ;PUBDEFs (Symbols available from object file):
;wxPNMHandler::SaveFile(wxImage*,wxOutputStream&,unsigned long) ;wxPNMHandler::SaveFile(wxImage*,wxOutputStream&,unsigned long)
@@ -5773,7 +5771,7 @@ EXPORTS
Read32__17wxTextInputStreamFv Read32__17wxTextInputStreamFv
;wxTextInputStream::SkipIfEndOfLine(char) ;wxTextInputStream::SkipIfEndOfLine(char)
SkipIfEndOfLine__17wxTextInputStreamFc SkipIfEndOfLine__17wxTextInputStreamFc
;From object file: F:\DEV\WX2\WXWINDOWS\src\common\unzip.c ;From object file: H:\DEV\WX2\WXWINDOWS\src\common\unzip.c
;PUBDEFs (Symbols available from object file): ;PUBDEFs (Symbols available from object file):
unzReadCurrentFile unzReadCurrentFile
unzGetCurrentFileInfo unzGetCurrentFileInfo
@@ -6574,8 +6572,6 @@ EXPORTS
SetForegroundColour__12wxWindowBaseFRC8wxColour SetForegroundColour__12wxWindowBaseFRC8wxColour
;wxWindowBase::SetBackgroundColour(const wxColour&) ;wxWindowBase::SetBackgroundColour(const wxColour&)
SetBackgroundColour__12wxWindowBaseFRC8wxColour SetBackgroundColour__12wxWindowBaseFRC8wxColour
;wxWindowBase::RemoveEventHandler(wxEvtHandler*)
RemoveEventHandler__12wxWindowBaseFP12wxEvtHandler
;wxWindowBase::Destroy() ;wxWindowBase::Destroy()
Destroy__12wxWindowBaseFv Destroy__12wxWindowBaseFv
;wxWindowBase::SetConstraints(wxLayoutConstraints*) ;wxWindowBase::SetConstraints(wxLayoutConstraints*)