Back to index

lightning-sunbird  0.9+nobinonly
Functions
gui_advanced.cpp File Reference
#include "xp.h"
#include <windowsx.h>
#include "windowsxx.h"
#include "resource.h"
#include "logger.h"

Go to the source code of this file.

Functions

static void onApply (HWND hWnd)
static void onNotify (HWND hWnd, int idCtrl, LPNMHDR lpNMHdr)
static BOOL onInitDialog (HWND hWnd, HWND hWndFocus, LPARAM lParam)
BOOL CALLBACK AdvancedPageProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)

Function Documentation

BOOL CALLBACK AdvancedPageProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 86 of file gui_advanced.cpp.

{
  switch(msg)
  {
    case WM_INITDIALOG:
      return (BOOL)HANDLE_WM_INITDIALOG(hWnd, wParam, lParam, onInitDialog);
    case WM_NOTIFY:
      HANDLE_WM_NOTIFY(hWnd, wParam, lParam, onNotify);
      break;

    default:
      return FALSE;
  }
  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void onApply ( HWND  hWnd) [static]

Definition at line 46 of file gui_advanced.cpp.

{
  Logger * logger = (Logger *)GetWindowLong(hWnd, DWL_USER);
  if(!logger)
    return;

  logger->bSPALID = (BST_CHECKED == IsDlgButtonChecked(hWnd, IDC_CHECK_SPALID));
  logger->bSaveSettings = TRUE;
}

Here is the caller graph for this function:

static BOOL onInitDialog ( HWND  hWnd,
HWND  hWndFocus,
LPARAM  lParam 
) [static]

Definition at line 68 of file gui_advanced.cpp.

{
  Logger * logger = NULL;

  if(lParam)
  {
    logger = (Logger *)(((PROPSHEETPAGE *)lParam)->lParam);
    SetWindowLong(hWnd, DWL_USER, (long)logger);
  }

  if(logger)
  {
    CheckDlgButton(hWnd, IDC_CHECK_SPALID, logger->bSPALID ? BST_CHECKED : BST_UNCHECKED);
  }

  return TRUE;
}

Here is the caller graph for this function:

static void onNotify ( HWND  hWnd,
int  idCtrl,
LPNMHDR  lpNMHdr 
) [static]

Definition at line 56 of file gui_advanced.cpp.

{
  switch(lpNMHdr->code)
  {
    case PSN_RESET:
      break;
    case PSN_APPLY:
      onApply(hWnd);
      break;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function: