Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem using HttpSendRequest Pin
Jack Reed6-May-04 10:05
Jack Reed6-May-04 10:05 
QuestionHow to Eliminate Child Window Title Bar Pin
jerry1211a6-May-04 9:56
jerry1211a6-May-04 9:56 
AnswerRe: How to Eliminate Child Window Title Bar Pin
Paul M Watt6-May-04 10:12
mentorPaul M Watt6-May-04 10:12 
GeneralRe: How to Eliminate Child Window Title Bar Pin
jerry1211a6-May-04 12:23
jerry1211a6-May-04 12:23 
GeneralRe: How to Eliminate Child Window Title Bar Pin
Paul M Watt6-May-04 12:53
mentorPaul M Watt6-May-04 12:53 
GeneralMenu at runtime (dynamic menu) Pin
marcosvpp6-May-04 9:34
marcosvpp6-May-04 9:34 
GeneralRe: Menu at runtime (dynamic menu) Pin
Anthony_Yio6-May-04 16:21
Anthony_Yio6-May-04 16:21 
GeneralRe: Menu at runtime (dynamic menu) Pin
marcosvpp10-May-04 5:40
marcosvpp10-May-04 5:40 
Yes, I try this, but the menu that I append is still grayed!!!

CMenu *Menu = Wnd->GetMenu();<br />
hr = Menu->InsertMenu(Position, MF_BYPOSITION | MF_STRING | MF_POPUP |<br />
	MF_ENABLED, (UINT)DevicesMenu->m_hMenu, TEXT("Devices"));<br />
Menu->Detach();<br />
Wnd->DrawMenuBar();


The only way that they work properly is to add in the AppClass file MESSAGE_MAP the code:

<br />
// file "MyApp.cpp"<br />
BEGIN_MESSAGE_MAP(CTe13App, CWinApp)<br />
	//{{AFX_MSG_MAP(CTe13App)<br />
	ON_COMMAND(ID_APP_ABOUT, OnAppAbout)<br />
	ON_COMMAND(ID_PAUSE, OnPause)<br />
	//}}AFX_MSG_MAP<br />
	// My message map<br />
	ON_COMMAND_RANGE(ID_MENU_DIALOG0, ID_MENU_DIALOG9, OnDialog)<br />
END_MESSAGE_MAP()<br />


but I don't want to do this. I need to be App independent; to be an independent class!! Is there a way that adding a message map in my class, the app message map understand? Like this:

// file "MyClass.cpp"
BEGIN_MESSAGE_MAP(CVidCap, CWnd)
ON_COMMAND_RANGE(ID_MENU_DIALOG0, ID_MENU_DIALOG9, OnDialog)
END_MESSAGE_MAP()

Thanks





Marcos Vinícius
Engenheiro Eletricista
GeneralRe: Menu at runtime (dynamic menu) Pin
Anthony_Yio10-May-04 16:14
Anthony_Yio10-May-04 16:14 
GeneralRe: Menu at runtime (dynamic menu) Pin
marcosvpp11-May-04 5:45
marcosvpp11-May-04 5:45 
GeneralRe: Menu at runtime (dynamic menu) Pin
Anonymous11-May-04 15:39
Anonymous11-May-04 15:39 
GeneralMemory Problem with AdoConnection Pin
VietDelphi6-May-04 9:24
VietDelphi6-May-04 9:24 
GeneralMemory Problem with AdoConnection -- Help!!!! Pin
VietDelphi7-May-04 0:51
VietDelphi7-May-04 0:51 
GeneralMemory Problem with AdoConnection -- Help!!!! - 2 Pin
VietDelphi10-May-04 3:40
VietDelphi10-May-04 3:40 
GeneralMFC Application To DLL Pin
Grahamfff6-May-04 9:16
Grahamfff6-May-04 9:16 
GeneralRe: MFC Application To DLL Pin
valikac6-May-04 13:19
valikac6-May-04 13:19 
GeneralList Contol Pin
kpatry6-May-04 8:35
kpatry6-May-04 8:35 
GeneralRe: List Contol Pin
David Crow6-May-04 8:42
David Crow6-May-04 8:42 
GeneralRe: List Contol Pin
Abin6-May-04 17:15
Abin6-May-04 17:15 
GeneralIntellectual property Pin
Jeff Bogan6-May-04 8:08
Jeff Bogan6-May-04 8:08 
GeneralRe: Intellectual property Pin
Christian Graus6-May-04 10:41
protectorChristian Graus6-May-04 10:41 
GeneralRe: Intellectual property Pin
Joe Woodbury6-May-04 11:53
professionalJoe Woodbury6-May-04 11:53 
GeneralMFC:Mnemonic executed without CTRL Pin
MarcoNedwig6-May-04 6:24
MarcoNedwig6-May-04 6:24 
GeneralRe: MFC:Mnemonic executed without CTRL Pin
Jens Doose7-May-04 0:48
Jens Doose7-May-04 0:48 
GeneralEnumDesktopWindows Pin
Member 10350186-May-04 6:01
Member 10350186-May-04 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.