Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCMDIChildWnd Scrollbars Pin
alex.barylski28-Oct-03 21:06
alex.barylski28-Oct-03 21:06 
GeneralRe: CMDIChildWnd Scrollbars Pin
KaЯl29-Oct-03 3:17
KaЯl29-Oct-03 3:17 
GeneralPreventing a window from becoming maximized Pin
Vancouver28-Oct-03 19:16
Vancouver28-Oct-03 19:16 
GeneralRe: Preventing a window from becoming maximized Pin
Mumiozol28-Oct-03 22:30
Mumiozol28-Oct-03 22:30 
GeneralUnfortunately this does not work Pin
Vancouver29-Oct-03 13:41
Vancouver29-Oct-03 13:41 
GeneralRe: Unfortunately this does not work Pin
KaЯl29-Oct-03 21:38
KaЯl29-Oct-03 21:38 
GeneralRe: Preventing a window from becoming maximized Pin
Blake Miller30-Oct-03 9:12
Blake Miller30-Oct-03 9:12 
GeneralKaЯl and Blake Pin
Vancouver30-Oct-03 14:41
Vancouver30-Oct-03 14:41 
Thanks for the suggestions.

WM_WINDOWPOSCHANGING appears a good solution, but it does not say, when the window will be maximized, i.e. it would need a "calibration" to get the actual maximum size.

In the meantime I solved the problem already, with a combination of OnSize and OnMove plus SetWindowPlacement as correction of MAXIMIZE. However it is not a nice solution. Sometimes OnSize, sometimes OnMove is the first, when both will be called. Lots of work-around only to prevent the system from doing something, what it should not do per definition.

Anyway, now it's working, but I'm now trying Blake's suggestion, GetMinMaxInfo. This function gets called before each MAXIMIZE (I have expected a call at MINIMIZE at well, even though it does not matter in my case). Simply to prevent MAXIMIZE to a large size is very simple this way. However, there is still a small problem: it positions the window to the upper left corner; one has to work around it.

Once more, thanx for the help.
Generalint nTemp=0xe Pin
FlyingDancer28-Oct-03 19:10
FlyingDancer28-Oct-03 19:10 
GeneralRe: int nTemp=0xe Pin
Michael Dunn28-Oct-03 19:26
sitebuilderMichael Dunn28-Oct-03 19:26 
GeneralRe: int nTemp=0xe Pin
FlyingDancer28-Oct-03 20:00
FlyingDancer28-Oct-03 20:00 
Generalvi ctags to vc++ Pin
Anonymous28-Oct-03 18:17
Anonymous28-Oct-03 18:17 
GeneralRe: vi ctags to vc++ Pin
David Crow29-Oct-03 3:27
David Crow29-Oct-03 3:27 
GeneralDisplaying Text in Center of Client Area Pin
Hashim Saleem28-Oct-03 15:25
Hashim Saleem28-Oct-03 15:25 
GeneralRe: Displaying Text in Center of Client Area Pin
Hashim Saleem28-Oct-03 15:42
Hashim Saleem28-Oct-03 15:42 
GeneralPaint problem with child dialogs and tab control Pin
LukeV28-Oct-03 14:25
LukeV28-Oct-03 14:25 
GeneralRe: Paint problem with child dialogs and tab control Pin
LukeV28-Oct-03 14:53
LukeV28-Oct-03 14:53 
QuestionWhat can I do if ReleaseSemaphore return zero? Pin
EastDragon28-Oct-03 14:04
EastDragon28-Oct-03 14:04 
AnswerRe: What can I do if ReleaseSemaphore return zero? Pin
Alexander M.,28-Oct-03 23:36
Alexander M.,28-Oct-03 23:36 
GeneralHelp with AI, ASAP!!! Pin
Snyp28-Oct-03 12:31
Snyp28-Oct-03 12:31 
GeneralRe: Help with AI, ASAP!!! Pin
Blake Coverett28-Oct-03 17:56
Blake Coverett28-Oct-03 17:56 
GeneralRe: Help with AI, ASAP!!! Pin
Michael P Butler29-Oct-03 1:46
Michael P Butler29-Oct-03 1:46 
GeneralRe: Help with AI, ASAP!!! Pin
Atlantys30-Oct-03 12:49
Atlantys30-Oct-03 12:49 
GeneralRe: Help with AI, ASAP!!! Pin
Snyp29-Oct-03 15:18
Snyp29-Oct-03 15:18 
GeneralRe: Help with AI, ASAP!!! Pin
Snyp29-Oct-03 15:19
Snyp29-Oct-03 15:19 

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.