Originally posted by: choi eun seon
your source didn't have "spectra .h". i need it..
Originally posted by: Marlon Cenita
Alger,
Can I possibly draw figures on my dialog bar using Device Context just like ordinary dialogs.If yes, please do help me.
Thanks....
Xnor
Reply
Originally posted by: Brett Hall
After struggling with getting CDialogBar in the app, the buttons were permanently greyed out. I also wanted to change the button text. The information here helped immensely, but it took me awhile to get it working.
I thought it would be a nice gesture to post my code, which incorporates the greyed-out button problem fix, the error in the posted code, and the interfacing with ClassWizard in VC++6.
http://cvrr.ucsd.edu/~tbhall/asst/CDialogBar.html
Thanks
Brett
Originally posted by: P McLaughlin
Thanks,
Is it possible to use a CDialogBar (or a derived class) in a CDialog?
Most of the examples I have seen create a control bar from within the OnCreate() function of a CFrameWnd derived class.
Patrick
Originally posted by: Anthony Shore
// Control Variables
to:
//{{AFX_DATA(CMainDialogBar)
in the CMainDialogBar class definition and change the
CMainDialogBar::CMainDialogBar()
and correct:
//{{AFX_DATA_MAP(CMainDialogBar)
in CMainDialogBar::DoDataExchange() you will have full
If you change:
BOOL m_CheckBox;
enum { IDD = IDD_DBAR };
BOOL m_CheckBox;
//}}AFX_DATA
constructor to:
{
//{{AFX_DATA_INIT(CMainDialogBar)
m_CheckBox = 1;
//}}AFX_DATA_INIT
}
DDX_Check(pDX, IDC_CHECK1, m_CheckBox);
//}}AFX_DATA_MAP
Class Wizard support for your dialog bar.
Originally posted by: Paul Burns
BOOL CInitDialogBar::Create(CWnd * pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID)
if(!OnInitDialogBar())
return TRUE;
Your override of the Create function has a bug which
results in OnInitDialogBar being called twice, see below.
Otherwise this is a great idea which i have found very
useful.
{
// Calling the overridden Create will result in
// OnInitDialogBar being called twice. Instead call
// the base class version.
// if(!Create(pParentWnd, MAKEINTRESOURCE(nIDTemplate), nStyle, nID))
// return FALSE;
if(!CDialogBar::Create(pParentWnd, MAKEINTRESOURCE(nIDTemplate), nStyle, nID))
return FALSE;
return FALSE;
}
Reply
Originally posted by: Prasad
Hi Alger,
I have been facing some problems in using CDialogbar. While I was looking out for some help in the net, I found your article and thought you could help me out.
In my case, I am having CDialogbar window along with three different views displayed in splitter windows in the main window. In CDialogbar, I have a combo box and two buttons.
My problem is, I want to set the focus to the combobox control of CDialogbar when I open the application. Instead, the focus goes to the first of the three views.
Could you please help me out.
Regards
Prasad
Originally posted by: Ron Shouse
The CDialogBar receives the WM_INITDIALOG message after the controls have been created. You can handle this message and call UpdateData as you described.
Reply