Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Probelm using CExtNCW < CExtResizableDialog > as dialog base class Collapse All
Subject Author Date
Adrian M Oct 7, 2007 - 9:49 AM

I replaced CExtResizableDialog with CExtNCW < CExtResizableDialog > as base class for my app’s dialog, and now when I start it up, it always gets positioned in the top left corner of the screen, instead of in the middle. Any easy fix for this?

Thanks.

Adrian

Adrian M Oct 10, 2007 - 2:32 PM

Calling CWnd::CenterWindow() fixed the problem.

Thanks,

Adrian

Technical Support Oct 9, 2007 - 11:13 AM

We are not sure that the DLL project type affects this problem. Please ensure you have specified the correct parent window for the dialog when invoking its constructor. Please also let us know what happens when you invoke the dialog’s CWnd::CenterWindow(). If you send us a test project, that should help us find out what’s wrong. But first, would let us take a look at the dialog’s creation code?

Technical Support Oct 8, 2007 - 10:44 AM

Please check if this can be reproduced with our dialog-based applications (e.g. ProfUIS_Controls and IconEditor), which are also based on CExtNCW < CExtResizableDialog > . If not, could you send a project that demonstrates the problem?

Adrian M Oct 8, 2007 - 4:34 PM

The two samples obviously don’t have this problem.

Do you need it just to look at my project or to build and debug it too? My project depends on some external libraries, so without these you won’t be able to build it.

Not sure if this makes any difference - the dialog is implemented as a dll, and it is displayed by running another executable and callling an exported method in the dll.

Adrian