Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mute the volume in Windows XP Pin
Aneurysm001-Feb-05 5:58
Aneurysm001-Feb-05 5:58 
Questionhow to read hexadecimal input in an editbox Pin
cbaykal31-Jan-05 7:03
cbaykal31-Jan-05 7:03 
AnswerRe: how to read hexadecimal input in an editbox Pin
John R. Shaw31-Jan-05 7:39
John R. Shaw31-Jan-05 7:39 
GeneralGet out of infinite loop question! Pin
jazzkiller31-Jan-05 6:58
jazzkiller31-Jan-05 6:58 
GeneralRe: Get out of infinite loop question! Pin
PJ Arends31-Jan-05 7:13
professionalPJ Arends31-Jan-05 7:13 
GeneralRe: Get out of infinite loop question! Pin
Aneurysm0031-Jan-05 7:17
Aneurysm0031-Jan-05 7:17 
GeneralRe: Get out of infinite loop question! Pin
Tim Smith31-Jan-05 13:44
Tim Smith31-Jan-05 13:44 
Questionhow to add a menu to a CDialogBar Pin
vieira_alice31-Jan-05 5:51
vieira_alice31-Jan-05 5:51 
Hello,

I'm writing to ask some explanations on the excellent article "Using Custom Controls in a Dialog Bar" by Douglas R. Keesler, see http://www.codeproject.com/useritems/DerivedDlgBar.asp. Maybe that I did not understand everything, I'm french and my english is not so good.

So my matter is about how to create a menu in a CDialogBar :

I have made a little MDI which has got a CDialogBar with VC++6.0 .

In this class, I want to put a Menu.
So I made that you said :
- create a CDialogBar : IDD_DLGBAR_TEST,
- create a Menu in my ressource : IDD_DLGBAR_TEST,
- create the class MyDlgBar (import files MyDlgBar, remove file.clw and clic on ctrl+w to wizard VC6.0 as he said)
- select to this ressource the classe MyDlgBar
- put in the class CMainFrame the instance : CMyDlgBar m_dlgBarTest
- put the creation of this box in the create function of the CMainFrame with :
m_dlgBarTest.Create(this, IDD_DLGBAR_TEST, <br />
		CBRS_RIGHT  | CBRS_GRIPPER |CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_HIDE_INPLACE,<br />
		IDD_VIEW_MENU_DLGBAR)

- I put, in the message map of my CMainFrame, the 2 lines :
ON_COMMAND_EX(IDD_VIEW_MENU_DLGBAR, OnBarCheck)<br />
	ON_UPDATE_COMMAND_UI(IDD_VIEW_MENU_DLGBAR, OnUpdateControlBarMenu)

- then I compile and I built my application.

When I execute this application, I have got :
- the main frame
- the floating dialog box (CDialogBar)

But I haven't got the menu of this floating box !

I search in the source of the demo project but I don't see the menu that we could see in the article.

Perhaps the autor forgot to write something to realize a menu in a CDialogBar?
Or perhaps I don't understand all ...

Could you explain to me how to realize it ?

Thanks very much to help me ! Blush | :O


Alice
AnswerRe: how to add a menu to a CDialogBar Pin
JohnCz31-Jan-05 14:19
JohnCz31-Jan-05 14:19 
GeneralUndo Pin
act_x31-Jan-05 5:41
act_x31-Jan-05 5:41 
GeneralRe: Undo Pin
PJ Arends31-Jan-05 6:07
professionalPJ Arends31-Jan-05 6:07 
GeneralRe: Undo Pin
Maximilien31-Jan-05 6:47
Maximilien31-Jan-05 6:47 
GeneralProblem with file output Pin
RealityGamma31-Jan-05 5:29
sussRealityGamma31-Jan-05 5:29 
GeneralRe: Problem with file output Pin
PJ Arends31-Jan-05 6:18
professionalPJ Arends31-Jan-05 6:18 
GeneralRe: Problem with file output Pin
RealityGamma31-Jan-05 7:34
sussRealityGamma31-Jan-05 7:34 
GeneralRe: Problem with file output Pin
David Crow31-Jan-05 9:23
David Crow31-Jan-05 9:23 
GeneralAfxBeginThread, Thread Pool and RUNTIME_CLASS Pin
Turtle Hand31-Jan-05 4:22
Turtle Hand31-Jan-05 4:22 
GeneralRe: AfxBeginThread, Thread Pool and RUNTIME_CLASS Pin
PJ Arends31-Jan-05 6:03
professionalPJ Arends31-Jan-05 6:03 
GeneralAutomating MS Access Pin
mcsherry31-Jan-05 4:00
mcsherry31-Jan-05 4:00 
GeneralRe: Automating MS Access Pin
David Crow31-Jan-05 4:29
David Crow31-Jan-05 4:29 
GeneralRe: Automating MS Access Pin
mcsherry31-Jan-05 21:44
mcsherry31-Jan-05 21:44 
GeneralRe: Automating MS Access Pin
David Crow1-Feb-05 3:21
David Crow1-Feb-05 3:21 
GeneralRe: Automating MS Access Pin
Bob Flynn31-Jan-05 5:25
Bob Flynn31-Jan-05 5:25 
QuestionIs this possbile??? Pin
rlepine31-Jan-05 3:26
rlepine31-Jan-05 3:26 
AnswerRe: Is this possbile??? Pin
User 665831-Jan-05 3:40
User 665831-Jan-05 3:40 

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.