By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,167 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,167 IT Pros & Developers. It's quick & easy.

Help -> floating bar is not being displayed correctly

P: n/a
I have this:

CSize sz;

sz.cx = dwOutX1;
sz.cy = dwOutY1;

CPoint pt(sz);

ClientToScreen(&pt);
cCoolBar->EnableDocking(0);
FloatControlBar(cCoolBar, pt);

cCoolBar is CControlBar type. dwOutX1 and dwOutY1 values are being
opened from the registry.

I'm trying to display the bar in a "floating" state... but I can't...
It is displayed an error message with an assert error... When it is
compiling the floating bar is displayed when the app is loading...
and after that it crashes... As our app has 5 different frames inside
a Mainframe, it seems to me that the focus is setted on the floating
bar... and when the app tries to create the other windows it can't
beacuse the floating bar is not the mainframe window...

the code that I put above is inside the mainframe class that is a
CFrameWnd... where the registry values are being opened.

Thnx anyway.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
buliwyf_23 wrote:
I have this:

CSize sz;

sz.cx = dwOutX1;
sz.cy = dwOutY1;

CPoint pt(sz);

ClientToScreen(&pt);
cCoolBar->EnableDocking(0);
FloatControlBar(cCoolBar, pt);


I'd suggest posting this in microsoft.public.vc.mfc

-cd

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.