I solved in this way, if someone interested to fix it or suggest other way
@mulestatusbarctrl.h
enum EStatusBarPane { SBarLog = 0, SBarUsers, SBarUpDown, SBarConnected, SBarChatMsg, //-> ADD SBarUSS //<- };
@mulestatusbarctrl.cpp
switch (iPane) { [...] case SBarChatMsg: theApp.emuledlg->SetActiveDialog(theApp.emuledlg->chatwnd); break; //-> ADD case SBarUSS: theApp.emuledlg->ShowPreferences(IDD_PPG_TWEAKS); break; //<- }
@emuledlg.cpp
void CemuleDlg::ShowPing() { if (IsWindowVisible()) { [....] } statusbar->SetText(buffer, SBarUSS, 0); //-> CHANGE } } void CemuleDlg::SetStatusBarPartsSize() { CRect rect; statusbar->GetClientRect(&rect); int ussShift = 0; if(thePrefs.IsDynUpEnabled()) { if (thePrefs.IsDynUpUseMillisecondPingTolerance()) ussShift = 68; //->CHANGE else ussShift = 113; //->CHANGE } int aiWidths[6] = //->CHANGE { rect.right - 675 - ussShift, rect.right - 440 - ussShift, rect.right - 250 - ussShift, rect.right - 25 - ussShift, rect.right - ussShift, //-> ADD -1 //<- }; statusbar->SetParts(_countof(aiWidths), aiWidths); }