mfc >> Switch maximize button in a title bar of a dialog box off
by alexanderkricke » Wed, 03 Dec 2003 04:38:29 GMT
Hello,
is there a possiblity to switch the maximize/ normalize button in a
title bar of a dialog box off (and on) by using a method during
program operation instead of not setting the SW_MAXIMIZEBOX option in
Create ? What is the Windows-Message if a user presses the
maximize button ? Is it possible to overwrite the message handler ?
Which method is it ?
Thanks in advance for your help.
Greeting
Alex
mfc >> Switch maximize button in a title bar of a dialog box off
by lewi » Wed, 03 Dec 2003 05:45:46 GMT
> is there a possiblity to switch the maximize/ normalize button in a
Never done this with WS_MAXIMIZEBOX(not WS_MAXIMIZEBOX) but I would look at
both Win32/CWnd versions of ModifyStyle() or SetWindowLong() to change(this
sytle should be dynamically changable) many window styles...
mfc >> Switch maximize button in a title bar of a dialog box off
by GuitarBill » Wed, 03 Dec 2003 06:39:54 GMT
I also never did this (did anyone, ever? lol) but
ModifyStyle() sounds right.
But you may also need to call:
SetWindowPos(0, 0, 0, 0, 0, SWP_FRAMECHANGED |
SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE);
to make sure it takes effect...
button in a
method during
SW_MAXIMIZEBOX...
but I would look at
() to change(this
styles...
Similar Threads
1. ? Both Help Box AND Minimize Box in Title Bar of MFC Dialog App
Hi,
I assume that this question has been asked before but since I can't find
it anywhere...
How can you put both a question-mark context-sensitive help button AND a
Minimize/Maximize Box in the title bar of a Dialog mode MFC app?
Thanks
2. Dialog Box title bar - CSharp/C#
3. hide title bar of a dialog box on run time
i have a dialog box, and 2 button on a dialog. i want to add
functionality that when i will click button 1 the title bar will
disappear, and when i will click second button it will appear(become
visible).
thanks
4. Customizing the Title bar of a Dialog box in MFC
5. repostioning of dialog box through title bar
hello,
Normally when we place the mouse pointer on tittle bar of dialog box
and press left mouse button we can drag the dialog box anywhere on screen.Can
we stop this repositioning?
please help
6. Title bar -less dialog box with a border/
7. Toggle SDI title-bar off and on
With help from this newsgroup, I was able to get the titlebar of a SDI app
to not show up (thanks DC). Now I'm trying to figure out how to "toggle"
back and forth.
I want to allow the user to be able to re-activate the titlebar so they can
drag it to another locaton with the TitleBar. Then they can deactivate the
titlebar (and it will be "frozen" in position, although resizable).
The LoadFrame function can cause the titlebar to be invisibile with the
following call:
ModifyStyle(WS_CAPTION, 0, SWP_FRAMECHANGED);
But it seems "too late" to call LoadFrame again to re-activate the titlebar
... nothing happens. Should I destroy the frame and recreate? If so, how?
Kind of a related question: I have minimal experience with MDI apps. Is
there a way to toggle the child frame's titlebar on and off? If so, how?
8. Adding help button to Title bar in C# - CSharp/C#