|
Great solution - is there an open source license associated with this? MIT? BSD? Other? I want to make sure you're okay with others using your work. Thanks!
|
|
|
|
|
In /codex/doc/cdxCDynamicWnd-DOC.html the author states:
"You are free to use and modify the code and the classes but I would like you to note the author (that's me in your product's documentation at any place, if possible.
You use this code at your own risk.
Any damange caused by the use or misuse of this code is the sole responsibility of the user."
So add an acknowledgement to your documentation and that's it.
|
|
|
|
|
i used the CdxCdynamicBar for creating the resizeable dialogbar it shows the empty dialogbar it dosenot shows the controls of the designed dialog bar(this dialog bar contains 6 edit controls)
my code is:
cdxCDynamicBarT<cdrobar> m_wndDROBar;
if (!m_wndDROBar.Create(_T("DRO Bar"), this, CSize(140, 100),
TRUE , AFX_IDW_CONTROLBAR_FIRST + 32))
{
TRACE0("Failed to create DRO Bar\n");
return -1; // fail to create
}
m_wndDROBar.SetBarStyle(m_wndDROBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
m_wndDROBar.EnableDocking(CBRS_ALIGN_ANY);
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndDROBar, AFX_IDW_DOCKBAR_LEFT);
how to debug this
|
|
|
|
|
Hi,
I am in the process of migrating a project created in VC 5 which used your cdxCSizingDialog.cpp/.h to VS2008 and I am coming across the following error
cdxcsizingdialog.cpp(49) : error C2248: 'cdxCSizingPropSheet::StandardControls' : cannot access private struct declared in class 'cdxCSizingPropSheet'
cdxcsizingdialog.h(310) : see declaration of 'cdxCSizingPropSheet::StandardControls'
cdxcsizingdialog.h(304) : see declaration of 'cdxCSizingPropSheet'
I was hoping maybe there is a way around this, or should I proceed to update the project to use cdxDynamicWindow
thank you in advance for your help
|
|
|
|
|
Hi MLChavez
I have not been working on this for a long time (I changed businesses in 2000), so please go ahead and amend as you feel is correct. I am very happy to see that this work is still useful!
All the best
Hans Buehler
|
|
|
|
|
1. Project file should have "Additional Include Directories" set to ..\codex
2. There are a number of warnings related to "assignment within conditional", including the definition of BEGIN_DYNAMIC_MAP(CLASS,BASECLASS)
It was:
#define BEGIN_DYNAMIC_MAP(CLASS,BASECLASS) \
const cdxCDynamicWnd::__dynEntry *CLASS::__getDynMap(const __dynEntry *pLast) const\
{ \
if(pLast == __M_dynEntry) \
return NULL; \
return (pLast = BASECLASS::__getDynMap(pLast)) ? pLast : __M_dynEntry; \
} \
const cdxCDynamicWnd::__dynEntry CLASS::__M_dynEntry[] = {
and to avoid warning, should be:
#define BEGIN_DYNAMIC_MAP(CLASS,BASECLASS) \
const cdxCDynamicWnd::__dynEntry *CLASS::__getDynMap(const __dynEntry *pLast) const\
{ \
if(pLast == __M_dynEntry) \
return NULL; \
return (((pLast = BASECLASS::__getDynMap(pLast))) != 0) ? pLast : __M_dynEntry; \
} \
const cdxCDynamicWnd::__dynEntry CLASS::__M_dynEntry[] = {
|
|
|
|
|
Hi there,
Thx for a great job.
I found this one-line-bug?:
m_dwClassStyle = ::GetClassLong(*m_pWnd,GCL_STYLE) & (CS_VREDRAW|CS_HREDRAW);
I surpose you meant:
m_dwClassStyle = ::GetClassLong(*m_pWnd,GCL_STYLE) | (CS_VREDRAW|CS_HREDRAW);
otherwise m_dwClassStyle will always evaluate to either be 1 or 0 (true/false)
|
|
|
|
|
This tool is great. A little problem: When the number of pages in a sheet get biger, the TabControl becomes multilined. Then it's not drawn correctly. Is there already a fix available?
|
|
|
|
|
Hello!
I would like to close Modeless sheet dialog by clicking the right up button, or Alt+F4 - but it seems not to work (VC++ 7.1 / Win Xp prof. - SP2). How can I do this? Also, it is possible to add minimize and maximize button to the title bar of this modeless sheet dialog and to send messages to the child controls of property pages included - something like OnChildNotify...?
Kind regards!
Ionut
|
|
|
|
|
Hi, nice piece of code.
I'm trying to make my dialog based application "Dynamic", by using the cdxCDynamicDialog class. I have managed, more or less, to make everything work OK, but I have a couple (or three) issues:
- When the application starts, the dialog is bigger than what I have defined in the resource editor. I can make it smaller after cdxCDynamicDialog::OnInitDialog() sets the size, but is this OK?
- When I try to minimize, the application throws an assertion failure. If I ignore it, it works OK, and it seems to work OK on release as well. Is this normal?
- If the dialog is smaller than a certain size X and I minimize it, when I restore it, it restores to that size X, bigger than the original one. How can I make it "remember" its size? Am I doing something wrong?
Thanks for your help.
Mikel
|
|
|
|
|
when, i want to :(add IDC_BOX2 group box,
top: IDC_BOX
bottom: IDC_BOX2
group box1 and group box2 would overlap
|
|
|
|
|
BEGIN_DYNAMIC_MAP(CMyView,cdxCDynamicFormView)
DYNAMIC_MAP_ENTRY(IDC_BOX, mdResize,mdResize)
DYNAMIC_MAP_ENTRY(IDC_BOX2, mdResize,mdResize)
END_DYNAMIC_MAP()
when maximize, overlap: box1 and box2
|
|
|
|
|
Hello
I have develoiped a dialog base application . Now i want to add one window
similar to single document view architecture to this Dialog based application .
Does any one have any ideas
Thank you in advance.
Anup Zade
|
|
|
|
|
Any one tried a cdxCDynamicFormView in a CSplitterWnd pane?
Seems when resize the cdxCDynamicWnd gets the size of the whole splitter causing the resized control to run off the form to the right.
Any ideas.
Thanks
|
|
|
|
|
Hi All
When I place a button of any kind (push, radio, checkbox) on the cdxDynamicPropertyPage, the painting gets messed up when I maximize the window. The lower third of the prop page is white instead of the normal grey background color. I am using XP and I get the same problem whether XP Themes are enabled or not.
Amybody got any clues on this? Thanks in advance -
Wp
Wp
|
|
|
|
|
OK, it _is_ the use of XP Themes (aka ComCtl32.dll version 6 or later) that has caused this painting bug for the Property Page. Unfortunately, I can't disable the Themes for the final release. I have also tested another resizable PropertySheet with the same results, so this looks like it is not a bug for this set of classes, but a bug in general. We can kill this thread here, unless anyone knows what is up with the CButton class.
Wp
|
|
|
|
|
Hi
I am creating a MFC MDI application which has 3 child windows, Can anyone please help in arranging two windows vertically and one horizontally and also the horizontal window should get the focus.
Plese help me.
|
|
|
|
|
I've use cdx... classes in my MFC application to make all property pages, dialogs, etc. resizeable and it works fine on Win2K & winXP (Thanks a lot to Hans Buhler) but it crashes when running on win98.
any idea would be appreciated.
|
|
|
|
|
I encounter something strange with the grid embedded on a Property Page keeps resizing back to original size whenever I do a switching between property pages. Anyone can tell me why is that so?
|
|
|
|
|
Thank you for your code. Very helpful.
However. I cannot minimze the dialog window. The program crashes. Can you send me modified code?
|
|
|
|
|
|
Very well done... one of the top three CP software "suites" I've used.
Cheers.
Free file sharing software... that's easy to use:
BadBlue http://badblue.com
|
|
|
|
|
I download the source, add a button to the dockable dialog, then compile and run, the button just becomes as if it has been disabled (I did not set it to be disabled ).
Other controls such as CheckBox do not have this problem.
Anyone can tell me why?
thank a lot!!!!!
|
|
|
|
|
I have the same problem even when forcing buttons to disabled.
Any explanation please ???
Eric
|
|
|
|
|
I'm back with the solution :
It seems that the dialog is a ToolBar. So you need to overwrite OnUpdateCmdUI and tell your button should be enabled.
Here is the default overwrite to get all your buttons enabled:
void MyDerivedClass::OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler)
{
cdxCDynamicBarDlg::OnUpdateCmdUI(pTarget,FALSE);
}
Hope it will help many people.
Eric
|
|
|
|