11 typedef CommentInfo<COLORREF> CommentColorInfo;
12 typedef CommentInfo<LPCTSTR> CommentSizeInfo;
13 typedef CommentInfo<LPCTSTR> CommentPosInfo;
15 class CNicoLiveStream;
18 ///
\88ê
\94Ê
\89ï
\88õ
\83R
\83}
\83\93\83h
20 namespace generalUser{
22 ///
\88ê
\94Ê
\89ï
\88õ
\83R
\83\81\83\93\83g
\90F
\83\8a\83X
\83g
24 extern const CommentColorInfo COMMENT_COLORLIST[];
27 ///
\88ê
\94Ê
\89ï
\88õ
\83T
\83C
\83Y
\83R
\83}
\83\93\83h
\83\8a\83X
\83g
29 extern const CommentSizeInfo COMMENT_SIZELIST[];
32 ///
\88ê
\94Ê
\89ï
\88õ
\83R
\83\81\83\93\83g
\88Ê
\92u
\83\8a\83X
\83g
34 extern const CommentPosInfo COMMENT_POSLIST[];
39 ///
\83v
\83\8c\83~
\83A
\83\80\89ï
\88õ
\83R
\83}
\83\93\83h
41 namespace premiumUser{
43 ///
\83v
\83\8c\83~
\83A
\83\80\89ï
\88õ
\83R
\83\81\83\93\83g
\90F
\83\8a\83X
\83g
45 extern const CommentColorInfo COMMENT_COLORLIST[];
49 ///
\83v
\83\8c\83~
\83A
\83\80\89ï
\88õ
\83T
\83C
\83Y
\83R
\83}
\83\93\83h
\83\8a\83X
\83g
51 extern const CommentSizeInfo COMMENT_SIZELIST[];
54 ///
\83v
\83\8c\83~
\83A
\83\80\89ï
\88õ
\83R
\83\81\83\93\83g
\88Ê
\92u
\83\8a\83X
\83g
56 extern const CommentPosInfo COMMENT_POSLIST[];
61 class CCommentWriteWindow;
62 class CSubChatEdit:public CWindowImpl<CSubChatEdit,CEdit>{
67 CCommentWriteWindow &self;
68 CComAutoCriticalSection cs;
69 BOOL untilConnectingFlag;
72 CSubChatEdit(CCommentWriteWindow &in_commentWriteWindow):self(in_commentWriteWindow){}
75 BEGIN_MSG_MAP_EX(CSubLiveNoComboBox)
76 MSG_WM_KEYDOWN(OnKeyDown)
79 void OnKeyDown(TCHAR wParam, UINT upLParam,UINT loLParam);
88 const static LPCTSTR COMMENTWRITEWINDOW = TEXT("commentWriteWindow");
92 ///
\83R
\83\81\83\93\83g
\8f\91\82«
\8d\9e\82Ý
\97p
\83E
\83B
\83\93\83h
\83E
\83N
\83\89\83X
94 class CCommentWriteWindow:public CWindowImpl<CCommentWriteWindow>{
98 CComboBox commentPosBox; //
\83R
\83\81\83\93\83g
\88Ê
\92u
\91I
\91ð
\83R
\83\93\83{
\83{
\83b
\83N
\83X
99 CComAutoCriticalSection commentPosBoxCS; //
\83R
\83\81\83\93\83g
\88Ê
\92u
\91I
\91ð
\83R
\83\93\83{
\83{
\83b
\83N
\83X
\83N
\83\8a\83e
\83B
\83J
\83\8b\83Z
\83N
\83V
\83\87\83\93
100 CComboBox commentSizeBox; //
\83R
\83\81\83\93\83g
\82Ì
\91å
\82«
\82³
\91I
\91ð
\83R
\83\93\83{
\83{
\83b
\83N
\83X
101 CComAutoCriticalSection commentSizeBoxCS; //
\83R
\83\81\83\93\83g
\82Ì
\91å
\82«
\82³
\91I
\91ð
\83R
\83\93\83{
\83{
\83b
\83N
\83X
\83N
\83\8a\83e
\83B
\83J
\83\8b\83Z
\83N
\83V
\83\87\83\93
102 CComboBox commentColorBox; //
\83R
\83\81\83\93\83g
\90F
\91I
\91ð
\83R
\83\93\83{
\83{
\83b
\83N
\83X
103 CButton anonymousButton; //184
\91I
\91ð
\83{
\83^
\83\93
104 CSubChatEdit commentSubEdit; //
\83R
\83\81\83\93\83g
\8f\91\82«
\8d\9e\82Ý
\97p
\83G
\83f
\83B
\83b
\83g
\83T
\83u
\83N
\83\89\83X
105 CButton commentWriteButton; //
\83R
\83\81\83\93\83g
\8f\91\82«
\8d\9e\82Ý
\83{
\83^
\83\93
106 UINT_PTR commentWriteMaxLength; //
\83R
\83\81\83\93\83g
\8f\91\82«
\8d\9e\82Ý
\92·
\8dÅ
\91å
\92l
107 UINT_PTR commentWriteHeight; //
\83R
\83\81\83\93\83g
\8f\91\82«
\8d\9e\82Ý
\83R
\83\93\83g
\83\8d\81[
\83\8b\94z
\92u
\97Ì
\88æ
\82Ì
\8d\82\82³
108 UINT_PTR infoDispHeight; //
\83R
\83\81\83\93\83g
\8f\91\82«
\8d\9e\82Ý
\82É
\8aÖ
\82·
\82é
\82à
\82Ì
\88È
\8aO
\82Ì
\8fî
\95ñ
\95\
\8e¦
\97Ì
\88æ
\82Ì
\8d\82\82³
109 UINT_PTR commentWriteInternalHeight; //
\83R
\83\81\83\93\83g
\8f\91\82«
\8d\9e\82Ý
\83R
\83\93\83g
\83\8d\81[
\83\8b\94z
\92u
\97Ì
\88æ
\82Ì
\8d\82\82³(
\93à
\95\94)
110 CNicoLiveStream &nicoLiveStream; //
\95ú
\91\97\83I
\83u
\83W
\83F
\83N
\83g
\82Ì
\8eQ
\8fÆ
111 time_t streamTime; //
\95ú
\91\97\8co
\89ß
\8e\9e\8aÔ
112 CFont anonymousFont; //184
\95\
\8e¦
\97p
\83t
\83H
\83\93\83g
113 CFont timeFont; //
\8co
\89ß
\8e\9e\8aÔ
\95\
\8e¦
\97p
\83t
\83H
\83\93\83g
116 //
\83R
\83\93\83g
\83\8d\81[
\83\8bID
120 COMMENTCOLOR_BOX = 3,
121 ANONYMOUS_BUTTON = 4,
123 COMMENTWRITE_BOTTON = 6,
131 DECLARE_WND_CLASS(COMMENTWRITEWINDOW)
132 //
\83\81\83b
\83Z
\81[
\83W
\83}
\83b
\83v
133 BEGIN_MSG_MAP(CCommentWriteWindow)
134 MSG_WM_CREATE(OnCreate)
135 MSG_WM_DESTROY(OnDestroy)
136 MSG_WM_PAINT(OnPaint)
138 MSG_WM_ERASEBKGND(OnEraseBkGnd)
139 MSG_WM_DRAWITEM(OnDrawItem)
140 MSG_WM_MEASUREITEM(OnMeasureItem)
141 MSG_WM_TIMER(OnTimer)
142 COMMAND_CODE_HANDLER_EX(BN_CLICKED,OnButton)
152 ///
\83R
\83\93\83X
\83g
\83\89\83N
\83^
154 CCommentWriteWindow(CNicoLiveStream &nicoLiveStream);
157 ///
\82±
\82Ì
\83E
\83B
\83\93\83h
\83E
\82Ì
\8d\82\82³
\82ð
\8eæ
\93¾
159 UINT_PTR GetHeight();
162 ///
\83R
\83\81\83\93\83g
\91\97\90M
167 ///
\83R
\83\81\83\93\83g
\8eó
\90M
\8aJ
\8en
\8e\9e\82Ì
\8f\88\97\9d
169 VOID OnChatReceveStart(CNicoLiveStream &nicoLiveStream,NicoLiveThreadComment_P threadComment);
172 ///
\83R
\83\81\83\93\83g
\91\97\90M
\8c\8b\89Ê
\8eó
\90M
\8e\9e\82Ì
\8f\88\97\9d
174 VOID OnSendChatResult();
177 ///
\83n
\81[
\83g
\83r
\81[
\83g
\91\97\90M
\8e\9e\82Ì
\8f\88\97\9d
179 VOID OnHeartBeat(NicoLiveHeartBeat_P heartBeat);
182 ///
\95ú
\91\97\90Ø
\92f
\8e\9e\82Ì
\8f\88\97\9d
187 //
\83\81\83b
\83Z
\81[
\83W
\83n
\83\93\83h
\83\89
192 ///
\83E
\83B
\83\93\83h
\83E
\8dì
\90¬
\8e\9e\82Ì
\8f\88\97\9d
194 LRESULT OnCreate(LPCREATESTRUCT lpReateStruct);
198 ///
\83E
\83B
\83\93\83h
\83E
\94j
\8aü
\8e\9e\82Ì
\8f\88\97\9d
203 ///
\95`
\89æ
\8e\9e\82Ì
\8f\88\97\9d
205 VOID OnPaint(HDC hdc);
209 ///
\83T
\83C
\83Y
\95Ï
\8dX
\8e\9e\82Ì
\8f\88\97\9d
211 LRESULT OnSize(UINT wParam,SIZE lParam);
214 ///
\83T
\83C
\83Y
\95Ï
\8dX
\8f\88\97\9d
216 VOID ChangeSize(SIZE &size);
220 ///
\83A
\83C
\83e
\83\80\95`
\89æ
\8f\88\97\9d
222 VOID OnDrawItem(UINT wParam,LPDRAWITEMSTRUCT lParam);
225 ///
\83A
\83C
\83e
\83\80\82Ì
\8d\82\82³
\95Ï
\8dX
\8f\88\97\9d
227 VOID OnMeasureItem(UINT wParam,LPMEASUREITEMSTRUCT lParam);
230 ///
\94w
\8ci
\82Ì
\83`
\83\89\83c
\83L
\82ð
\97}
\82¦
\82é
232 LRESULT OnEraseBkGnd(HDC wParam);
235 ///
\83{
\83^
\83\93\89\9f\89º
\8e\9e\82Ì
\8f\88\97\9d
237 LRESULT OnButton(UINT hiWparam,INT_PTR loWparam,HWND lParam);
240 VOID OnTimer(UINT id);