OSDN Git Service

エラー処理途中まで
[nlite/nlite.git] / nlite / nlite_commentview.h
index 981b5c0..1b2887b 100644 (file)
@@ -33,17 +33,30 @@ namespace nlite{
                friend CCommentListWindow;
                friend CChatChildCtrls;
 
+               CCommentView &m_master;
+
+
                BEGIN_MSG_MAP(CChatReadEdit)
 
                END_MSG_MAP()
-
+               CChatReadEdit(CCommentView &m_master);
                BOOL SetWindowText(const CChatData &str);
 
+               ///
+               ///\93à\97e\82ð\83\8a\83Z\83b\83g
+               //
                VOID Reset();
 
+
+               ///
+               ///\83\8a\83\93\83N\95\\8e¦\95\8e\9a\97ñ\82ð\8c\88\92è
+               ///
                VOID linkStringBeside(const tstring &target,const nliteregex::tregex &re);
-               
 
+
+               ///
+               ///\82±\82Ì\83A\83v\83\8a\83P\81[\83V\83\87\83\93\82É\82¨\82¯\82é\94Ä\97p\93I\82È\83E\83B\83\93\83h\83E\8dì\90¬\8aÖ\90\94
+               ///
                HWND GeneralCreate(HWND hParent,DWORD eventMask,UINT id);
        };
 
@@ -52,10 +65,8 @@ namespace nlite{
                friend CChatChildCtrlsList;
        private:
                CChatReadEdit chatDispCtrl;
-               CHyperLink noDispCtrl;
-               CHyperLink userNameDispCtrl;
                CCommentView &m_master;
-               
+
 
        private:
 
@@ -65,12 +76,12 @@ namespace nlite{
                        CHAT_DISPCTRL_ID = 30000000
 
                };
-               
+
                ///
                ///\83R\83\93\83X\83g\83\89\83N\83^
                ///
                CChatChildCtrls(CCommentView &hMaster);
-               
+
                ///
                ///\8ew\92è\82µ\82½\8d\82\82³\82É\83R\83\93\83g\83\8d\81[\83\8b\82ð\83Z\83b\83g
                ///
@@ -91,30 +102,31 @@ namespace nlite{
 
        };
 
-
+       ///
+       ///\83R\83\81\83\93\83g\95\\8e¦\83E\83B\83\93\83h\83E\82Ì\8eq\83E\83B\83\93\83h\83E\83\8a\83X\83g
+       ///
        class CChatChildCtrlsList{
                friend CCommentView;
                friend CCommentListWindow;
                friend CChatChildCtrls;
-               
+
        private:
                typedef std::list<CChatChildCtrls> InternalList;
 
-               InternalList m_list;
-               CCommentView &m_hMaster;
-               RECT rcBuf;
+               InternalList m_list;                                                            //\93à\95\94\82Å\8aÇ\97\9d\82·\82é\83\8a\83X\83g
+               CCommentView &m_hMaster;                                                        //\82±\82Ì\83E\83B\83\93\83h\83E\82ð\8f\8a\97L\82µ\82Ä\82¢\82é\90e\83E\83B\83\93\83h\83E
 
 
        private:
                typedef InternalList::reference reference;
                typedef InternalList::iterator iterator;
-               
+
                ///
                ///\83R\83\93\83X\83g\83\89\83N\83^
                ///
                CChatChildCtrlsList(CCommentView &hMaster);
 
-       
+
 
                ///
                ///\83R\83\93\83g\83\8d\81[\83\8b\82ð\95\\8e¦
@@ -136,28 +148,27 @@ namespace nlite{
 
        };
 
-       
+
        //\83R\83\81\83\93\83g\95\\8e¦\97p\83E\83B\83\93\83h\83E
        class CCommentListWindow:public CWindowImpl<CCommentListWindow>{
 
                friend CCommentView;
                friend CChatChildCtrls;
                friend CChatChildCtrlsList;
-               
-               
+
+
                //\83\81\83\93\83o
        private:
                CCommentView &self;
                UINT_PTR viewSellHeight;
                CPen collLinePen;                                                                                                       //\8d\80\96Ú\8fc\90ü\95`\89æ\97p\83y\83\93
-               CPen normalSellLinePen;                                                                                                 //\98g\90ü\95`\89æ\97p\83y\83\93
-               CBrush normalBkBrush;                                                                                                           //\94w\8ci\95`\89æ\97p\83u\83\89\83V
-               CPen selectSellLinePen;                                                                                                 //\98g\90ü\95`\89æ\97p\83y\83\93
-               CBrush selectBkBrush;                                                                                                           //\94w\8ci\95`\89æ\97p\83u\83\89\83V
-               CFont linkFont;
-               CAddToMyListWindow addToMyListWindow;                                                           //\83}\83C\83\8a\83X\83g\93o\98^\97p\83E\83B\83\93\83h\83E
-
-               //\83\8a\83\93\83N\95\8e\9a\97ñ\97p\82Ì\83t\83H\83\93\83g
+               CPen normalSellLinePen;                                                                                         //\98g\90ü\95`\89æ\97p\83y\83\93
+               CBrush normalBkBrush;                                                                                           //\94w\8ci\95`\89æ\97p\83u\83\89\83V
+               CPen selectSellLinePen;                                                                                         //\98g\90ü\95`\89æ\97p\83y\83\93
+               CBrush selectBkBrush;                                                                                           //\94w\8ci\95`\89æ\97p\83u\83\89\83V
+               CFont linkFont;                                                                                                         //\83\8a\83\93\83N\95\8e\9a\97ñ\82Ì\83t\83H\83\93\83g
+
+
                enum {
                        CALCEDIT_ID = 100
 
@@ -165,7 +176,7 @@ namespace nlite{
 
        public:
 
-               
+
                DECLARE_WND_CLASS(commentViewConstant::NLITE_COMMENTLISTWINDOW)
 
 
@@ -178,7 +189,6 @@ namespace nlite{
                        MSG_WM_CREATE(OnCreate)
                        MSG_WM_ERASEBKGND(OnEraseBkGnd)
                        MSG_WM_MOUSEWHEEL(OnMouseWheel)
-//                     MSG_WM_DESTROY(OnDestroy)
                        MSG_WM_PAINT(OnPaint)
                        MSG_WM_SIZE(OnSize)
                        MSG_WM_KEYDOWN(OnKeyDown)
@@ -203,6 +213,8 @@ namespace nlite{
                ~CCommentListWindow();
 
 
+
+
                ///
                ///\83v\83\8d\83p\83e\83B\90Ý\92è\8e\9e\82Ì\8f\88\97\9d
                ///
@@ -223,8 +235,11 @@ namespace nlite{
                ///
                VOID ShowCurSel();
 
+               ///
+               ///\83`\83\83\83b\83g\95\8e\9a\97ñ\95\\8e¦\97Ì\88æ\8cv\8eZ
+               ///
                VOID CalcChatRect(const CDC &cdc,RECT &rc,const CNLiteString &str);
-               
+
 
                //\83v\83\89\83C\83x\81[\83g\8aÖ\90\94
        private:
@@ -238,9 +253,9 @@ namespace nlite{
                ///\95`\89æ\8d\82\82³\82ð\83\8a\83Z\83b\83g
                ///
                VOID ResetViewSellHeight();
-               
 
-               
+
+
 
                ///
                ///\83N\83\8a\83b\83N\82µ\82½\8ds\82ð\8cv\8eZ
@@ -254,7 +269,7 @@ namespace nlite{
 
                //\83\81\83b\83Z\81[\83W\83n\83\93\83h\83\89
        private:
-               
+
                ///
                ///\83E\83B\83\93\83h\83E\8dì\90¬\8e\9e\82Ì\8f\88\97\9d
                ///
@@ -315,10 +330,14 @@ namespace nlite{
                ///
                LRESULT OnChatControlNortify(LPNMHDR lParam);
 
+
+               ///
+               ///\83Z\83\8b\82Ì\83T\83C\83Y\82ð\8cv\8eZ
+               ///
                LRESULT OnCalcSellSize(LPNMHDR lParam);
-               
+
        };
-       
+
        ///
        ///\83R\83\81\83\93\83g\83r\83\85\81[\83N\83\89\83X
        ///
@@ -327,6 +346,7 @@ namespace nlite{
                friend CCommentListWindow;                                              //\83t\83\8c\83\93\83h\90é\8c¾
                friend CChatChildCtrlsList;
                friend CChatChildCtrls;
+               friend CChatReadEdit;
                //\83v\83\89\83C\83x\81[\83g\8c^\81E\83N\83\89\83X\92è\8b`
        private:
 
@@ -339,32 +359,31 @@ namespace nlite{
 
                }HEADERSINFO,*LPHEADERSINFO;
 
-               
-               
 
-               
+
+
+
 
                //\83\81\83\93\83o\90é\8c¾
        private:
 
                CHeaderCtrl m_header;                                           //\83w\83b\83_\81[\83R\83\93\83g\83\8d\81[\83\8b
                CCommentListWindow  m_commentListWindow;        //\83R\83\81\83\93\83g\83\8a\83X\83g\83E\83B\83\93\83h\83E
-               CNicoLiveStream &stream;                                //\95ú\91\97\83I\83u\83W\83F\83N\83g
+               CNicoLiveStream &stream;                                        //\95ú\91\97\83I\83u\83W\83F\83N\83g
                GeneralProperty generalProperty;                        //\88ê\94Ê\90Ý\92è
                CCommentList commentlist;                                       //\83R\83\81\83\93\83g\83\8a\83X\83g
                CommentViewProperty viewproperty;                       //\95\\8e¦\83v\83\8d\83p\83e\83B
                HFONT hHeaderFontNew;                                           //\83w\83b\83_\81[\83t\83H\83\93\83g
                CNicoVideoAuth &refAuth;                                        //\83j\83R\83j\83R\90\95ú\91\97\94F\8fØ\83I\83u\83W\83F\83N\83g\8eQ\8fÆ
+               CChatChildCtrlsList chatChildCtrlsList;         //\8eq\83E\83B\83\93\83h\83E\83\8a\83X\83g
+
+
+
 
-               CChatChildCtrlsList chatChildCtrlsList;
 
-               
 
 
-               
-               
 
-               
        public:
 
                enum{
@@ -375,24 +394,28 @@ namespace nlite{
                        INFO
 
                };
-               
+
                ///
                ///\83R\83\93\83X\83g\83\89\83N\83^
                ///
                CCommentView(CNicoLiveStream &stream,CNicoVideoAuth &refAuth);
-               
+
                ///
                ///\83f\83X\83g\83\89\83N\83^
                ///
                ~CCommentView();
 
-               
+               ///
+               ///\83E\83B\83\93\83h\83E\8dX\90V
+               ///
+               VOID UpDateUI();
+
 
                //
                //\83E\83B\83\93\83h\83E\83N\83\89\83X\90é\8c¾
                //
                DECLARE_WND_CLASS_EX(commentViewConstant::NLITE_COMMENTVIEW,0,COLOR_BACKGROUND)
-               
+
                //
                //\83\81\83b\83Z\81[\83W\83}\83b\83v
                //
@@ -402,6 +425,8 @@ namespace nlite{
                        MSG_WM_SIZE(OnSize)
                        MSG_WM_HSCROLL(OnHScroll)
                        MSG_WM_VSCROLL(OnVScroll)
+                       MESSAGE_HANDLER_EX(UM_CLICK_CHATNO,OnClickChatNo)
+                       MESSAGE_HANDLER_EX(UM_CLICK_USERNAME,OnClickUserName)
                        MSG_WM_ERASEBKGND(OnEraseBkgnd)
                        NOTIFY_CODE_HANDLER_EX(HDN_ENDTRACK   ,OnHeaderEndTrack)
                        NOTIFY_CODE_HANDLER_EX(HDN_ENDDRAG  ,OnHeaderEndDrag)
@@ -416,7 +441,7 @@ namespace nlite{
                ///\83v\83\8d\83p\83e\83B\8eæ\93¾
                ///
                CommentViewProperty &GetProperty();
-               
+
                ///
                ///\83E\83B\83\93\83h\83E\8dì\90¬
                ///
@@ -441,7 +466,7 @@ namespace nlite{
                ///\83`\83\83\83b\83g\83R\83\81\83\93\83g\8eó\90M\8am\92è\8f\88\97\9d
                ///
                VOID OnChatReceveSettle(UINT_PTR commentCount,UINT_PTR commentCountSum);
-               
+
 
 
                //\83v\83\89\83C\83x\81[\83g\8aÖ\90\94
@@ -452,7 +477,7 @@ namespace nlite{
                ///\83w\83b\83_\92Ç\89Á
                ///
                VOID AddHeader(LPHEADERSINFO infos);
-               
+
                ///
                ///\83w\83b\83_\82Ì\89¡\95\9d\8c\88\92è
                ///
@@ -467,26 +492,37 @@ namespace nlite{
                //\83E\83B\83\93\83h\83E\83\81\83b\83Z\81[\83W\83n\83\93\83h\83\89
        private:
 
-               
+
 
                ///
                ///\83T\83C\83Y\95Ï\8dX\8cã\8f\88\97\9d
                ///
                LRESULT OnSize(UINT wParam,SIZE lParam);
 
-               
-               
+
+
+               ///
+               ///\83r\83\85\81[\83A\82É\95\\8e¦\82³\82ê\82Ä\82¢\82é\83R\83\81\94Ô\82ª\83N\83\8a\83b\83N\82³\82ê\82½\8e\9e\82Ì\8f\88\97\9d
+               ///
+               LRESULT OnClickChatNo(UINT uMsg,WPARAM wParam,LPARAM lParam);
+
+
+               ///
+               ///\83r\83\85\81[\83A\82É\95\\8e¦\82³\82ê\82Ä\82¢\82é\83\86\81[\83U\96¼\82ª\83N\83\8a\83b\83N\82³\82ê\82½\8e\9e\82Ì\8f\88\97\9d
+               ///
+               LRESULT OnClickUserName(UINT uMsg,WPARAM wParam,LPARAM lParam);
+
 
                ///
                ///\94w\8ci\93h\82è\82Â\82Ô\82µ\8f\88\97\9d
                ///
                LRESULT OnEraseBkgnd(HDC wParam);
-               
+
                ///
                ///\83E\83B\83\93\83h\83E\94j\8aü\8e\9e\82Ì\8f\88\97\9d
                ///
                VOID OnDestroy();
-               
+
                ///
                ///\83w\83b\83_\83A\83C\83e\83\80\95Ï\8dX\8e\9e\8f\88\97\9d
                ///
@@ -504,7 +540,7 @@ namespace nlite{
                ///\89¡\83X\83N\83\8d\81[\83\8b\8e\9e\82Ì\8f\88\97\9d
                ///
                VOID OnHScroll(INT_PTR loWParam,SHORT hiWParam,HWND lParam);
-               
+
                ///
                ///\8fc\83X\83N\83\8d\81[\83\8b\8e\9e\82Ì\8f\88\97\9d
                ///
@@ -514,13 +550,7 @@ namespace nlite{
                ///\8dì\90¬\8e\9e\82Ì\8f\88\97\9d
                ///
                LRESULT OnCreate(LPCREATESTRUCT lpcs);
-               
-               
-               
-               
-               
-
 
        };
-       
+
 }