Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: hide or remove toolbar buttons? Pin
Sean McKinnon2-May-05 4:30
Sean McKinnon2-May-05 4:30 
Thanks for the reply!

I am using MFC, and the HideButton method works for hiding buttons on the Toolbar in the MainFrame, but does not work when showing the customization dialog. When the customization dialog is shown, hidden buttons ARE shown in the right-hand list (populated buttons), but are shown with grey text (indicating they are hidden/disabled). ALL buttons not already in the toolbar are shown in the left-hand list (available buttons).

I need to be able to prevent buttons in the toolbar resource from showing up in both the available and populated button lists on the customize dialog. (i.e. make it look like the button does not exist at all).

During the building of the customization dialog lists, there are messages sent that query whether a button should be included, but if you indicate that it should not, then the process stops right there, and no more queries are sent for buttons that follow that one in the resource. (i.e. the first time you say "No" to a button, it aborts the queries for any remaining buttons).

I thought there might be a way to either respond differently to the message, respond to a different message that I am unaware of, or get access to the dialog lists and manually remove the unwanted items before the dialog is displayed.

Thanks again,

Sean
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 
GeneralON_NOTIFY and ON_NOTIFY_REFLECT Pin
nitin.rastogi28-Apr-05 3:05
nitin.rastogi28-Apr-05 3:05 

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.