ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

autocomplete.h
Go to the documentation of this file.
00001 /*
00002  *  AutoComplete interfaces implementation.
00003  *
00004  *  Copyright 2004  Maxime Bellengé <maxime.bellenge@laposte.net>
00005  *  Copyright 2009  Andrew Hill
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00020  */
00021 
00022 #ifndef _AUTOCOMPLETE_H_
00023 #define _AUTOCOMPLETE_H_
00024 
00025 class CAutoComplete :
00026     public CComCoClass<CAutoComplete, &CLSID_AutoComplete>,
00027     public CComObjectRootEx<CComMultiThreadModelNoCS>,
00028     public IAutoComplete2
00029 {
00030 private:
00031     BOOL                    enabled;
00032     BOOL                    initialized;
00033     HWND                    hwndEdit;
00034     HWND                    hwndListBox;
00035     WNDPROC                 wpOrigEditProc;
00036     WNDPROC                 wpOrigLBoxProc;
00037     WCHAR                   *txtbackup;
00038     WCHAR                   *quickComplete;
00039     CComPtr<IEnumString>    enumstr;
00040     AUTOCOMPLETEOPTIONS     options;
00041 public:
00042 
00043     CAutoComplete();
00044     ~CAutoComplete();
00045 
00046     static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
00047     static LRESULT APIENTRY ACLBoxSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
00048 
00049     // IAutoComplete2
00050     virtual HRESULT WINAPI Enable(BOOL fEnable);
00051     virtual HRESULT WINAPI Init(HWND hwndEdit, IUnknown *punkACL, LPCOLESTR pwzsRegKeyPath, LPCOLESTR pwszQuickComplete);
00052     virtual HRESULT WINAPI GetOptions(DWORD *pdwFlag);
00053     virtual HRESULT WINAPI SetOptions(DWORD dwFlag);
00054 
00055 DECLARE_REGISTRY_RESOURCEID(IDR_AUTOCOMPLETE)
00056 DECLARE_NOT_AGGREGATABLE(CAutoComplete)
00057 
00058 DECLARE_PROTECT_FINAL_CONSTRUCT()
00059 
00060 BEGIN_COM_MAP(CAutoComplete)
00061     COM_INTERFACE_ENTRY_IID(IID_IAutoComplete, IAutoComplete)
00062     COM_INTERFACE_ENTRY_IID(IID_IAutoComplete2, IAutoComplete2)
00063 END_COM_MAP()
00064 };
00065 
00066 #endif // _AUTOCOMPLETE_H_

Generated on Sat May 26 2012 04:24:52 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.