 |
|
|
 |
|
 |
Hi, I'm a basic C, C++ programmer and I'm trying to do a toolbar project on my own by looking at others porjects and I'm having a some trouble understanding this toolbar's source code.
Is there any chance someone could explain it to me in an email or through MSN?
My MSN is nir_levanon_a@hotmail.com
Thanks.
|
|
|
|
 |
|
 |
Hi,
The bitmap in toolbar is working fine, but i came across two problems while using it.. One is when i am dragging the toolbar to the leftside of the window, the bit map is spreading across the entire width.
secondly when we drag the toolbar alone to the right(still on the top of the window)i see some gap in the place of image..
can u plz let me know how to rectify this.
Thanks in advance
Rgds,
Raju
|
|
|
|
 |
|
 |
Than You nicolas
-- modified at 17:45 Wednesday 28th December, 2005
|
|
|
|
 |
|
 |
How to display .gif file on the toolbar and react to user click?
it will be very nice to any program.:->
|
|
|
|
 |
|
 |
can I display .gif file on the toolbar ?
how ? tell me
|
|
|
|
 |
|
 |
You may use one of the image management class that are provided in codeproject to load the gif file. It should not be difficult, then to provide the toolbar required image format.
|
|
|
|
 |
|
 |
Anyone know is it possible on C# ?
If it is possible, how to do ?
Thank you
|
|
|
|
 |
|
 |
这个是不可能的,每一个语言都有自己的特定之处!
I thing it can't
|
|
|
|
 |
|
 |
Use the ToolStrip class.
"What's everyone so worked up about? So there's a comet -- big deal. It'll burn up in our atmosphere and what's ever left will be no bigger than a chihuahua's head." - Homer Simpson
|
|
|
|
 |
|
 |
the image on the toolbar dont show well ??
|
|
|
|
 |
|
 |
Hi, Good example.
I am think to display .gif file on the toolbar and react to user click -- something like the banner ads. Can anyone let me know how to do it using SDK or WTL?
Thanks,
Sam
|
|
|
|
 |
|
 |
You code is pretty gooood. But there is one problem that needs to be solved.
If the mouse is over any of the Toolbar buttons and you move the mouse out of the toolbar, the button never looses the focused image. i.e. it looks like the button is depressed.
How would you fix this, if you haven't?
Any help will be appreciated.
Thanks in Advance.
|
|
|
|
 |
|
 |
This is not directly related to this article but I thought you would know how to help me. I am trying to disable a toolbar button in a CTreeView MFC generated program. In MainFraim.cpp in the OnCreate function, I do the following:
CToolBarCtrl& tools = m_wndToolBar.GetToolBarCtrl();
tools.EnableButton(ID_ADD_PAGE,false);
The EnableButton function does nothing! Other functions like DeleteButton and Indeterminate work fine, but EnableButton doesn't work. Do I have to do something else to make this change go into effect?
Much Appreciated
Anthony
|
|
|
|
 |
|
 |
use the command UI's to enable/disable the buttons
void CMainFrame::OnUpdateMrbutton(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
if (m_MrBOOL) { pCmdUI->Enable(FALSE); } else { pCmdUI->Enable(TRUE); }
}
|
|
|
|
 |
|
 |
hello
yes it's a god idea, but i have a litle question
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
ON_UPDATE_COMMAND_UI(ID_XXXXX, OnUpdateMrbutton)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
what <button id> would you set in message map for ON_UPDATE_COMMAND_UI
how can you get ID_XXXXX
|
|
|
|
 |
|
 |
The background color of disabled buttons in toolbar becomes gray and loses it's image .I want the it's behaviour as normal application has. Pls help me to solve the problem. thanks prem
|
|
|
|
 |