 |
|
|
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[] = {
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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)
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
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?
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
when, i want to :(add IDC_BOX2 group box, top: IDC_BOX bottom: IDC_BOX2
group box1 and group box2 would overlap
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Thank you for your code. Very helpful. However. I cannot minimze the dialog window. The program crashes. Can you send me modified code?
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
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!!!!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Most of all, thanks for your great work. It helps me take off a lot of time. Thanks a lot. I have some 2 problems with my programming.
First, make Dialog Bar with cdxCDynamic, I can't send message.. like this, ::SendMessage(pFrame->m_wndDlgBar.m_wndDlg.m_hWnd, WM_VIEW_DLGSEARCHTEXT, 0L, 0L); // It doesn't work..T.T..
but, can use public function like this, pFrame->m_wndDlgBar.m_wndDlg.OnViewDlgSearchText(); // It works..^^; How can I find handle window of my dialog of cdxCDynamic?
Second, using cdxCDynamic, Dialog Bar, when Docking and, Floating window, The size is too smaller than I make. How can I keeping up default window size?
Thanks for my poor English email.^^; I'll be longing for your reply. Reguarding your effort, Sangyong shin.(shinsangyong@hotmail.com)
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
Hi... just want to thank you for your great work! It helped me to understand how MDI works!!!
Regards, Jazper
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I have a problem. I have a dialogbox with various controls in it. I neet such an operation: when I disable whole dialog with CDalog::EnableWindow(FALSE) I would like all it's child controls became grayed, even if someone calls CWnd::EnableWindow(TRUE) to one of such controls. After I call CDialog::EnableWindow(TRUE) I would like all the its controls that were enabled before dialog was disabled become non-grayed. Is there any possibility to achieve this??
Tom T@mi.w.pl PLEASE HELP!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi!! I am Prasanthi Inakollu, doing my Master's in Computer Engineering. I am new to MFC programming. I am working on creating a Dialog Based Application. I havent find any information whether we can have menu options in the Dialog Box Application. I am trying to have an Dialog Box Application with Menu Option for File opening and stuff. Can anyone help me out in this.
Thanks
Prasanthi Inakollu
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
I'm writing a UI using Tab controls in CFormView. I want to change the size of the Form under different Tabs. However I can only change the position or size of the controls, but not the frame. What can I do? Anyone can help me? Thanks!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |