Toolbars and Dialogs
-
Hi, Is there anything diferent in working with toolbars in dialogs? I am trying to put a toolbar in a dialog and it doesn't appear although I didn't get any error. The code is if (!m_wndLowerButtons.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndLowerButtons.LoadToolBar(IDR_LOWER)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.
-
Hi, Is there anything diferent in working with toolbars in dialogs? I am trying to put a toolbar in a dialog and it doesn't appear although I didn't get any error. The code is if (!m_wndLowerButtons.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndLowerButtons.LoadToolBar(IDR_LOWER)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.
See this URL: http://www.codeguru.com/dialog/toolbars.shtml "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
-
See this URL: http://www.codeguru.com/dialog/toolbars.shtml "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
Thank you ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.