Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRegarding global variables in COM Pin
15-Mar-01 1:55
suss15-Mar-01 1:55 
GeneralRe: Regarding global variables in COM Pin
Erik Funkenbusch15-Mar-01 11:36
Erik Funkenbusch15-Mar-01 11:36 
GeneralRe: Regarding global variables in COM Pin
22-Mar-01 17:21
suss22-Mar-01 17:21 
GeneralRe: Regarding global variables in COM Pin
22-Mar-01 17:24
suss22-Mar-01 17:24 
Generalinterface Pin
15-Mar-01 0:44
suss15-Mar-01 0:44 
GeneralRe: interface Pin
Erik Thompson15-Mar-01 7:44
sitebuilderErik Thompson15-Mar-01 7:44 
GeneralMenu and CPropertySheet Pin
14-Mar-01 22:44
suss14-Mar-01 22:44 
GeneralTricky Dialog... Pin
Manfred Ramosch14-Mar-01 22:04
Manfred Ramosch14-Mar-01 22:04 
In my dialog-based application I use some other (modeless) dialogs-boxes
that have the same size than my parent and aligning exactly centered in
my frame-dialog when appearing. ( created with MyDialog->Create() ).
For this behavior I had to use the style 'Child' in the dialog-editor.

For some reason I need one dialog to appear MODAL and so I created the dialog with
MyDialog->DoModal(). If I leave the style 'Child' the dialog totally locks the application
when appearing. So I changed the style to 'Popup'... Now it worked ALMOST like a charm.

One problem left:

When I open the modal dialog it is exactly aligned relative to its parent window.
When I move the parent dialog but still visible on the screen and then open the
modal dialog it also aligns correctly.
But from the moment I move my parent out of the screen so that e.g. only a part of
my parent is visible the modal dialog appears fully visible docked to the edge of
the screen but not aligned to the parent anymore.

Is there any workaround or setting that the modal dialog appears aligned to my parent
even if I move my parent out of the visible part of the screen.
As I created all my dialogs in the application with thin borders and no title-bar
you do never realize that with every view-change a new dialog is created.

Only in the above mentioned situation the thin boarderd-modal-dialog stands alone on
the screen - looking ugly...


Any Ideas on that ?


Manfred





---
'Programming is knowing...'
GeneralRe: Tricky Dialog... Pin
James R. Twine15-Mar-01 5:33
James R. Twine15-Mar-01 5:33 
GeneralRe: Tricky Dialog... Pin
James R. Twine15-Mar-01 5:34
James R. Twine15-Mar-01 5:34 
GeneralRe: Tricky Dialog... Pin
James R. Twine15-Mar-01 5:34
James R. Twine15-Mar-01 5:34 
GeneralBuy graphic card ... Pin
Hadi Rezaee14-Mar-01 20:37
Hadi Rezaee14-Mar-01 20:37 
GeneralRe: Buy graphic card ... Pin
Christian Graus14-Mar-01 22:36
protectorChristian Graus14-Mar-01 22:36 
GeneralClass example ... Pin
Hadi Rezaee14-Mar-01 20:36
Hadi Rezaee14-Mar-01 20:36 
GeneralRe: Class example ... Pin
Christian Graus14-Mar-01 22:28
protectorChristian Graus14-Mar-01 22:28 
GeneralRe: Class example ... Pin
Erik Funkenbusch15-Mar-01 11:44
Erik Funkenbusch15-Mar-01 11:44 
GeneralRe: Class example ... Pin
Christian Graus15-Mar-01 11:58
protectorChristian Graus15-Mar-01 11:58 
GeneralRe: Class example ... Pin
Erik Funkenbusch16-Mar-01 22:04
Erik Funkenbusch16-Mar-01 22:04 
GeneralCFile and CArchive ... Pin
Hadi Rezaee14-Mar-01 20:35
Hadi Rezaee14-Mar-01 20:35 
GeneralRe: CFile and CArchive ... Pin
Erik Funkenbusch15-Mar-01 11:45
Erik Funkenbusch15-Mar-01 11:45 
GeneralRules ... Pin
Hadi Rezaee14-Mar-01 20:34
Hadi Rezaee14-Mar-01 20:34 
GeneralRe: Rules ... Pin
Christian Graus14-Mar-01 22:15
protectorChristian Graus14-Mar-01 22:15 
GeneralAllocate memory ... Pin
Hadi Rezaee14-Mar-01 20:33
Hadi Rezaee14-Mar-01 20:33 
GeneralRe: Allocate memory ... Pin
Christian Graus14-Mar-01 22:31
protectorChristian Graus14-Mar-01 22:31 
GeneralRe: Allocate memory ... Pin
Hadi Rezaee16-Mar-01 19:28
Hadi Rezaee16-Mar-01 19:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.