diff options
author | Tino Rachui <tra@openoffice.org> | 2001-08-03 12:59:06 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2001-08-03 12:59:06 +0000 |
commit | d203744764e09cf162375173dbb5802ac404f8cb (patch) | |
tree | 575705979f8ecf350c98eeff7d0df9acde58a6a3 /fpicker | |
parent | 499fbd890f962ea9cac0929fb21684d483ebf359 (diff) |
#89507# setting a valid instance handle in ctor so that creating help popup window succeeds
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/FilePicker.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/fpicker/source/win32/filepicker/FilePicker.cxx b/fpicker/source/win32/filepicker/FilePicker.cxx index 6c5109451470..795aef381a9f 100644 --- a/fpicker/source/win32/filepicker/FilePicker.cxx +++ b/fpicker/source/win32/filepicker/FilePicker.cxx @@ -2,9 +2,9 @@ * * $RCSfile: FilePicker.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: tra $ $Date: 2001-07-02 08:09:14 $ + * last change: $Author: tra $ $Date: 2001-08-03 13:59:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -147,8 +147,17 @@ CFilePicker::CFilePicker( const Reference< XMultiServiceFactory >& xServiceMgr ) XEventListener, XServiceInfo >( m_rbHelperMtx ) { + HINSTANCE hInstance = GetModuleHandleA( FILE_PICKER_DLL_NAME ); + OSL_POSTCOND( hInstance, "The name of the service dll must have changed" ); + // create a default FileOpen dialog without any additional ui elements - m_pImpl = std::auto_ptr< CWinFileOpenImpl >( new CWinFileOpenImpl( this ) ); + m_pImpl = std::auto_ptr< CWinFileOpenImpl >( + new CWinFileOpenImpl( + this, + true, + 0, + 0, + hInstance ) ); } //------------------------------------------------------------------------------------ |