MQ2EQBC Mod for window mode

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

MQ2EQBC Mod for window mode

Post by dewey2461 » Mon Apr 01, 2019 6:02 am

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

User avatar
MacQ
Macro Author
Macro Author
Posts: 674
Joined: Sat Apr 02, 2005 2:39 pm

Re: MQ2EQBC Mod for window mode

Post by MacQ » Mon Apr 01, 2019 11:01 am

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?