Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsFilePicker.cpp File Reference
#include "nsCOMPtr.h"
#include "nsGUIEvent.h"
#include "nsReadableUtils.h"
#include "nsNetUtil.h"
#include "nsWindow.h"
#include "nsIServiceManager.h"
#include "nsIPlatformCharset.h"
#include "nsICharsetConverterManager.h"
#include "nsFilePicker.h"
#include "nsILocalFile.h"
#include "nsIURL.h"
#include "nsIFileURL.h"
#include "nsIStringBundle.h"
#include "nsNativeCharsetUtils.h"
#include "nsEnumeratorUtils.h"
#include "nsCRT.h"
#include <windows.h>
#include <shlobj.h>
#include <commdlg.h>
#include <cderr.h>
#include "nsString.h"
#include "nsToolkit.h"

Go to the source code of this file.

Defines

#define MAX_EXTENSION_LENGTH   10
#define BIF_USENEWUI   0x50

Functions

static NS_DEFINE_CID (kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID)
int CALLBACK BrowseCallbackProc (HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)

Define Documentation

#define BIF_USENEWUI   0x50

Definition at line 81 of file nsFilePicker.cpp.

Definition at line 76 of file nsFilePicker.cpp.


Function Documentation

int CALLBACK BrowseCallbackProc ( HWND  hwnd,
UINT  uMsg,
LPARAM  lParam,
LPARAM  lpData 
)

Definition at line 110 of file nsFilePicker.cpp.

{
  if (uMsg == BFFM_INITIALIZED)
  {
    char * filePath = (char *) lpData;
    if (filePath)
    {
      ::SendMessage(hwnd, BFFM_SETSELECTION, TRUE /* true because lpData is a path string */, lpData);
      nsCRT::free(filePath);
    }
  }
  return 0;
}
static NS_DEFINE_CID ( kCharsetConverterManagerCID  ,
NS_ICHARSETCONVERTERMANAGER_CID   
) [static]