c++ - Is there a limit on number of characters displayed in a status bar using SB_SETTEXT? -


i'm trying display long string in status bar using mfc code so:

// i've set 1 pane in status bar using cstatusbar::setindicators()  pframewnd->m_wndstatusbar.setpanetext( 0, sztext, true ); 

but string displayed in status bar gets truncated 127 chars.

since mfc class member cstatusbar::setpanetext() internally uses message sb_settext, want know if there limit on number characters can display in status bar using sb_settext?

i googled , found discussion forums stating there indeed limit not single 1 of them had reference msdn documentation stating same.

so, please provide msdn link support answer if there exists limit on number of characters?

also, if indeed there's limit, there way can around , display more number of characters in single pane in status bar?

an educated guess: issue these controls internally limited 32k characters because internally limited 64k bytes. few cases win3.1 legacy (or win95) shows up. of windows supported real mode draw memory called local heap. can't find info actual control here another one.

the notice sb_setparts limits number of parts of status bar 255, simple math indicate 127 = 32k/256 plausible limit per part. 1 imagine handle more dynamic allocation deal, 1 imagine sort of corner cases cause.

my guess there no way draw more using control. suggest roll own, possibly sub-classing 'static' one.

ok, there 1 other thing can try kicks. try on ansi program, might able 255 ansi chars per pane.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -