how to make some area invisible
-
hi, guys I am newer to MFC and have a question here ---------------- | | | | | A | |_______________| | | | B | |_______________| Area A and B is two zones, I have a Button in A, and if i click the button, B disappears, showing below, only A; if i click the button again, B shows like above pic ---------------- | | | | | A | |_______________| my question is how to implenment this function? could you guys give me some idea? thank you very much
-
hi, guys I am newer to MFC and have a question here ---------------- | | | | | A | |_______________| | | | B | |_______________| Area A and B is two zones, I have a Button in A, and if i click the button, B disappears, showing below, only A; if i click the button again, B shows like above pic ---------------- | | | | | A | |_______________| my question is how to implenment this function? could you guys give me some idea? thank you very much
When you design the dialog, make it with area A and B showing. In the
OnInitDialog
function of the dialog useSetWindowPos
method and set the new height in itscy
parameter. On button click useSetWindowPos
again with the full height in thecy
parameter. You can get the current window position usingGetWindowRect
function.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
hi, guys I am newer to MFC and have a question here ---------------- | | | | | A | |_______________| | | | B | |_______________| Area A and B is two zones, I have a Button in A, and if i click the button, B disappears, showing below, only A; if i click the button again, B shows like above pic ---------------- | | | | | A | |_______________| my question is how to implenment this function? could you guys give me some idea? thank you very much
You can handle the button click and in the handler, resize the window to appropriate sizes.
-
hi, guys I am newer to MFC and have a question here ---------------- | | | | | A | |_______________| | | | B | |_______________| Area A and B is two zones, I have a Button in A, and if i click the button, B disappears, showing below, only A; if i click the button again, B shows like above pic ---------------- | | | | | A | |_______________| my question is how to implenment this function? could you guys give me some idea? thank you very much
I think you may need to look at something like 'expanding and collapsing dialogs' .... Expanding and collapsing Dialogs[^] is that what you meant ? 'g'
-
I think you may need to look at something like 'expanding and collapsing dialogs' .... Expanding and collapsing Dialogs[^] is that what you meant ? 'g'
-
hi, guys I am newer to MFC and have a question here ---------------- | | | | | A | |_______________| | | | B | |_______________| Area A and B is two zones, I have a Button in A, and if i click the button, B disappears, showing below, only A; if i click the button again, B shows like above pic ---------------- | | | | | A | |_______________| my question is how to implenment this function? could you guys give me some idea? thank you very much