Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
CBrowseDlg.cpp File Reference
#include "stdafx.h"
#include "cbrowse.h"
#include "CBrowseDlg.h"
#include "ControlEventSink.h"
#include "..\..\src\control\DHTMLCmdIds.h"
#include <math.h>
#include <fpieee.h>
#include <float.h>
#include <signal.h>
#include <stack>

Go to the source code of this file.

Classes

struct  EnumData
struct  _ElementPos

Defines

#define IL_CLOSEDFOLDER   0
#define IL_OPENFOLDER   1
#define IL_TEST   2
#define IL_TESTFAILED   3
#define IL_TESTPASSED   4
#define IL_TESTPARTIAL   5
#define IL_NODE   IL_TEST

Functions

void __cdecl fperr (int sig)
BOOL CALLBACK EnumChildProc (HWND hwnd, LPARAM lParam)

Variables

TCHARaURLs []

Define Documentation

Definition at line 119 of file CBrowseDlg.cpp.

Definition at line 125 of file CBrowseDlg.cpp.

Definition at line 120 of file CBrowseDlg.cpp.

#define IL_TEST   2

Definition at line 121 of file CBrowseDlg.cpp.

Definition at line 122 of file CBrowseDlg.cpp.

Definition at line 124 of file CBrowseDlg.cpp.

Definition at line 123 of file CBrowseDlg.cpp.


Function Documentation

BOOL CALLBACK EnumChildProc ( HWND  hwnd,
LPARAM  lParam 
)

Definition at line 244 of file CBrowseDlg.cpp.

{
       EnumData *pData = (EnumData *) lParam;
       CBrowseDlg *pThis = pData->pBrowseDlg;

       switch (::GetDlgCtrlID(hwnd))
       {
       case IDC_BROWSER_MARKER:
              {
                     CWnd *pMarker = pThis->GetDlgItem(IDC_BROWSER_MARKER);
                     CRect rcMarker;
                     pMarker->GetWindowRect(&rcMarker);
                     pThis->ScreenToClient(rcMarker);

                     rcMarker.right += pData->sizeDelta.cx;
                     rcMarker.bottom += pData->sizeDelta.cy;

                     if (rcMarker.Width() > 10 && rcMarker.Height() > 10)
                     {
                            pMarker->SetWindowPos(&CWnd::wndBottom, 0, 0, rcMarker.Width(), rcMarker.Height(), 
                                          SWP_NOMOVE | SWP_NOACTIVATE | SWP_HIDEWINDOW);
                            pThis->m_pControlSite->SetPosition(rcMarker);
                     }
              }
              break;
       case IDC_TAB_MARKER:
              {
                     CWnd *pMarker = pThis->GetDlgItem(IDC_TAB_MARKER);
                     CRect rcMarker;
                     pMarker->GetWindowRect(&rcMarker);
                     pThis->ScreenToClient(rcMarker);

                     rcMarker.top += pData->sizeDelta.cy;

                     if (rcMarker.top > 70)
                     {
                            pMarker->SetWindowPos(&CWnd::wndBottom, rcMarker.left, rcMarker.top, 0, 0, 
                                          SWP_NOSIZE | SWP_NOACTIVATE | SWP_HIDEWINDOW);
                            pThis->m_dlgPropSheet.SetWindowPos(NULL, rcMarker.left - 7, rcMarker.top - 7, 0, 0, 
                                          SWP_NOREPOSITION | SWP_NOSIZE | SWP_NOACTIVATE);
                     }
              }

       }

       return TRUE;
}
void __cdecl fperr ( int  sig)

Definition at line 25 of file CBrowseDlg.cpp.

{
       CString sError;
       sError.Format("FP Error %08x", sig);
       AfxMessageBox(sError);
}

Here is the caller graph for this function:


Variable Documentation

Initial value:
{
       _T("http://whippy/calendar.html"),
       _T("http://www.mozilla.org"),
       _T("http://www.yahoo.com"),
       _T("http://www.netscape.com"),

}

Definition at line 32 of file CBrowseDlg.cpp.