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

C / C++ / MFC

 
GeneralRe: Game Programing Pin
Tim Smith12-Feb-04 17:27
Tim Smith12-Feb-04 17:27 
GeneralRe: Game Programing Pin
John M. Drescher12-Feb-04 17:27
John M. Drescher12-Feb-04 17:27 
GeneralRe: Game Programing Pin
Selvam R12-Feb-04 23:29
professionalSelvam R12-Feb-04 23:29 
QuestionCEdit -> Caption Title??? Pin
kekelepervanche12-Feb-04 15:12
kekelepervanche12-Feb-04 15:12 
AnswerRe: CEdit -> Caption Title??? Pin
Ravi Bhavnani12-Feb-04 18:24
professionalRavi Bhavnani12-Feb-04 18:24 
AnswerRe: CEdit -> Caption Title??? Pin
Selvam R12-Feb-04 23:58
professionalSelvam R12-Feb-04 23:58 
GeneralMDIChild creation from dll Pin
Member 40856112-Feb-04 15:11
Member 40856112-Feb-04 15:11 
GeneralAdd popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
lxy12-Feb-04 13:52
lxy12-Feb-04 13:52 
I'm writting an MFC Doc/View program which allows user loading DLL at runtime.
In the test DLL, I append a popup menu to the mainframe and it looks OK.

But the problems are,

if the ID number of added menu item is the same as that of existing menu item or toolbar button, selection on the added item will invoke the function of the existing one, not that of the DLL;

if the ID number of added menu item does not exist in mainframe before, the menu item will be disabled. Although we can use CFrameWnd::m_bAutoMenuEnable to do the trick, it's not good way, for all the menu items and button will be affected.

Looking into the wParam and lParam of WM_COMMAND message handler CMainFrame::OnCommand(), it's found that there's no difference between two menu items with the same ID number.

Any way to solve it? how does people add menu or toolbar button to MS Word?
GeneralRe: Add popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
Roger Allen13-Feb-04 3:14
Roger Allen13-Feb-04 3:14 
GeneralRe: Add popup menu to FrameWnd from DLL, unpredictable ID, cannot use message map. Pin
lxy16-Feb-04 22:21
lxy16-Feb-04 22:21 
GeneralKeeping startbar visible Pin
Chanbara12-Feb-04 13:38
Chanbara12-Feb-04 13:38 
GeneralSystemParametersInfo & SPI_SETMENUSHOWDELAY Pin
GregH12-Feb-04 11:29
GregH12-Feb-04 11:29 
GeneralSoftware routing... Pin
Shashidhar Kamath12-Feb-04 11:25
Shashidhar Kamath12-Feb-04 11:25 
GeneralRe: Software routing... Pin
valikac12-Feb-04 12:13
valikac12-Feb-04 12:13 
GeneralRe: Software routing... Pin
Shashidhar Kamath12-Feb-04 12:24
Shashidhar Kamath12-Feb-04 12:24 
GeneralRe: Software routing... Pin
22491712-Feb-04 16:39
22491712-Feb-04 16:39 
GeneralRe: Software routing... Pin
Shashidhar Kamath13-Feb-04 7:08
Shashidhar Kamath13-Feb-04 7:08 
GeneralRe: Software routing... Pin
22491713-Feb-04 18:03
22491713-Feb-04 18:03 
GeneralRe: Software routing... Pin
Shashidhar Kamath17-Feb-04 7:02
Shashidhar Kamath17-Feb-04 7:02 
GeneralWaitableTimer Question Please help Pin
msrajan12-Feb-04 10:20
msrajan12-Feb-04 10:20 
GeneralRe: WaitableTimer Question Please help Pin
valikac12-Feb-04 12:19
valikac12-Feb-04 12:19 
QuestionActive X object security with CDHtmlDialog? Pin
Jim Howard12-Feb-04 9:35
Jim Howard12-Feb-04 9:35 
GeneralCListCtrl header alignment Pin
vancouver77712-Feb-04 9:01
vancouver77712-Feb-04 9:01 
Questionfprintf allowed in main dialog? Pin
rmnowick12-Feb-04 8:42
rmnowick12-Feb-04 8:42 
AnswerRe: fprintf allowed in main dialog? Pin
rmnowick12-Feb-04 9:19
rmnowick12-Feb-04 9:19 

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.