Click here to Skip to main content
15,914,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Binary Predicate for Templated Class Pin
mjackson1121-Jan-09 11:14
mjackson1121-Jan-09 11:14 
AnswerRe: Binary Predicate for Templated Class Pin
Stephen Hewitt21-Jan-09 16:14
Stephen Hewitt21-Jan-09 16:14 
QuestionUser Defined Message to Windows Service Pin
pratap198021-Jan-09 7:51
pratap198021-Jan-09 7:51 
AnswerRe: User Defined Message to Windows Service Pin
Iain Clarke, Warrior Programmer21-Jan-09 9:23
Iain Clarke, Warrior Programmer21-Jan-09 9:23 
QuestionProblem while opening eml file with attachmenseml file with Pin
sandeepkgsmarty21-Jan-09 6:37
sandeepkgsmarty21-Jan-09 6:37 
QuestionOnMouseWheel Pin
sabapathy_8021-Jan-09 4:15
sabapathy_8021-Jan-09 4:15 
AnswerRe: OnMouseWheel Pin
Stuart Dootson21-Jan-09 4:23
professionalStuart Dootson21-Jan-09 4:23 
QuestionHow can enable child window's MenuBar Pin
Abhijit D. Babar21-Jan-09 3:48
Abhijit D. Babar21-Jan-09 3:48 
Hello All,

I am doing SDI application in MFC (VC++) . In that parent, window is having a Menu Bar. When I select one of the Menu option from parent window, another child window will be created. This child window is having its own Menu Bar.
Problem is that this Menu Bar’s submenu is disabled at starting. But when I click on child window’s view, this child window’s submenu item is enabled. How can I enable child window’s submenu item without clicking on child window’s view.

I written the follwing code in the Parent window's MenuBar. When i click on this Parent window sub menu item, child window is created of the name "Bed1" and attach the MenuBar IDR_MENU1 to this chile window


//////
CFrameWnd* pFrame ;
pFrame = new CFrameWnd;

if(!pFrame->Create(NULL,_T("Bed1"),WS_OVERLAPPEDWINDOW ,CRect(0,0,200,200),this,MAKEINTRESOURCE(IDR_MENU1),NULL,&newContext))
{
TRACE0("Failed to create MenuBar");
}

pFrame->SetWindowPos(NULL,rect.left,rect.top,rect.Width()/2,rect.Height()/2,SWP_SHOWWINDOW);

//////

If anybody know the solution, please help.
Questionhotkey for menu item not showing Pin
sabapathy_8021-Jan-09 2:57
sabapathy_8021-Jan-09 2:57 
AnswerRe: hotkey for menu item not showing Pin
Iain Clarke, Warrior Programmer21-Jan-09 3:34
Iain Clarke, Warrior Programmer21-Jan-09 3:34 
GeneralRe: hotkey for menu item not showing Pin
sabapathy_8021-Jan-09 4:07
sabapathy_8021-Jan-09 4:07 
GeneralRe: hotkey for menu item not showing Pin
Iain Clarke, Warrior Programmer21-Jan-09 4:19
Iain Clarke, Warrior Programmer21-Jan-09 4:19 
Questionnon dependent names in template base class Pin
f_jo21-Jan-09 2:45
f_jo21-Jan-09 2:45 
AnswerRe: non dependent names in template base class Pin
Sarath C21-Jan-09 3:18
Sarath C21-Jan-09 3:18 
AnswerRe: non dependent names in template base class Pin
Stuart Dootson21-Jan-09 3:45
professionalStuart Dootson21-Jan-09 3:45 
GeneralRe: non dependent names in template base class Pin
f_jo21-Jan-09 5:40
f_jo21-Jan-09 5:40 
GeneralRe: non dependent names in template base class Pin
f_jo21-Jan-09 6:43
f_jo21-Jan-09 6:43 
GeneralRe: non dependent names in template base class Pin
Stuart Dootson21-Jan-09 7:48
professionalStuart Dootson21-Jan-09 7:48 
QuestionHow to _properly_ pass a string from a DLL to the App? Pin
OwenBurnett21-Jan-09 2:43
OwenBurnett21-Jan-09 2:43 
AnswerRe: How to _properly_ pass a string from a DLL to the App? Pin
Stuart Dootson21-Jan-09 4:18
professionalStuart Dootson21-Jan-09 4:18 
QuestionConvert a text file into image (tiff file) Pin
Kiran Pinjala21-Jan-09 2:33
Kiran Pinjala21-Jan-09 2:33 
JokeRe: Convert a text file into image (tiff file) Pin
Sarath C21-Jan-09 2:50
Sarath C21-Jan-09 2:50 
JokeRe: Convert a text file into image (tiff file) Pin
Nishad S21-Jan-09 2:52
Nishad S21-Jan-09 2:52 
GeneralRe: Convert a text file into image (tiff file) Pin
Kiran Pinjala21-Jan-09 3:37
Kiran Pinjala21-Jan-09 3:37 
AnswerRe: Convert a text file into image (tiff file) Pin
Nishad S21-Jan-09 2:50
Nishad S21-Jan-09 2:50 

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.