Solved

window size

Posted on 2000-02-24
4
155 Views
Last Modified: 2013-11-20
when i create an mdi child window, with create, i wish windows to automatically tile my windows so i use a rect at (0,0,0,0) which does that. however, now i wanted to have larger windows, an windows still take care of the correct positioning. i overloaded precreate window, and gave it an origin of cm_windowdefault, which efectively took care of the positioning. but now the tioling does not work properly, because windows still tiles as if windows were smaller than they are...
0
Comment
Question by:Blastarr
  • 2
4 Comments
 

Author Comment

by:Blastarr
ID: 2555529
Adjusted points to 80
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2556224
I don't understand the symptoms you are describing.  Can you provide some more detail please of what you are seeing and what you want to see.

A picture would be great .. but don't think you can empbed them here.

But, if you havea web site, you could put a picture there and send us a link so we can actaully see what is going on.
0
 

Author Comment

by:Blastarr
ID: 2557180
its like this. by default, when windows is tiling windows, it figures out when the enxt window is going to step out of the screen, and restarts placing windows at the origin, going down from there. if i change the width and height given to precreate, it resets the windows' positions as if they still had the default size
0
 

Accepted Solution

by:
simmvar earned 80 total points
ID: 2599602
Hi Blastarr

I think the tiling problem occurs because windows get the notification while create the window.

Please use CWnd::CreateEx(...) which accepts the parameters of the window coordinates and the size of the window

With regards
simmvar
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now