Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsAppShell.cpp File Reference
#include "nsAppShell.h"
#include "nsToolkit.h"
#include "nsIWidget.h"
#include "nsIEventQueueService.h"
#include "nsIServiceManager.h"
#include <windows.h>
#include <unknwn.h>
#include "nsWidgetsCID.h"
#include "aimm.h"
#include "nsITimerManager.h"

Go to the source code of this file.


BOOL PeekKeyAndIMEMessage (LPMSG msg, HWND hwnd)


static int gKeepGoing = 1

Function Documentation

BOOL PeekKeyAndIMEMessage ( LPMSG  msg,
HWND  hwnd 

Definition at line 86 of file nsAppShell.cpp.

  MSG msg1, msg2, *lpMsg;
  BOOL b1, b2;
  b1 = nsToolkit::mPeekMessage(&msg1, NULL, WM_KEYFIRST, WM_IME_KEYLAST, PM_NOREMOVE);
  b2 = nsToolkit::mPeekMessage(&msg2, NULL, WM_IME_SETCONTEXT, WM_IME_KEYUP, PM_NOREMOVE);
  if (b1 || b2) {
    if (b1 && b2) {
      if (msg1.time < msg2.time)
        lpMsg = &msg1;
        lpMsg = &msg2;
    } else if (b1)
      lpMsg = &msg1;
      lpMsg = &msg2;
    return nsToolkit::mPeekMessage(msg, hwnd, lpMsg->message, lpMsg->message, PM_REMOVE);

  return false;

Variable Documentation

int gKeepGoing = 1 [static]

Definition at line 55 of file nsAppShell.cpp.