Re: Resizable dialog
- From: "Doug Harrison [MVP]" <dsh@xxxxxxxx>
- Date: Thu, 07 Feb 2008 10:51:25 -0600
On Thu, 7 Feb 2008 08:07:04 -0800, Priya <Priya@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hi,
I am working on a dialog-based MFC application. I am trying to launch a
resizeable modal dialog from the main dialog. In the dialog editor properties
I have set the Border field to Resizing. Most of the other properties are set
to their default values. The Style property is set to Popup. This works fine
if I use a debug build of the executable. But when I use the Release build
the dialog box length extends beyond the screen. The release build also works
fine if I change the border type to Dialog Frame.
I am using Visual Studio 2003 on Windows 2003 and I have seen this problem
on Windows 2003 and Vista.
Is there anything else I need to do to get the resizeable dialog displayed
properly? I have added handlers for ON_WM_SIZE() and ON_WM_GETMINMAXINFO()
and I have tried disabling all other code in the OnInitDialog() function
except for a call to CDialog:OnInitDialog().
Do let me know if you need more information about my development or test
setup.
Any help would be greatly appreciated.
It sounds like you're passing garbage values to functions like SetWindowPos
or MoveWindow, or you're setting structure fields to the wrong values in
handlers for messages such as WM_WINDOWPOSCHANGING. Look for uninitialized
variables, which can have different values between debug and release modes
and in general, run to run of the same executable.
--
Doug Harrison
Visual C++ MVP
.
- Prev by Date: Why the error "A required resource is not found" comes?
- Next by Date: Re: CMDIFrameWnd question
- Previous by thread: Re: Resizable dialog
- Next by thread: RE: Resizable dialog
- Index(es):
Relevant Pages
|
Loading