c++ - change text of CMFCRibbonStatusBar but first character and three dot shown (like "C...") -


in project (vc++,mfc,2010) , want change status bar text.

the variable is:

cmfcribbonstatusbar  m_wndstatusbar; 

the code is:

{      cstring strtitlepane1=_t("");      m_wndstatusbar.addelement(new cmfcribbonstatusbarpane(id_statusbar_pane1, strtitlepane1,true), strtitlepane1);     m_wndstatusbar.getelement(0)->settext(_t("connecting"));  } 

but see in status bar : c...

what problem?

after you've created cmfcribbonstatusbarpane, need set expected maximum text size calling cmfcribbonstatusbarpane::setalmostlargetext.

for example:

cstring strtitlepane1=_t("");  cmfcribbonstatusbarpane* ppane = new cmfcribbonstatusbarpane(id_statusbar_pane1,                                                   strtitlepane1,true); ppane.setalmostlargetext(_t("connecting"));  m_wndstatusbar.addelement(ppane, strtitlepane1); m_wndstatusbar.getelement(0)->settext(_t("connecting")); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -