|
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
|
|
|
|
|
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)
|
|
|
|
|
Hi... just want to thank you for your great work!
It helped me to understand how MDI works!!!
Regards, Jazper
|
|
|
|
|
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!
|
|
|
|
|
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
|
|
|
|
|
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!
|
|
|
|
|
How does one properly update a control with new position/size information at run-time? I've tried RemSzControl with a new AddSzControl and this only kinda works. It screws up the height after this.
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
How can I remove Size Grip ?
Thanks in advance
XCorra
|
|
|
|
|
|
That was a big help. I had the same problem. PropertySheet that had a resizing grip on it, despite my changing the style bits. I had to modify the cdxCDynamicPropSheet constructor as follows:
...
BOOL cdxCDynamicPropSheet::OnInitDialog()
{
// initialize window & dynamic manager
BOOL b = CPropertySheet::OnInitDialog();
// Don't know how else to turn the "grip" resizer off...
//
cdxCDynamicWnd::m_nFlags &= ~flSizeIcon; // *** This line added ***
DoInitWindow(*this);
...
HTH...
BadBlue - easy free file sharing for Windows.
|
|
|
|
|
Hello everyone,
I've been using this codex for a while now, and it has been working wonderfully . Now, i only have 1 question regarding the Layout() function in the cdxCDynamicWnd class. I was wondering why there was a check to the rectangle coordinates returned by GetWindowPlacement():
ASSERT(rectNew.left >= 0);
In my setup, this assert fails when i have a scrollbar and a half hidden window in my form (I'm using the cdxCDynamicFormView version of the codex). GetWindowPlacement() returns a rectangle with negative values, which is right... Commenting out the line seems to work fine, but i was wondering why it was there in the first place ...
Thanks in advance!
--
Christian Pare
Software Engineer
www.octasic.com
|
|
|
|
|
<Update>
I seem to have narrowed this down to something with a CListCtrl in Report view on a property page (in Windows XP). To duplicate it, open the dialog IDD_MODALPROP_2 for editing (in the sample project included with the source) and add a List Control in the middle. Set the list control's "View" property (on the Styles tab of the properties window) to "Report". Now add the entry:
DYNAMIC_MAP_ENTRY(IDC_LIST1, mdRepos, mdRepos)
to the dynamic map for the CMyPropertyPage2 class. Run the program and choose "Modal Sheet". Click on tab 2 to see the problem---none of the controls are there! Change the list control back to any other view (icon, list) and everything works fine. This might indicate something to do with the header control?
In my "real" app, just the list control disappears--I see it flicker at startup, and I can click it so I know it's there, it just isn't being drawn.
Any help would be greatly appreciated
Thanks!
<original msg>
Hello,
Has anyone gotten this to work with Windows XP? I'm using the resizable property sheet/page classes, and the application works great in NT/2K (excellent work, btw), but in XP all I see is a border with some pieces of background windows drawn inside the main window.
The program is also not responding. I tried modifying the constructor flags (to disable the AntiFlicker and CopyBits) and they have little or no effect.
Has anyone had this same problem? Have you gotten it to work? Any help is greatly appreciated.
Thanks
"Do, or do not. There is no try"
--Yoda
|
|
|
|
|
i just removed the line
ModifyStyleEx(0,WS_CLIPCHILDREN);
from the function
int cdxCDynamicPropSheet::OnCreate(LPCREATESTRUCT lpCreateStruct)
and now it works!!!
|
|
|
|