Page 1 of 1

MQ2EQBC Mod for window mode

Posted: Mon Apr 01, 2019 6:02 am
by dewey2461
Would like to see this mod pushed to public version of MQ2EQBC.CPP. It restores the MQ2EQBC chat window to work the same way as before the the march 2019 UI changes.

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;
    };
    
    

Re: MQ2EQBC Mod for window mode

Posted: Mon Apr 01, 2019 11:01 am
by MacQ
Thanks dewey2461, it will be nice to see that pushed to the public version.

Previously I used a version of EQBC server on one of my Linux boxes, but for Windows, here is a suggestion...

When you launch MYSEQ server there is an option to allow it to automatically minimize at launch, would that be possible with EQBC server?