I removed default hover behavior in my toolbar. Can I get it back?
-
Hi, I have a CToolbar and somehow managed to cause the buttons in the toolbar to not have a box drawn around them when the user's mouse is positioned over them. Is there an easy way to get this behavior back? I don't know how I managed to remove this behavior, that's why I have no idea how to put it back in. Thanks, Max
-
Hi, I have a CToolbar and somehow managed to cause the buttons in the toolbar to not have a box drawn around them when the user's mouse is positioned over them. Is there an easy way to get this behavior back? I don't know how I managed to remove this behavior, that's why I have no idea how to put it back in. Thanks, Max
maxmaven wrote:
I don't know how I managed to remove this behavior
:) Try this style TBSTYLE_FLAT.
Nibu thomas A Developer Programming tips[^] My site[^]
-
maxmaven wrote:
I don't know how I managed to remove this behavior
:) Try this style TBSTYLE_FLAT.
Nibu thomas A Developer Programming tips[^] My site[^]
-
I already have this style. I think I know more about what the problem is now: My buttons are *disabled*. Is there a way in the toolbar editor to set a button to be enabled? Max
I see what is going on! If I do not assign the button an ID like "ID_APP_ABOUT", the button is disabled. It looks like the ID must match one of the symbols in the resource symbols list. I have two more questions about this: How do I make a new symbol, should I be using a wizard? How do I add an entry to the message map? (use a wizard?) By this, I mean the list below BEGIN_MESSAGE_MAP(MyApp, CWinApp) ON_COMMAND(ID_APP_ABOUT, &MyApp::OnAppAbout) // Standard file based document commands ON_COMMAND(ID_FILE_NEW, &CWinApp::OnFileNew) ON_COMMAND(ID_FILE_OPEN, &CWinApp::OnFileOpen) // Standard print setup command ON_COMMAND(ID_FILE_PRINT_SETUP, &CWinApp::OnFilePrintSetup) END_MESSAGE_MAP()
-
I see what is going on! If I do not assign the button an ID like "ID_APP_ABOUT", the button is disabled. It looks like the ID must match one of the symbols in the resource symbols list. I have two more questions about this: How do I make a new symbol, should I be using a wizard? How do I add an entry to the message map? (use a wizard?) By this, I mean the list below BEGIN_MESSAGE_MAP(MyApp, CWinApp) ON_COMMAND(ID_APP_ABOUT, &MyApp::OnAppAbout) // Standard file based document commands ON_COMMAND(ID_FILE_NEW, &CWinApp::OnFileNew) ON_COMMAND(ID_FILE_OPEN, &CWinApp::OnFileOpen) // Standard print setup command ON_COMMAND(ID_FILE_PRINT_SETUP, &CWinApp::OnFilePrintSetup) END_MESSAGE_MAP()