Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
PrintProgressDialog.cpp File Reference
#include "stdafx.h"
#include "testembed.h"
#include "PrintProgressDialog.h"
#include "BrowserView.h"
#include "nsIWebBrowser.h"
#include "nsIWebBrowserPrint.h"

Go to the source code of this file.

Classes

class  CDlgPrintListener

Functions

static void GetLocalRect (CWnd *aWnd, CRect &aRect, CWnd *aParent)

Function Documentation

static void GetLocalRect ( CWnd *  aWnd,
CRect &  aRect,
CWnd *  aParent 
) [static]

Definition at line 141 of file PrintProgressDialog.cpp.

{
  CRect wr;
  aParent->GetWindowRect(wr);

  CRect cr;
  aParent->GetClientRect(cr);

  aWnd->GetWindowRect(aRect);

  int borderH = wr.Height() - cr.Height();
  int borderW = (wr.Width() - cr.Width())/2;
  aRect.top    -= wr.top+borderH-borderW;
  aRect.left   -= wr.left+borderW;
  aRect.right  -= wr.left+borderW;
  aRect.bottom -= wr.top+borderH-borderW;

}

Here is the call graph for this function:

Here is the caller graph for this function: