Questions tagged [cdialog]

In MFC, the base class used for displaying dialog boxes on the screen.

In MFC, the base class used for displaying dialog boxes on the screen.

Dialog boxes are of two types: modal and modeless. A modal dialog box must be closed by the user before the application continues. A modeless dialog box allows the user to display the dialog box and return to another task without canceling or removing the dialog box.

A CDialog object is a combination of a dialog template and a CDialog-derived class. Use the dialog editor to create the dialog template and store it in a resource, then use the Add Class wizard to create a class derived from CDialog.

MSDN Documentation

118 questions
0
votes
1 answer

MFC: window close button clicked; window object not destructed

I have an app with quite a few windows each of a different CDialog-derived class. My app's worked fine for years calling delete this from PostNcDestroy() but now that I'm looking around, I don't see any evidence that is correct or needed. What's…
Swiss Frank
  • 1,985
  • 15
  • 33
0
votes
1 answer

C++ CDialogEx losses ParentWnd when run from DLL

I've got a situation. There is a huge app (C++ MFC). I write a .dll module with a dockable pane. Pane interface structure: Pane -> CMFCToolBar -> CSplitterWndEx -> CListCtrl -> CDialogEx That's how i create my…
Alexandr Crit
  • 111
  • 1
  • 14
0
votes
1 answer

Multiple levels of children to a CDialog

I have an MFC project where I have a child window that is a CDialog class extension and inside that I draw a number of widgets that are each an extension of CStatic class. Now I want to add a surface to the main window where I draw all of the same…
0
votes
1 answer

How to Enable a Button's Property Pages in Visual Studio 2013 with CDialog Class

In Visual Studio 2008, it is possible to double click on a button from the resource view of a CDialog box and be directed right to the code that will help me edit its actions. However, in 2013, when I double click on a button, an "Add Class Wizard"…
Elizabeth
  • 1
  • 1
0
votes
1 answer

Include MFC-Resource (CDialog-Form) in Visual C++ DLL

I am trying to compile a DLL which includes a CDialog Form. In detail I would like to include the resource containing the Layout and all the public methods. The main goal is to export a form(and its methods) to use it in an external environment…
0
votes
1 answer

MFC Toggle Radio Button Is Delayed

I have a radio button that is a CButton in a CDialog. When the user clicks the radio button, the function OnClickedRadioButton is called. Inside OnClickedRadioButton I toggle the button by calling this function: void toggleButton(CButton&…
user3731622
  • 4,844
  • 8
  • 45
  • 84
0
votes
2 answers

Change CDialog controls focus from another dialog

I am trying to change the focus of a CDialog controls from a CFormView by using PostMessage: [CHelpView is inherited from CFormView. And m_wndDlg is a CSampleDlg(inherited from CDialog) object] void CHelpView::OnEnterbutton() { …
ali
  • 529
  • 4
  • 26
0
votes
1 answer

debug assertion failure during domodal

I have just started working on CDialog classes. When I try to execute the following code, I am getting debug assertion failure. #include "stdafx.h" #include "resource.h" #include #include "dialog.h" #include int _tmain(int…
Kumar
  • 616
  • 1
  • 18
  • 39
0
votes
1 answer

My IE crashes on EndDialog and DoModal on another new dialog

I am opening a CDialog(CAxDialogImpl) using m_nRet = DoModal(); On this dialog I have an options button. When I click on this options button, I need to close this existing dialog and open another dialog (my options dialog). In order to close the…
Maya
  • 95
  • 1
  • 3
  • 7
0
votes
1 answer

CDialog::Create () method is failing on vista windows 7 32 bit PC

CDialog::Create() is failing on Win7 32 bit PC because dialog have Richedit control. Once i remove that control from dialog,It got created but i need Richedit control. Why CDialog::Create() is fails when i use Richedit control ? Also i …
bala
  • 275
  • 2
  • 3
  • 13
0
votes
1 answer

MFC catch Control's Message of child from parent without create class handler for child?

I have a CDialog created by wizard named CDialogParent, then create a child dialog template has IDD= IDD_CHILD_DLG1, in this child dialog I put one button IDC_BTN1 (I don't create class handler for this child). BOOL CDialogParent::OnInitDialog() { …
0
votes
0 answers

Any way to "Detach" part of a dialog?

I am working on an old CDialog based application which uses Codejock XTP. On this dialog, I have a separate TaskPanel on the right edge of the Dialog. (I can't post images yet, not enough reputation) I want to provide a way for the user to be able…
manimatters
  • 424
  • 3
  • 11
0
votes
0 answers

Cannot access a child window's controls ( Created with CDialog::Create )

I've been having some difficulties to understand and maybe you guys can help. I have a project that uses CDialog and I've been trying to create a child window that retrieves some info from the main window ( the main/child windows have they're own…
Nutterz
  • 42
  • 7
0
votes
1 answer

CDialog object not created

I have a problem with an MFC project. The project has recently been converted to an window less project, meaning the window it is still created but it is hidden. It worked fine, no problems. Now it has a problem, the object created by a class that…
Ionut Daniel
  • 312
  • 2
  • 9
  • 20
0
votes
1 answer

Anchor buttons in a dialog when using SW_MAXIMIZE

This should be a simple one: I have a CDialog with 2 buttons. The dialog is always opened in full screen (No title bar \ Status, etc...) using m_pMainWnd->ShowWindow(SW_MAXIMIZE); I want my buttons to snap to the edge of the screen. There are no…
Eldad
  • 1,067
  • 16
  • 36