Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to realize Multi-Chat application? Pin
bruspark28-May-06 18:13
bruspark28-May-06 18:13 
AnswerRe: How to realize Multi-Chat application? Pin
bob1697228-May-06 18:49
bob1697228-May-06 18:49 
GeneralRe: How to realize Multi-Chat application? Pin
bruspark28-May-06 19:22
bruspark28-May-06 19:22 
GeneralRe: How to realize Multi-Chat application? Pin
bob1697228-May-06 20:37
bob1697228-May-06 20:37 
GeneralRe: How to realize Multi-Chat application? Pin
bruspark29-May-06 18:12
bruspark29-May-06 18:12 
QuestionHow to add WndPRoc function to an windows Service application Pin
bmurali28-May-06 17:49
bmurali28-May-06 17:49 
QuestionHow to get the menu of the ChildFrame in MDI Pin
raycadarena28-May-06 16:23
raycadarena28-May-06 16:23 
AnswerRe: How to get the menu of the ChildFrame in MDI [modified] Pin
bob1697228-May-06 17:03
bob1697228-May-06 17:03 
According to MSDN, "An MDI child window does not have a menu bar of its own, but instead shares the menu of the MDI frame window."

I have MDI apps that use multiple document templates and have special functionality that allows the CChildFrame to change the menu based on the resource type if that's remotely close to what your looking for?

There are unique views and docs added in the App's InitInstance section but they all share the same CChildFrame class and it loads the correct menu/toolbar. Let me know if your interested and I'll post the pertinent snippets.



-- modified at 23:19 Sunday 28th May, 2006

Actually, now that I've taken a look at it, the special code in the CChildFrame was for something else so it really boils down to just having multiple templates. Each one can have it's own resources associated with it.

-- modified at 23:25 Sunday 28th May, 2006

Also, for what it's worth I make modifications to what's in the menu dropdowns in one particular area. The code is in the corresponding view so I know the correct menu is there in the main window...

CMenu* pMenu=AfxGetMainWnd()->GetMenu();

then make my changes and always call

AfxGetMainWnd()->DrawMenuBar(); // Refresh


GeneralRe: How to get the menu of the ChildFrame in MDI [modified] Pin
raycadarena28-May-06 20:07
raycadarena28-May-06 20:07 
GeneralRe: How to get the menu of the ChildFrame in MDI [modified] Pin
bob1697229-May-06 7:34
bob1697229-May-06 7:34 
QuestionHow i make a scroll bar to scroll down by itself? Pin
Immunity1828-May-06 14:14
Immunity1828-May-06 14:14 
AnswerRe: How i make a scroll bar to scroll down by itself? Pin
bob1697228-May-06 14:30
bob1697228-May-06 14:30 
GeneralRe: How i make a scroll bar to scroll down by itself? [modified] Pin
Immunity1828-May-06 14:36
Immunity1828-May-06 14:36 
GeneralRe: How i make a scroll bar to scroll down by itself? [modified] Pin
bob1697228-May-06 15:01
bob1697228-May-06 15:01 
GeneralRe: How i make a scroll bar to scroll down by itself? [modified] Pin
Immunity1828-May-06 15:06
Immunity1828-May-06 15:06 
GeneralRe: How i make a scroll bar to scroll down by itself? [modified] Pin
bob1697228-May-06 15:27
bob1697228-May-06 15:27 
GeneralRe: How i make a scroll bar to scroll down by itself? [modified] Pin
Immunity1828-May-06 15:32
Immunity1828-May-06 15:32 
GeneralRe: How i make a scroll bar to scroll down by itself? [modified] Pin
bob1697228-May-06 16:40
bob1697228-May-06 16:40 
QuestionProblem writing large character array to a file Pin
fourierman28-May-06 13:20
fourierman28-May-06 13:20 
AnswerRe: Problem writing large character array to a file [modified] Pin
Chris Losinger28-May-06 13:23
professionalChris Losinger28-May-06 13:23 
GeneralRe: Problem writing large character array to a file [modified] Pin
bob1697228-May-06 14:12
bob1697228-May-06 14:12 
AnswerRe: Problem writing large character array to a file [modified] Pin
bob1697228-May-06 14:17
bob1697228-May-06 14:17 
GeneralRe: Problem writing large character array to a file [modified] Pin
fourierman28-May-06 14:35
fourierman28-May-06 14:35 
GeneralRe: Problem writing large character array to a file [modified] Pin
Chris Losinger28-May-06 16:06
professionalChris Losinger28-May-06 16:06 
AnswerRe: Problem writing large character array to a file Pin
kakan28-May-06 20:49
professionalkakan28-May-06 20:49 

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.