Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cFTPGUI.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cFTPGUI_H
6 #define _INC_cFTPGUI_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "GrayFTPInt.h"
13 
14 #ifdef USE_GUI
15 
16 namespace GrayFTP
17 {
18  class cFTPFactory;
19 
20  class cFTPGUI
21  : public cRefBase
22  , public cLogAppender
23  {
26 
27  public:
28  static const int k_LINESIZE = 128;
29 #ifdef UNDER_CE
30  static const int k_NUMBERLINES = 32;
31 #else
32  static const int k_NUMBERLINES = 128;
33 #endif
34 
36  HWND m_hDialog;
39 
40  private:
41  virtual HRESULT addEvent(cLogEvent* pEvent);
42 
43  void UpdateTitle();
44  int UpdateDisplay();
45  void AttachToShell();
46  StrLen_t GetUpdatedTitle(FILECHAR_t* pszTitle, StrLen_t iStrMax);
47 
48  void OnInitDialog(HWND hDlg);
49  bool OnSysCommand(WORD uCmdType, int xPos, int yPos);
50  LRESULT OnUserTrayNotify(WPARAM wID, LPARAM lEvent);
51 
52  static INT_PTR CALLBACK DialogProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
53  static DWORD WINAPI DialogThread(LPVOID hInstance); // static
54 
55  public:
56  cFTPGUI(cFTPFactory& rFactory);
58 
60  };
61 };
62 #endif
63 #endif
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cFTPFactory.h:54
Definition: cFTPGUI.h:23
FILECHAR_t m_Dialog_Buffer[k_NUMBERLINES *k_LINESIZE]
buffer sent to the dialog control. IDC_LOG_EDIT
Definition: cFTPGUI.h:38
cFTPFactory & m_rFactory
get display data from here.
Definition: cFTPGUI.h:35
static const int k_LINESIZE
Definition: cFTPGUI.h:28
static const int k_NUMBERLINES
Definition: cFTPGUI.h:32
IUNKNOWN_DISAMBIG(cRefBase)
cArrayString< char > m_Dialog_Array
Definition: cFTPGUI.h:37
HWND m_hDialog
handle of dialog box containing IDC_LOG_EDIT
Definition: cFTPGUI.h:36
cFTPGUI(cFTPFactory &rFactory)
Definition: cLogAppender.h:257
Definition: cLogEvent.h:18
Definition: cRefPtr.h:22
Definition: cFTPAccount.h:14
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22