Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAfxMessageBox with Bold text Pin
sunny_vc16-Feb-09 0:04
sunny_vc16-Feb-09 0:04 
JokeRe: AfxMessageBox with Bold text Pin
CPallini16-Feb-09 0:28
mveCPallini16-Feb-09 0:28 
GeneralRe: AfxMessageBox with Bold text Pin
sunny_vc16-Feb-09 0:31
sunny_vc16-Feb-09 0:31 
AnswerRe: AfxMessageBox with Bold text Pin
Code-o-mat16-Feb-09 0:42
Code-o-mat16-Feb-09 0:42 
AnswerRe: AfxMessageBox with Bold text Pin
Hamid_RT16-Feb-09 0:58
Hamid_RT16-Feb-09 0:58 
GeneralRe: AfxMessageBox with Bold text Pin
sunny_vc16-Feb-09 1:20
sunny_vc16-Feb-09 1:20 
AnswerRe: AfxMessageBox with Bold text Pin
Iain Clarke, Warrior Programmer16-Feb-09 2:25
Iain Clarke, Warrior Programmer16-Feb-09 2:25 
QuestionUsing CMFCMenuBar with CDialog Pin
Shashikant_200615-Feb-09 23:10
Shashikant_200615-Feb-09 23:10 
I am upgrading my VC6 app to new mfc feature pack, I have to add a CMFCMenuBar on a dialog box, I am able to add and display the menu bar, but none of its pop up menu items work.... All the menu items in dropdwn/popup menu in menu bar are disabled and not responding to any message... after adding message handler functions, anybody has any idea?? I am posting my code to create and display menubar (CMFCMenuBar) on a dialog box here. I have tried to put this code within OnInitDialog() as well as OnCreate() function of the dialog class.

m_wndMenuBar is a CMFCMenuBar object decleraed in .h file.

if (!m_wndMenuBar.Create(this))
{
TRACE0("Failed to create menubar\n");
return -1; // fail to create
}
CMenu *menu = new CMenu();
menu -> LoadMenu (IDR_ITEM_MENU);
m_wndMenuBar.CreateFromMenu(menu->GetSafeHmenu(),TRUE,TRUE);
m_wndMenuBar.SetDefaultMenuResId(IDR_ITEM_MENU);
m_wndMenuBar.SetWindowPos(NULL,0, 0 ,500,30,SWP_SHOWWINDOW);

Never complain,never explain,just do your work.

AnswerRe: Using CMFCMenuBar with CDialog Pin
Gan Chuanli2-Nov-11 20:14
Gan Chuanli2-Nov-11 20:14 
QuestionHow can handle Wnd+D in Application? Pin
Le@rner15-Feb-09 22:37
Le@rner15-Feb-09 22:37 
AnswerRe: How can handle Wnd+D in Application? Pin
Iain Clarke, Warrior Programmer15-Feb-09 23:30
Iain Clarke, Warrior Programmer15-Feb-09 23:30 
GeneralRe: How can handle Wnd+D in Application? Pin
CPallini16-Feb-09 0:00
mveCPallini16-Feb-09 0:00 
JokeRe: How can handle Wnd+D in Application? Pin
Iain Clarke, Warrior Programmer16-Feb-09 0:15
Iain Clarke, Warrior Programmer16-Feb-09 0:15 
AnswerRe: How can handle Wnd+D in Application? Pin
Taran915-Feb-09 23:40
Taran915-Feb-09 23:40 
GeneralRe: How can handle Wnd+D in Application? Pin
Le@rner15-Feb-09 23:50
Le@rner15-Feb-09 23:50 
GeneralRe: How can handle Wnd+D in Application? Pin
Taran916-Feb-09 6:10
Taran916-Feb-09 6:10 
GeneralRe: How can handle Wnd+D in Application? Pin
Le@rner28-Feb-09 1:58
Le@rner28-Feb-09 1:58 
QuestionMFC - how to get the return value from other application (called by CreateProcess)[solved] Pin
wcgan15-Feb-09 21:49
wcgan15-Feb-09 21:49 
AnswerRe: MFC - how to get the return value from other application (called by CreateProcess) Pin
SandipG 15-Feb-09 22:00
SandipG 15-Feb-09 22:00 
AnswerRe: MFC - how to get the return value from other application (called by CreateProcess) Pin
Hamid_RT16-Feb-09 0:58
Hamid_RT16-Feb-09 0:58 
GeneralRe: MFC - how to get the return value from other application (called by CreateProcess) Pin
wcgan16-Feb-09 14:51
wcgan16-Feb-09 14:51 
QuestionNew SDI launch crash problem in CWnd* pView = (CWnd*)pContext->m_pNewViewClass->CreateObject(); Pin
_T("No name")15-Feb-09 21:46
_T("No name")15-Feb-09 21:46 
QuestionRe: New SDI launch crash problem in CWnd* pView = (CWnd*)pContext->m_pNewViewClass->CreateObject(); Pin
CPallini16-Feb-09 2:30
mveCPallini16-Feb-09 2:30 
Question[Message Deleted] Pin
vernchen15-Feb-09 21:41
vernchen15-Feb-09 21:41 
AnswerRe: about dbf pack Pin
vernchen16-Feb-09 20:22
vernchen16-Feb-09 20:22 

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.