Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cWndRichLog.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cWndRichLog_H
7 #define _INC_cWndRichLog_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cWndDialog.h"
13 
14 #if defined(_WIN32) && ! defined(_MFC_VER) && ! defined(UNDER_CE)
15 #include "cWndControls2.h"
16 
17 namespace GrayLib
18 {
19  class GRAYLIB_LINK cWndRichLog
20  : public cWndRichEditCtrl
21  {
24 
25  public:
26  StrLen_t m_iLenMax;
27  bool m_bScrollLock;
28 
29  public:
30  cWndRichLog( HWND hWnd = WINHANDLE_NULL );
31  cWndRichLog(cWndHandle* pWndParent, DLGID_t id);
32 
33  virtual ~cWndRichLog(void);
34 
35  void ClearText();
36  StrLen_t AppendText( const GChar_t* pszText, COLORREF color=RGB(0,0,0));
37  void SetupText( HFONT hFont, COLORREF dwColorBack=RGB(0xFF,0xFF,0xFF), COLORREF dwColorFore=RGB(0,0,0));
38  int SetLineText( int iLine, const GChar_t* pszText, bool bCanUndo = false );
39  StrLen_t GetLineText( int iLine, GChar_t* pszText, StrLen_t iLenMax );
40  };
41 };
42 #endif
43 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define WINHANDLE_NULL
HWND, HPEN, etc are NOT OS Handles. like HWND_DESKTOP. like HANDLEPTR_NULL. This is a WINAPI void* ha...
Definition: cOSHandle.h:23
UINT32 COLORREF
ABGR (high to low bits)
Definition: cVariantData.h:21
Definition: cMesh.h:22
UINT DLGID_t
old window format this was a WORD, EX format this is UINT32.
Definition: cResDialog.h:68
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 GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26