Click here to Skip to main content
16,005,138 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC inter-object communication Pin
Neville Franks10-Apr-03 16:54
Neville Franks10-Apr-03 16:54 
GeneralRe: MFC inter-object communication Pin
Joel Lucsy11-Apr-03 3:07
Joel Lucsy11-Apr-03 3:07 
QuestionHow to get printer margins Pin
bumper10-Apr-03 9:18
bumper10-Apr-03 9:18 
AnswerRe: How to get printer margins Pin
Tim Smith10-Apr-03 10:12
Tim Smith10-Apr-03 10:12 
GeneralRe: How to get printer margins Pin
bumper10-Apr-03 11:21
bumper10-Apr-03 11:21 
GeneralClose button on DialogBox Pin
bumper10-Apr-03 9:14
bumper10-Apr-03 9:14 
GeneralRe: Close button on DialogBox Pin
Dominik Reichl10-Apr-03 9:21
Dominik Reichl10-Apr-03 9:21 
GeneralRe: Close button on DialogBox Pin
bumper10-Apr-03 11:04
bumper10-Apr-03 11:04 
Thank you Dominik, but yours ideas don't work in my application.


In the first case, I get an assertion in afxwin1.inl

<br />
if (!m_wndLayersDlgBar.Create(this, IDD_LAYERS, CBRS_LEFT|CBRS_TOOLTIPS|CBRS_FLYBY|CBRS_SIZE_DYNAMIC, IDD_LAYERS))<br />
{<br />
	TRACE0("Failed to create DlgBar\n");<br />
	return -1;      // fail to create<br />
}<br />
<br />
m_wndLayersDlgBar.EnableDocking(0);<br />
m_wndLayersDlgBar.SetWindowText("Gestionnaire de calques");<br />
FloatControlBar(&m_wndLayersDlgBar, g_ptWindowLayersOffset);<br />
<br />
<br />
CMenu* pMenu = m_wndLayersDlgBar.GetMenu();<br />
pMenu->RemoveMenu(SC_CLOSE, MF_BYCOMMAND); // <- ASSERTION HERE<br />


wndLayersDlgBar is a CLayersDlgBar which is a CDialogBar




And with the second case, i've put the correct method in my class but the program never go in this method, even when I close the entire application.

<br />
void CLayersDlgBar::OnSysCommand(UINT nID, LPARAM lParam)<br />
{<br />
	CDialogBar::OnSysCommand(nID, lParam); // <- never go here<br />
}<br />


Any idea ?
GeneralRe: Close button on DialogBox Pin
valikac10-Apr-03 14:20
valikac10-Apr-03 14:20 
GeneralRe: Close button on DialogBox Pin
bumper11-Apr-03 7:39
bumper11-Apr-03 7:39 
Generallost in loops:) Pin
Overcat10-Apr-03 7:55
Overcat10-Apr-03 7:55 
GeneralRe: lost in loops:) Pin
Alvaro Mendez10-Apr-03 8:19
Alvaro Mendez10-Apr-03 8:19 
GeneralRe: lost in loops:) Pin
Nitron10-Apr-03 8:20
Nitron10-Apr-03 8:20 
GeneralAdding a nondlg based class to a project, but it doesnt show in clas wizard Pin
ns10-Apr-03 7:48
ns10-Apr-03 7:48 
GeneralRe: Adding a nondlg based class to a project, but it doesnt show in clas wizard Pin
Cedric Moonen10-Apr-03 20:54
Cedric Moonen10-Apr-03 20:54 
QuestionHow to getCheckedItems in a FormView Pin
gmlnd10-Apr-03 6:53
gmlnd10-Apr-03 6:53 
GeneralOracle Connection Problem Urgent!! Pin
nlecren10-Apr-03 6:00
nlecren10-Apr-03 6:00 
GeneralRe: Oracle Connection Problem Urgent!! Pin
Alvaro Mendez10-Apr-03 6:23
Alvaro Mendez10-Apr-03 6:23 
GeneralRe: Oracle Connection Problem Urgent!! Pin
nlecren10-Apr-03 6:46
nlecren10-Apr-03 6:46 
GeneralOracle Connection Problem Urgent!! Pin
Anonymous10-Apr-03 5:59
Anonymous10-Apr-03 5:59 
Generaleasy question about ServerSocket Pin
Martin_Viet10-Apr-03 5:57
Martin_Viet10-Apr-03 5:57 
GeneralRe: easy question about ServerSocket Pin
Sendel10-Apr-03 13:10
Sendel10-Apr-03 13:10 
GeneralRe: easy question about ServerSocket Pin
Martin_Viet11-Apr-03 3:10
Martin_Viet11-Apr-03 3:10 
QuestionWhat can you do if the .vt member of a variant is unknown? Pin
kleft10-Apr-03 5:39
kleft10-Apr-03 5:39 
AnswerRe: What can you do if the .vt member of a variant is unknown? Pin
Mike Dimmick10-Apr-03 5:55
Mike Dimmick10-Apr-03 5: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.