//\83R\83\81\83\93\83g\83r\83\85\81[\93à\82Ì\83R\83\93\83g\83\8d\81[\83\8b\83N\83\89\83X
///////////////////////////////////////////////////////////////////
+ CChatReadEdit::CChatReadEdit(CCommentView &m_master):m_master(m_master){
+
+
+ }
+
BOOL CChatReadEdit::SetWindowText(const CChatData &chat){
BOOL rslt = FALSE;
tstring viewString(regex_replace(tstring(chat.chatBuf),nliteregex::TAGSTRING,nliteregex::NUTHINGSTRING));
rslt = __super::SetWindowText(viewString.c_str());
+
+ CHARFORMAT2 defaultFormat;
+ this->GetDefaultCharFormat(defaultFormat);
+ defaultFormat.dwMask |= CFM_COLOR;
+ if(chat.premium == 2 || chat.premium == 3){
+
+ defaultFormat.crTextColor = m_master.viewproperty.ownerStringColor;
+ }
+
+ else {
+
+ defaultFormat.crTextColor = m_master.viewproperty.baseStringColor;
+
+ }
+
+ BOOL rslt = this->SetDefaultCharFormat(defaultFormat);
+
+
+
linkStringBeside(viewString,nliteregex::LILNKREGEX);
int point = -MulDiv(deflogFont.lfHeight,72,picy);
int twips = point * 20;
m_defCharFormat.yHeight = twips;
+ m_defCharFormat.dwEffects ^= CFE_AUTOCOLOR;
_tcscpy(m_defCharFormat.szFaceName,deflogFont.lfFaceName);
this->SetEventMask(eventMask);
}
CChatChildCtrls::CChatChildCtrls(CCommentView &hMaster):
- m_master(hMaster)
+ m_master(hMaster),
+ chatDispCtrl(hMaster)
{
return;
drowSize.bottom = 0;
- CChatReadEdit cedit;
+ CChatReadEdit cedit(self);
cedit.GeneralCreate(*this,ENM_REQUESTRESIZE,CALCEDIT_ID);
cedit.Reset();
friend CCommentListWindow;
friend CChatChildCtrls;
+ CCommentView &m_master;
+
+
BEGIN_MSG_MAP(CChatReadEdit)
END_MSG_MAP()
-
+ CChatReadEdit(CCommentView &m_master);
BOOL SetWindowText(const CChatData &str);
VOID Reset();
friend CChatChildCtrlsList;
private:
CChatReadEdit chatDispCtrl;
- CHyperLink noDispCtrl;
- CHyperLink userNameDispCtrl;
+// CHyperLink noDispCtrl;
+// CHyperLink userNameDispCtrl;
CCommentView &m_master;
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:
selectSellLineColor(PALETTERGB(255,0,0)),
normalSellLineColor( PALETTERGB(0,0,0)),
colLineColor(PALETTERGB(224,224,224)),
- linkStringColor(PALETTERGB(30,140,255))
+ linkStringColor(PALETTERGB(30,140,255)),
+ ownerStringColor(PALETTERGB(255,0,0))
{
for(INT_PTR orderIndex = 0;orderIndex < ARRAY_LENGTH(headerOrderArray);orderIndex++){
NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.selectSellLineColor);
NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.colLineColor);
NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.normalSellLineColor);
-
-
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.ownerStringColor);
+
pWriter->WriteEndElement();
NLITE_R_X_P_I(nliteProperty,cvp,selectSellLineColor);
NLITE_R_X_P_I(nliteProperty,cvp,normalSellLineColor);
NLITE_R_X_P_I(nliteProperty,cvp,colLineColor);
+ NLITE_R_X_P_I(nliteProperty,cvp,ownerStringColor);
+
break;
case Node::GeneralProperty:
NLITE_R_X_P_I(nliteProperty,gp,activeCountTimeFlag);
COLORREF selectSellLineColor; //\91I\91ð\8e\9e\82Ì\98g\90ü
COLORREF normalSellLineColor; //\92Ê\8fí\8e\9e\82Ì\98g\90ü
COLORREF baseStringColor; //\8aî\92ê\82Ì\95¶\8e\9a\90F
+ COLORREF ownerStringColor; //\89^\89c\95¶\8e\9a\90F
COLORREF linkStringColor; //\8aî\92ê\82Ì\83n\83C\83p\81[\83\8a\83\93\83N\82Ì\90F
COLORREF anonymousIDLinkColor; //\93½\96¼ID\95\\8e¦\90F
COLORREF colLineColor; //\8d\80\96Ú\82Ì\8fc\90ü
#define WIN32_LEAN_AND_MEAN // Windows \83w\83b\83_\81[\82©\82ç\8eg\97p\82³\82ê\82Ä\82¢\82È\82¢\95\94\95ª\82ð\8f\9c\8aO\82µ\82Ü\82·\81B
#define _CRT_SECURE_NO_WARNINGS 1 //vc++\82Ì\82¨\82¹\82Á\82©\82¢\82È\8cx\8d\90\82ð\8fÁ\82·
#define _CRT_NON_CONFORMING_SWPRINTFS 1 //vc++\82Ì\82¨\82¹\82Á\82©\82¢\82È\8cx\8d\90\82ð\8fÁ\82·
-#define USE_STUB //\83X\83^\83u\82ð\8eg\97p\82·\82é\8fê\8d\87\82Í\83R\83\81\83\93\83g\83A\83E\83g\82ð\89ð\8f\9c\82·\82é
+//#define USE_STUB //\83X\83^\83u\82ð\8eg\97p\82·\82é\8fê\8d\87\82Í\83R\83\81\83\93\83g\83A\83E\83g\82ð\89ð\8f\9c\82·\82é
#define WINDEBUGER_NOPRINTING //\83f\83o\83b\83O\8fo\97Í\82ð\83R\83\93\83\\81[\83\8b\82É\95\\8e¦\82µ\82½\82\82È\82¢\8fê\8d\87\92è\8b`\82·\82é
#define _WTL_NO_CSTRING