Click here to Skip to main content
15,914,413 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ multiplication Pin
Andrew Admire28-Apr-05 5:12
Andrew Admire28-Apr-05 5:12 
GeneralRe: C++ multiplication Pin
Michael Dunn28-Apr-05 5:45
sitebuilderMichael Dunn28-Apr-05 5:45 
GeneralRe: C++ multiplication Pin
David Crow28-Apr-05 6:30
David Crow28-Apr-05 6:30 
GeneralRe: C++ multiplication Pin
Andrew Admire28-Apr-05 9:14
Andrew Admire28-Apr-05 9:14 
Questionhide or remove toolbar buttons? Pin
Sean McKinnon28-Apr-05 3:53
Sean McKinnon28-Apr-05 3:53 
AnswerRe: hide or remove toolbar buttons? Pin
David Crow28-Apr-05 5:11
David Crow28-Apr-05 5:11 
GeneralRe: hide or remove toolbar buttons? Pin
Sean McKinnon28-Apr-05 5:22
Sean McKinnon28-Apr-05 5:22 
AnswerRe: hide or remove toolbar buttons? Pin
cmk29-Apr-05 21:04
cmk29-Apr-05 21:04 
If you are using MFC:

CToolBar tb;
tb.GetToolBarCtrl().HideButton(ID_CONNECT, TRUE);
tb.GetToolBarCtrl().HideButton(ID_DISCONNECT, FALSE);

also (from MSDN):
Customizing a Toolbar
A toolbar has built-in customization features that you can make available to the user by giving the toolbar the CCS_ADJUSTABLE common control style. The customization features allow the user to drag a button to a new position or to remove a button by dragging it off the toolbar. In addition, the user can double-click the toolbar to display the Customize Toolbar dialog box, which allows the user to add, delete, and rearrange toolbar buttons. To display the dialog box, use the TB_CUSTOMIZE message. An application determines whether the customization features are available to the user and controls the extent to which the user can customize the toolbar.

As part of the customization process, applications often need to save and restore a toolbar's state. For instance, many applications store the toolbar state before the user begins customizing the toolbar in case the user later wants to restore the toolbar to its original state. The toolbar control does not automatically keep a record of its precustomization state. Your application must save the toolbar state in order to restore it. For more information, see Customizing Toolbars and Using Hot-tracking with Toolbars.



...cmk

Save the whales - collect the whole set
GeneralRe: hide or remove toolbar buttons? Pin
Sean McKinnon2-May-05 4:30
Sean McKinnon2-May-05 4:30 
GeneralRe: hide or remove toolbar buttons? Pin
cmk2-May-05 10:10
cmk2-May-05 10:10 
GeneralRe: hide or remove toolbar buttons? Pin
Sean McKinnon2-May-05 10:27
Sean McKinnon2-May-05 10:27 
GeneralRe: hide or remove toolbar buttons? Pin
Sean McKinnon2-May-05 10:39
Sean McKinnon2-May-05 10:39 
GeneralRe: hide or remove toolbar buttons? Pin
Sean McKinnon2-May-05 10:58
Sean McKinnon2-May-05 10:58 
GeneralMousedown event on owner draw buttons Pin
Assariah kingsly28-Apr-05 3:41
Assariah kingsly28-Apr-05 3:41 
GeneralRe: Mousedown event on owner draw buttons Pin
Ravi Bhavnani28-Apr-05 8:52
professionalRavi Bhavnani28-Apr-05 8:52 
GeneralRe: Mousedown event on owner draw buttons Pin
Assariah kingsly30-Apr-05 9:44
Assariah kingsly30-Apr-05 9:44 
GeneralRe: Mousedown event on owner draw buttons Pin
Ravi Bhavnani30-Apr-05 10:10
professionalRavi Bhavnani30-Apr-05 10:10 
Questionhow can I use MFC in this project ? Pin
microsoftcertificate28-Apr-05 3:31
sussmicrosoftcertificate28-Apr-05 3:31 
AnswerRe: how can I use MFC in this project ? Pin
David Crow28-Apr-05 5:08
David Crow28-Apr-05 5:08 
GeneralRe: how can I use MFC in this project ? Pin
microsoftcertificate28-Apr-05 5:31
sussmicrosoftcertificate28-Apr-05 5:31 
GeneralRe: how can I use MFC in this project ? Pin
David Crow28-Apr-05 5:39
David Crow28-Apr-05 5:39 
Generalundefined keyword or key name: IDC_STATIC Pin
microsoftcertificate28-Apr-05 3:29
sussmicrosoftcertificate28-Apr-05 3:29 
GeneralRe: undefined keyword or key name: IDC_STATIC Pin
David Crow28-Apr-05 4:23
David Crow28-Apr-05 4:23 
GeneralRe: undefined keyword or key name: IDC_STATIC Pin
microsoftcertificate28-Apr-05 5:35
sussmicrosoftcertificate28-Apr-05 5:35 
GeneralRe: undefined keyword or key name: IDC_STATIC Pin
David Crow28-Apr-05 6:01
David Crow28-Apr-05 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.