Originally posted by: chen
How to add/remove toolbars, also, add/remove/re-arrange buttons in a toolbar on the fly, like what IE and VC IDE does, ?
Thanks!
Reply
Originally posted by: Chen
void CMSDIThread::UpdateWindowMenu()
Always return NULL.
And this is caused by destroying the original menu and replaying it with MenuBar class.
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
Any suggestion?
Thanks for your attention and time
The problem is in
{
.....
CMenu* pMenu = m_pMainWnd->GetMenu();
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
GetMenu()->DestroyMenu();
SetMenu(NULL);
....
Reply
Originally posted by: chen
Use the Wizard to create a project under VC++.NET installed on XP. Since Michal Mecinski has included it in his files, you don't need to select Browser option for toolbar, which will bring in ReBars also.
Follow the steps in the article, with modifications:
1) Skip Step2, because the manifest file will be created by VC++.NET
2) In Step3, you need to modify not only _WIN32_WINNT, but also WINVER, _WIN32_WINDOWS, _WIN32_IE. The Platform SDK seemed to be included under VC++.NET, so I didn't need to do anything about it.
BTW, don't forget to add
#include "MenuBar.h"
#include "AlphaToolBar.h"
to MainFrm.h
Originally posted by: Appstmd
Hi!
I tried to use this code in a dialog-based application with a menu and a toolbar. The menubar and the toolbar are created without any error, but only the toolbar is displayed!
It seems that there is no error during the creation of the menubar. Does anyone got an idea?
Thks in advance.
Appstmd.
Originally posted by: xc
Like IE and VC IDE?
Reply
Originally posted by: Steffen Schmoll
The menu bar and the toolbars work great on all platforms, only on Win NT (SP6a) there occur problems: the commands of the menu don't work (after clicking a command nothing happens). Any idea? The sample application that can be downloaded also have these problems...
Thanks for help!
Originally posted by: Jurca Candin
Nice, work but I have a small problem :
I need one bar on each row of the CReBar.
Row 1 : MenuBar
Row 2 : Toolbar
I can't find a solution. When I resize the app the toolbar goes on the same row with MenuBar.
Everything else looks good, and who's using these libraries should apreciate your effort to improve the standard VC++ toolbars.
Thanks
Candin
Originally posted by: krkim
the menu and toolbar looks good like recent modern IE style.
but, i try your control in my project,
the runtime error, in CFileDialog MFC system class.
for more,,as following after DoModal().
your control is proper only blank project like sample .
CFileDialog dialog(TRUE,_T(""),NULL, OFN_HIDEREADONLY|OFN_EXPLORER|OFN_READONLY,szFilter);
dialog.m_ofn.lpstrTitle = szWork;
dialog.m_ofn.lpstrInitialDir = "";
if(dialog.DoModal()!=IDOK)
return;
Originally posted by: chen
I installed the platform SDK as you suggested, and confirm the include is in the header file. but I still get the following errors:
SPI_GETFLATMENU undeclared identifier
BTNS_BUTTONS undeclared identifier
BTNS_BUTTONS undeclared identifier
and many more like this.
Environment VS6.0, Win 98
THanks for your time!
ReplyOriginally posted by: Appstmd
Hi!
I get this message "Run-Time Check Failure #2 - Stack around the variable 'bmpi' was corrupted" in the CAlphaImageList::AddBitmap function when I run a debug version of my program. I'm using VS.NET and the last MSDN (October 2002). When I click Continue, the program runs anyway.
This problem doesn't occur with the release version of my program. Does anyone have a solution?
Thks in advance.
Appstmd