• This project
    • Loading...
  • Sign in

I_Jemin / ITHVNR_kor

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • ITHVNR_kor
  • gui
  • TextBuffer.h
  • mireado's avatar
    update to 3.5640.1 · 90613f50 ...
    90613f50
    update to ITHVNR 3.5640.1
    and translation
    mireado authored 2016-01-06 00:01:17 +0900
TextBuffer.h 388 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#pragma once

#include "ITH.h"
#include "utility.h" // UniqueHandle, CriticalSection

class TextBuffer
{
public:
	TextBuffer(HWND edit);
	~TextBuffer();
	void Flush();
	void AddText(LPCWSTR str, int len, bool line);
	void ClearBuffer();
	bool Running() { return running; }
private:
	CriticalSection cs;
	bool line_break, running;
	UniqueHandle hThread;
	HWND hEdit;
	std::wstring str;
};