Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

Help -> floating bar is not being displayed correctly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
buliwyf_23 - 04 Mar 2005 23:47 GMT
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.
Carl Daniel [VC++ MVP] - 05 Mar 2005 00:02 GMT
> I have this:
>
[quoted text clipped - 8 lines]
> cCoolBar->EnableDocking(0);
> FloatControlBar(cCoolBar, pt);

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

-cd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.