| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * synergy -- mouse and keyboard sharing utility | 
|---|
| 3 | * Copyright (C) 2006 Chris Schoeneman | 
|---|
| 4 | * | 
|---|
| 5 | * This package is free software; you can redistribute it and/or | 
|---|
| 6 | * modify it under the terms of the GNU General Public License | 
|---|
| 7 | * found in the file COPYING that should have accompanied this file. | 
|---|
| 8 | * | 
|---|
| 9 | * This package is distributed in the hope that it will be useful, | 
|---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 12 | * GNU General Public License for more details. | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 | #ifndef CINFO_H | 
|---|
| 16 | #define CINFO_H | 
|---|
| 17 |  | 
|---|
| 18 | #include "CString.h" | 
|---|
| 19 |  | 
|---|
| 20 | #define WINDOWS_LEAN_AND_MEAN | 
|---|
| 21 | #include <windows.h> | 
|---|
| 22 |  | 
|---|
| 23 | //! Info dialog for Microsoft Windows launcher | 
|---|
| 24 | class CInfo { | 
|---|
| 25 | public: | 
|---|
| 26 | CInfo(HWND parent); | 
|---|
| 27 | ~CInfo(); | 
|---|
| 28 |  | 
|---|
| 29 | //! @name manipulators | 
|---|
| 30 | //@{ | 
|---|
| 31 |  | 
|---|
| 32 | //! Run dialog | 
|---|
| 33 | /*! | 
|---|
| 34 | Display and handle the dialog until closed by the user. | 
|---|
| 35 | */ | 
|---|
| 36 | void                            doModal(); | 
|---|
| 37 |  | 
|---|
| 38 | //@} | 
|---|
| 39 | //! @name accessors | 
|---|
| 40 | //@{ | 
|---|
| 41 |  | 
|---|
| 42 | //@} | 
|---|
| 43 |  | 
|---|
| 44 | private: | 
|---|
| 45 | void                            init(HWND hwnd); | 
|---|
| 46 |  | 
|---|
| 47 | // message handling | 
|---|
| 48 | BOOL                            doDlgProc(HWND, UINT, WPARAM, LPARAM); | 
|---|
| 49 | static BOOL CALLBACK dlgProc(HWND, UINT, WPARAM, LPARAM); | 
|---|
| 50 |  | 
|---|
| 51 | private: | 
|---|
| 52 | static CInfo*           s_singleton; | 
|---|
| 53 |  | 
|---|
| 54 | HWND                            m_parent; | 
|---|
| 55 | }; | 
|---|
| 56 |  | 
|---|
| 57 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.