Originally posted by: kim jyeong hyeon
Cannot open include file: 'ResizableDialog.h': No such file or directory....
downloaded file doesn't have a header file(ResizableDialog.h)....
....
Reply
Originally posted by: Olaf Oelsner
I tried to use an OCX the dialog, but
it won't be resized.
Does anybody have an idea ?
Thanks
Reply
Originally posted by: abscess
You just saved me (estimating) days of frustrated coding this month alone!
ReplyOriginally posted by: oeschtle
hi there,
i contacted the author. he told me the latest version is over there:
http://www.datamekanix.com/
look for the article 'dynamic child window positioning'.
it includes DYNAMIC:
- Dialog
- ChildDlg
- FormView
- PropSheet
- PropPage
a couple of changes and improvements.
enjoy,
oeschtle
Originally posted by: Takki
This class is good, but still has some bugs...
A very cruel bug is that whenever I try to move one of my controls with MoveWindow I get an error (assertion failed). I tried the MoveWindow at several positions (OnInitDialog, OnSize etc.), but it's always the same. I looked into the MFC code and saw that my controls aren't valid hwnds (::IsWindow(m_hWnd) fails). I tried to contact the author, but both emails aren't working. Has anyone a solution for this problem?
Originally posted by: Takki
This class is good, but still has some bugs...
A very cruel bug is that whenever I try to move one of my controls with MoveWindow I get an error (assertion failed). I tried the MoveWindow at several positions (OnInitDialog, OnSize etc.), but it's always the same. I looked into the MFC code and saw that my controls aren't valid hwnds (::IsWindow(m_hWnd) fails). I tried to contact the author, but both emails aren't working. Has anyone a solution for this problem?
Originally posted by: Dmitry Zemskov
The MFC documentation on CWnd::GetDlgItem() states that
"The returned pointer may be temporary and should not be
stored for later use". Because AddSzControl() stores
reference to CWnd obtained from GetDlgItem() for later use,
the CWnd object must exist as long as cdxCSizingDialog
object does. That means we can not use CWnd::GetDlgItem()
method in this case.
Originally posted by: Joern Engmann
If someone have to put two (or more) elements, separated by a Splitter (like in the Explorer) in a sizable Dialog he will get some Problems.
When I does this the Dialog was much bigger at starting Time as I wanted and the Splitterelement was overridden by Element on it's left side. When I make the left Element mdNone in x-direction then all works.
I need a hint to get the left Side resizable.
Reply
Originally posted by: Scott Coursin
I just wanted to point out that there is an alternative to adding control member variables to your dialog class. You can use the GetDlgItem() API call to get a CWnd pointer to a control. You do have to derefcerence the pointer in the call to AddSzControl() since it is expecting a reference, not a pointer.
[ccode]
Scott
This is a really great class!
CWnd* pWnd = GetDlgItem(IDC_HEADER);
AddSzControl(*pWnd, mdRelative, mdRelative);
[\ccode]
Originally posted by: Johnathan James
I knew I would find something cool on CodeGuru to do this, but I thought I would try on my own first.. after about 2 hours trying to get those controls to resize correctly, I came to CodeGuru and saw this code. Not 10 minutes later, I had the dialog just like I wanted it.
This code is excellent! Thanks a lot!
Reply