15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


CFrameWnd::LoadBarState and floating bars problem

mzinner@berlin.snafu.de
Friday, March 28, 1997


Environment:  NT 4.0, VC++ 4.2b

I have problems using LoadBarState() if one of my toolbars is 
floating. This problem is reproducable with (almost) no user code, so 
I think it's not specific to my app.

Try this: build a default SDI app with one additional menu entry 
which does a couple (say: 5) of SaveBarState()/LoadBarState() pairs. 
start and try the menu entry: works fine. Now, float one control bar 
and try again. Now it will take longer, and the ini file (where the 
bar entries are stored) will grow _exponentially_.

For floating bars, LoadBarState() does not RELOAD the state, but ADD 
it to the current one.

Anyone else experienced this? Did this change in 5.0?

thanks,

-manfred



Mike Blaszczak -- mikeblas@nwlink.com
Sunday, March 30, 1997

At 09:24 3/28/97 +0000, mzinner@berlin.snafu.de wrote:

>Try this: build a default SDI app with one additional menu entry 
>which does a couple (say: 5) of SaveBarState()/LoadBarState() pairs. 
>start and try the menu entry: works fine. Now, float one control bar 
>and try again. Now it will take longer, and the ini file (where the 
>bar entries are stored) will grow _exponentially_.
> [...]
>Anyone else experienced this? Did this change in 5.0?

Unfortunately not. It's a known bug that we've not had a
chance to fix.

That's why it's like working at the post office: you fix a couple of
hundred bugs and nobody thanks you and just goes on to complain about
one of the few bugs you didn't manage to get to.


.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
       One is too many and a million is not enough.



AlcocerW@andovercontrols.com
Monday, March 31, 1997

I had the same problem.  It went away when my toolbars came from
bitmaps, not from a toolbar resource.  A while ago, I reported the
problem to Microsoft, it's suppose to be fixed with VC++ 5.0, but I
haven't tried.

Good luck.

>----------
>From: 	mzinner@berlin.snafu.de[SMTP:mzinner@berlin.snafu.de]
>Sent: 	Friday, March 28, 1997 4:24 AM
>To: 	mfc-l@netcom.com
>Subject: 	CFrameWnd::LoadBarState and floating bars problem
>
>
>Environment:  NT 4.0, VC++ 4.2b
>
>I have problems using LoadBarState() if one of my toolbars is 
>floating. This problem is reproducable with (almost) no user code, so 
>I think it's not specific to my app.
>
>Try this: build a default SDI app with one additional menu entry 
>which does a couple (say: 5) of SaveBarState()/LoadBarState() pairs. 
>start and try the menu entry: works fine. Now, float one control bar 
>and try again. Now it will take longer, and the ini file (where the 
>bar entries are stored) will grow _exponentially_.
>
>For floating bars, LoadBarState() does not RELOAD the state, but ADD 
>it to the current one.
>
>Anyone else experienced this? Did this change in 5.0?
>
>thanks,
>
>-manfred
>



Mike Blaszczak -- mikeblas@nwlink.com
Monday, March 31, 1997

[Mini-digest: 2 responses]

At 08:39 3/31/97 -0500, AlcocerW@andovercontrols.com wrote:

>I had the same problem.  It went away when my toolbars came from
>bitmaps, not from a toolbar resource.  A while ago, I reported the
>problem to Microsoft, it's suppose to be fixed with VC++ 5.0, but I
>haven't tried.

Really?  Who told you that the bug was going to be fixed in VC++ 5.0?


.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
       One is too many and a million is not enough.
-----From: "Kenneth A. Argo" 

It has been fixed since 4.2, 5.0 also works.

Ken


-----Original Message-----
From:	AlcocerW@andovercontrols.com [SMTP:AlcocerW@andovercontrols.com]
Sent:	Monday, March 31, 1997 8:39 AM
To:	mfc-l@netcom.com
Cc:	mfc-l@netcom.com
Subject:	RE: CFrameWnd::LoadBarState and floating bars problem

I had the same problem.  It went away when my toolbars came from
bitmaps, not from a toolbar resource.  A while ago, I reported the
problem to Microsoft, it's suppose to be fixed with VC++ 5.0, but I
haven't tried.

Good luck.

>----------
>From: 	mzinner@berlin.snafu.de[SMTP:mzinner@berlin.snafu.de]
>Sent: 	Friday, March 28, 1997 4:24 AM
>To: 	mfc-l@netcom.com
>Subject: 	CFrameWnd::LoadBarState and floating bars problem
>
>
>Environment:  NT 4.0, VC++ 4.2b
>
>I have problems using LoadBarState() if one of my toolbars is 
>floating. This problem is reproducable with (almost) no user code, so 
>I think it's not specific to my app.
>
>Try this: build a default SDI app with one additional menu entry 
>which does a couple (say: 5) of SaveBarState()/LoadBarState() pairs. 
>start and try the menu entry: works fine. Now, float one control bar 
>and try again. Now it will take longer, and the ini file (where the 
>bar entries are stored) will grow _exponentially_.
>
>For floating bars, LoadBarState() does not RELOAD the state, but ADD 
>it to the current one.
>
>Anyone else experienced this? Did this change in 5.0?
>
>thanks,
>
>-manfred
>




Become an MFC-L member | Вернуться в корень Архива |