示例#1
0
 CMQChatWnd(CXStr *Template):CCustomWnd(Template) 
 { 
     DebugSpew("CMQChatWnd()");
     SetWndNotification(CMQChatWnd); 
     InputBox=(CTextEntryWnd*)GetChildItem("CWChatInput"); 
     InputBox->WindowStyle|=0x800C0; 
     BitOff(WindowStyle,CWS_CLOSE); 
     InputBox->UnknownCW|=0xFFFFFFFF; 
     InputBox->SetMaxChars(512); 
     OutputBox=(CStmlWnd*)GetChildItem("CWChatOutput"); 
     OutStruct=(_CSIDLWND*)GetChildItem("CWChatOutput");
     OutWnd=(CXWnd*)OutputBox;
     OutBoxLines=0; 
     *(DWORD*)&(((PCHAR)OutputBox)[EQ_CHAT_HISTORY_OFFSET])=0x190; 
     OutputBox->Clickable=1; 
     iCurrentCmd=-1;
 } 
示例#2
0
    CMQChatWnd(CXStr *Template):CCustomWnd(Template) 
    { 
        DebugSpew("CMQChatWnd()");
        SetWndNotification(CMQChatWnd);
		BGColor = 0xFF000000;//black background
        InputBox=(CTextEntryWnd*)GetChildItem("CWChatInput"); 
        InputBox->WindowStyle|=0x800C0; 
        BitOff(WindowStyle,CWS_CLOSE); 
        InputBox->CRNormal=0xFFFFFFFF;//we want a white cursor 
        InputBox->SetMaxChars(512); 
        OutputBox=(CStmlWnd*)GetChildItem("CWChatOutput"); 
        OutStruct=(_CSIDLWND*)GetChildItem("CWChatOutput");
		//fix for the 0 parent crash at charselect when clicking the children...
		//wow it only took us 13 years to fix that one... -eqmule
		OutStruct->pParentWindow = (_CSIDLWND *)this;
		OutputBox->pParentWindow = (_CSIDLWND *)this;
		InputBox->pParentWindow = (_CSIDLWND *)this;
        OutWnd=(CXWnd*)OutputBox;
        OutBoxLines=0; 
        *(DWORD*)&(((PCHAR)OutputBox)[EQ_CHAT_HISTORY_OFFSET])=0x190; 
        OutputBox->Clickable=1; 
        iCurrentCmd=-1;
		ZLayer = 1; // Make this the topmost window (we will leave it as such for charselect, and allow it to move to background ingame)
    }