Re: Resizable dialog



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
.



Relevant Pages

  • Re: Problem with Registering filter on windows mobile
    ... The fix is to modify C/C++ preprocessor definitions in the ... unresolved external because it's only defined in debug builds, ... the project using the visual studio wizard it worked, ... Windows CE Multimedia and Graphics ...
    (microsoft.public.windowsce.app.development)
  • VS 2003 cant debug on iis, Windows XP SP2,
    ... Visual Studio 2003 can't debug on iis, Windows XP SP2, ...
    (microsoft.public.vsnet.general)
  • Re: Problem with Registering filter on windows mobile
    ... unresolved external because it's only defined in debug builds, ... the project using the visual studio wizard it worked, ... Windows CE Multimedia and Graphics ... I'm assuming you're using visual studio with the PPC SDK. ...
    (microsoft.public.windowsce.app.development)
  • Re: Unable to execute a MeX-file created on another machine
    ... did you compile using debug information? ... libraries are free for the non debug libraries (therefore delivered with ... Visual Studio 2005 Service Pack 1, ... run Windows XP SP2 and Matlab R2006a, but the machine on which the ...
    (comp.soft-sys.matlab)
  • Re: Slow booting xp home.
    ... Changing the boot order to boot first from your hard disk might save you a half second, but you won't be able to boot from a CD until you change it back - and the time spent to do that will erase any previous time saved. ... 2- Consider what software you really want to start with Windows and also how you've configured your applications at startup ... Installing and Registering Visual Studio Express Editions Smart Device ...
    (microsoft.public.windowsxp.perform_maintain)

Loading