Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsFrameWindow.cpp File Reference
#include "nsFrameWindow.h"
#include "nsIRollupListener.h"
#include "nsIDeviceContext.h"
#include "nsIComponentManager.h"
#include "nsGfxCIID.h"

Go to the source code of this file.

Functions

MRESULT EXPENTRY fnwpFrame (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)

Variables

nsIRollupListenergRollupListener
nsIWidgetgRollupWidget
PRBool gRollupConsumeRollupEvent

Function Documentation

MRESULT EXPENTRY fnwpFrame ( HWND  hwnd,
ULONG  msg,
MPARAM  mp1,
MPARAM  mp2 
)

Definition at line 330 of file nsFrameWindow.cpp.

{
   // check to see if we have a rollup listener registered
   if (nsnull != gRollupListener && nsnull != gRollupWidget) {
      if (msg == WM_TRACKFRAME || msg == WM_MINMAXFRAME ||
          msg == WM_BUTTON1DOWN || msg == WM_BUTTON2DOWN || msg == WM_BUTTON3DOWN) {
         // Rollup if the event is outside the popup
         if (PR_FALSE == nsWindow::EventIsInsideWindow((nsWindow*)gRollupWidget)) {
            gRollupListener->Rollup();

            // if we are supposed to be consuming events and it is
            // a Mouse Button down, let it go through
//            if (gRollupConsumeRollupEvent && msg != WM_BUTTON1DOWN) {
//               return FALSE;
//            }
         } 
      }
   }

   nsFrameWindow *pFrame = (nsFrameWindow*) WinQueryWindowPtr( hwnd, QWL_USER);
   return pFrame->FrameMessage( msg, mp1, mp2);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 132 of file nsWindow.cpp.

Definition at line 137 of file nsChildView.mm.

Definition at line 138 of file nsChildView.mm.