Click here to Skip to main content
16,016,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CWInThread [modified] Pin
prasad_som21-May-07 22:25
prasad_som21-May-07 22:25 
GeneralRe: CWInThread Pin
Roger Stoltz21-May-07 22:40
Roger Stoltz21-May-07 22:40 
GeneralRe: CWInThread Pin
prasad_som21-May-07 22:48
prasad_som21-May-07 22:48 
GeneralRe: CWInThread Pin
Roger Stoltz21-May-07 22:56
Roger Stoltz21-May-07 22:56 
QuestionConfused about layout due to differen language OS Pin
Stan the man21-May-07 20:50
Stan the man21-May-07 20:50 
AnswerRe: Confused about layout due to differen language OS Pin
Nelek21-May-07 23:21
protectorNelek21-May-07 23:21 
Questionanother menu for the childframes Pin
prithaa21-May-07 20:49
prithaa21-May-07 20:49 
AnswerRe: another menu for the childframes Pin
Anurag Gandhi21-May-07 22:21
professionalAnurag Gandhi21-May-07 22:21 
This is how I am controlling the Menu Bar from the View Class Window. I hope this will help you.

void CMyApplicationView::OnFormatWordwrap()
{
// TODO: Add your command handler code here
CMenu* pMenu; // Create a pointer to the current menu.
CWnd* pParent = GetParent();
pMenu= pParent->GetMenu(); // Get the menu.

CWaitCursor wait;

if (pMenu->GetMenuState(ID_FORMAT_WORDWRAP, MF_CHECKED))
{
SetWordWrap(FALSE);
pMenu->CheckMenuItem(ID_FORMAT_WORDWRAP, MF_UNCHECKED);
}
else
{
SetWordWrap(TRUE);
pMenu->CheckMenuItem(ID_FORMAT_WORDWRAP, MF_CHECKED);
}
}
The code is self explainatory.
Please try to be specific in asking question if you want exact solution.

Anurag Gandhi.
Bangalore, India.
AnswerRe: another menu for the childframes Pin
Nelek21-May-07 23:12
protectorNelek21-May-07 23:12 
QuestionDockling child dialog from a dialog based application.. is it possible? Pin
rbid21-May-07 20:34
rbid21-May-07 20:34 
QuestionClass wizard in 2005 Pin
tom groezer21-May-07 19:59
tom groezer21-May-07 19:59 
AnswerRe: Class wizard in 2005 Pin
Nelek21-May-07 23:05
protectorNelek21-May-07 23:05 
QuestionConstructors Pin
tom groezer21-May-07 19:55
tom groezer21-May-07 19:55 
AnswerRe: Constructors Pin
User 58385221-May-07 20:04
User 58385221-May-07 20:04 
QuestionURGENT!!!remove focus from listbox item Pin
anu jaggi21-May-07 19:35
anu jaggi21-May-07 19:35 
AnswerRe: URGENT!!!remove focus from listbox item Pin
Perspx21-May-07 19:46
Perspx21-May-07 19:46 
AnswerRe: URGENT!!!remove focus from listbox item Pin
Nelek21-May-07 20:09
protectorNelek21-May-07 20:09 
QuestionViewing File Property Pin
Anurag Gandhi21-May-07 19:22
professionalAnurag Gandhi21-May-07 19:22 
QuestionRe: Viewing File Property Pin
Rajesh R Subramanian21-May-07 19:57
professionalRajesh R Subramanian21-May-07 19:57 
AnswerRe: Viewing File Property Pin
Anurag Gandhi21-May-07 20:47
professionalAnurag Gandhi21-May-07 20:47 
QuestionRe: Viewing File Property Pin
Rajesh R Subramanian21-May-07 21:05
professionalRajesh R Subramanian21-May-07 21:05 
AnswerRe: Viewing File Property Pin
prasad_som21-May-07 20:02
prasad_som21-May-07 20:02 
QuestionLocal static variable is thread safe? Pin
Best Kiluyar21-May-07 19:11
Best Kiluyar21-May-07 19:11 
AnswerRe: Local static variable is thread safe? Pin
User 58385221-May-07 19:54
User 58385221-May-07 19:54 
AnswerRe: Local static variable is thread safe? Pin
Manoj Kumar Rai21-May-07 19:55
professionalManoj Kumar Rai21-May-07 19:55 

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.