Click here to Skip to main content
15,902,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: operator new/delete for beginners Pin
Tomerland29-May-08 6:46
Tomerland29-May-08 6:46 
QuestionMFC Program - run application as windows service Pin
patrikfds28-May-08 22:44
patrikfds28-May-08 22:44 
AnswerRe: MFC Program - run application as windows service Pin
SandipG 28-May-08 22:49
SandipG 28-May-08 22:49 
AnswerRe: MFC Program - run application as windows service Pin
_AnsHUMAN_ 28-May-08 22:52
_AnsHUMAN_ 28-May-08 22:52 
GeneralRe: MFC Program - run application as windows service Pin
patrikfds28-May-08 23:07
patrikfds28-May-08 23:07 
GeneralRe: MFC Program - run application as windows service Pin
SandipG 28-May-08 23:20
SandipG 28-May-08 23:20 
AnswerRe: MFC Program - run application as windows service Pin
Hamid_RT29-May-08 1:03
Hamid_RT29-May-08 1:03 
Questionproblem with adding About Diaglog Pin
tataxin28-May-08 22:40
tataxin28-May-08 22:40 
I want to create About dialog after created main dialog. All I did as follows:
- create about dialog
- in Resource.rc, I add this:
// create a line when right click dialog on taskbar
STRINGTABLE 
BEGIN
    IDS_ABOUTBOX            "&About ..."
END

- in CMyDlg.h, declare
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);	

- in CMyDlg.cpp, implement this method:
void CMyDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
    /* set breakpoint to debug here */
	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
	{
		CAboutDlg dlgAbout;
		dlgAbout.DoModal();
	}
	else
	{
		CDialog::OnSysCommand(nID, lParam);
	}
}

- in CMyDlg.cpp, register notify
BEGIN_MESSAGE_MAP(CAboutDlg, CMyDlg)
	ON_WM_SYSCOMMAND()	
END_MESSAGE_MAP()


that's all, but it doesn't work. I try to debug and found that it doesn't come into OnSysComand() method. What do I miss here?
Thank you very much, Smile | :)
AnswerRe: problem with adding About Diaglog Pin
SandipG 28-May-08 22:43
SandipG 28-May-08 22:43 
GeneralRe: problem with adding About Diaglog Pin
tataxin29-May-08 0:56
tataxin29-May-08 0:56 
GeneralRe: problem with adding About Diaglog Pin
SandipG 29-May-08 1:23
SandipG 29-May-08 1:23 
GeneralRe: problem with adding About Diaglog Pin
David Crow29-May-08 3:44
David Crow29-May-08 3:44 
QuestionRe: problem with adding About Diaglog Pin
tataxin29-May-08 14:45
tataxin29-May-08 14:45 
QuestionRe: problem with adding About Diaglog Pin
David Crow30-May-08 3:12
David Crow30-May-08 3:12 
NewsRe: problem with adding About Diaglog [modified] Pin
tataxin1-Jun-08 15:53
tataxin1-Jun-08 15:53 
QuestionDetecting available MIDI devices Pin
rp_suman28-May-08 22:00
rp_suman28-May-08 22:00 
AnswerRe: Detecting available MIDI devices Pin
SandipG 28-May-08 22:35
SandipG 28-May-08 22:35 
GeneralRe: Detecting available MIDI devices Pin
rp_suman29-May-08 15:08
rp_suman29-May-08 15:08 
QuestionRegLoadKey Pin
Ajay L D28-May-08 21:22
Ajay L D28-May-08 21:22 
AnswerRe: RegLoadKey Pin
Hamid_RT30-May-08 2:17
Hamid_RT30-May-08 2:17 
QuestionHow can i shorten my array using enum? Pin
monsieur_jj28-May-08 20:47
monsieur_jj28-May-08 20:47 
QuestionRe: How can i shorten my array using enum? Pin
SandipG 28-May-08 21:13
SandipG 28-May-08 21:13 
AnswerRe: How can i shorten my array using enum? Pin
monsieur_jj28-May-08 21:18
monsieur_jj28-May-08 21:18 
GeneralRe: How can i shorten my array using enum? Pin
SandipG 28-May-08 21:19
SandipG 28-May-08 21:19 
GeneralRe: How can i shorten my array using enum? Pin
monsieur_jj28-May-08 21:25
monsieur_jj28-May-08 21:25 

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.