Specific changes are BitON() for resizeborder, minimize and sets the background window and mimic those done for MQ2ChatWnd.cpp.
Here is the complete constructor to make it easier to copy / paste.
Code: Select all
CEQBCWnd(CXStr* Template) : CCustomWnd(Template)
{
iCurCommand = -1;
SetWndNotification(CEQBCWnd);
StmlOut = (CStmlWnd *)GetChildItem("CW_ChatOutput");
BitOff(WindowStyle, CWS_TRANSPARENT);
BitOn(WindowStyle, CWS_RESIZEBORDER);
BitOn(WindowStyle, CWS_TITLE);
BitOn(WindowStyle, CWS_MINIMIZE);
BGColor = 0xFF000000;//black background
OutWnd = (CXWnd*)StmlOut;
OutWnd->Clickable = 1;
OutStruct = (_CSIDLWND *)GetChildItem("CW_ChatOutput");
InputBox = (CTextEntryWnd*)GetChildItem("CW_ChatInput");
InputBox->WindowStyle |= 0x800C0;
InputBox->CRNormal |= 0xFFFFFFFF;
CloseOnESC = 0;
InputBox->SetMaxChars(512);
BitOff(WindowStyle, CWS_CLOSE);
// *(unsigned long*)&(((char*)StmlOut)[EQ_CHAT_HISTORY_OFFSET]) = 400;
StmlOut->MaxLines = 400;
};

